From 8cc29cb50ec6fce110364104fda7bab6e773850b Mon Sep 17 00:00:00 2001 From: clarifai-prod Date: Wed, 15 Jan 2025 15:05:31 +0000 Subject: [PATCH] GRPC clients version 11.0.1 --- .../proto/clarifai/api/resources.pb.swift | 21625 ++++++++-------- VERSION | 2 +- 2 files changed, 10431 insertions(+), 11196 deletions(-) diff --git a/Sources/ClarifaiGrpc/proto/clarifai/api/resources.pb.swift b/Sources/ClarifaiGrpc/proto/clarifai/api/resources.pb.swift index e025abf..b0703ca 100644 --- a/Sources/ClarifaiGrpc/proto/clarifai/api/resources.pb.swift +++ b/Sources/ClarifaiGrpc/proto/clarifai/api/resources.pb.swift @@ -1101,6 +1101,14 @@ public enum Clarifai_Api_EventType: SwiftProtobuf.Enum { case moduleVersionUpdate // = 204 case moduleVersionDelete // = 205 + /// Event types related to models: 300 - 399 + case modelCreate // = 300 + case modelUpdate // = 301 + case modelDelete // = 302 + case modelVersionCreate // = 303 + case modelVersionUpdate // = 304 + case modelVersionDelete // = 305 + /// Event types related to workflows: 400 - 499 case workflowCreate // = 400 case workflowUpdate // = 401 @@ -1118,6 +1126,9 @@ public enum Clarifai_Api_EventType: SwiftProtobuf.Enum { case collaboratorAdd // = 700 case collaboratorUpdate // = 701 case collaboratorRemove // = 702 + + /// Event types related to users: 800 - 899 + case userUpdate // = 800 case UNRECOGNIZED(Int) public init() { @@ -1147,6 +1158,12 @@ public enum Clarifai_Api_EventType: SwiftProtobuf.Enum { case 203: self = .moduleVersionCreate case 204: self = .moduleVersionUpdate case 205: self = .moduleVersionDelete + case 300: self = .modelCreate + case 301: self = .modelUpdate + case 302: self = .modelDelete + case 303: self = .modelVersionCreate + case 304: self = .modelVersionUpdate + case 305: self = .modelVersionDelete case 400: self = .workflowCreate case 401: self = .workflowUpdate case 402: self = .workflowDelete @@ -1159,6 +1176,7 @@ public enum Clarifai_Api_EventType: SwiftProtobuf.Enum { case 700: self = .collaboratorAdd case 701: self = .collaboratorUpdate case 702: self = .collaboratorRemove + case 800: self = .userUpdate default: self = .UNRECOGNIZED(rawValue) } } @@ -1186,6 +1204,12 @@ public enum Clarifai_Api_EventType: SwiftProtobuf.Enum { case .moduleVersionCreate: return 203 case .moduleVersionUpdate: return 204 case .moduleVersionDelete: return 205 + case .modelCreate: return 300 + case .modelUpdate: return 301 + case .modelDelete: return 302 + case .modelVersionCreate: return 303 + case .modelVersionUpdate: return 304 + case .modelVersionDelete: return 305 case .workflowCreate: return 400 case .workflowUpdate: return 401 case .workflowDelete: return 402 @@ -1198,6 +1222,7 @@ public enum Clarifai_Api_EventType: SwiftProtobuf.Enum { case .collaboratorAdd: return 700 case .collaboratorUpdate: return 701 case .collaboratorRemove: return 702 + case .userUpdate: return 800 case .UNRECOGNIZED(let i): return i } } @@ -1230,6 +1255,12 @@ extension Clarifai_Api_EventType: CaseIterable { .moduleVersionCreate, .moduleVersionUpdate, .moduleVersionDelete, + .modelCreate, + .modelUpdate, + .modelDelete, + .modelVersionCreate, + .modelVersionUpdate, + .modelVersionDelete, .workflowCreate, .workflowUpdate, .workflowDelete, @@ -1242,6 +1273,7 @@ extension Clarifai_Api_EventType: CaseIterable { .collaboratorAdd, .collaboratorUpdate, .collaboratorRemove, + .userUpdate, ] } @@ -12940,6 +12972,22 @@ public struct Clarifai_Api_AuditLogTarget { set {target = .workflowVersion(newValue)} } + public var model: Clarifai_Api_Model { + get { + if case .model(let v)? = target {return v} + return Clarifai_Api_Model() + } + set {target = .model(newValue)} + } + + public var modelVersion: Clarifai_Api_ModelVersion { + get { + if case .modelVersion(let v)? = target {return v} + return Clarifai_Api_ModelVersion() + } + set {target = .modelVersion(newValue)} + } + public var unknownFields = SwiftProtobuf.UnknownStorage() public enum OneOf_Target: Equatable { @@ -12951,6 +12999,8 @@ public struct Clarifai_Api_AuditLogTarget { case moduleVersion(Clarifai_Api_ModuleVersion) case workflow(Clarifai_Api_Workflow) case workflowVersion(Clarifai_Api_WorkflowVersion) + case model(Clarifai_Api_Model) + case modelVersion(Clarifai_Api_ModelVersion) #if !swift(>=4.1) public static func ==(lhs: Clarifai_Api_AuditLogTarget.OneOf_Target, rhs: Clarifai_Api_AuditLogTarget.OneOf_Target) -> Bool { @@ -12990,6 +13040,14 @@ public struct Clarifai_Api_AuditLogTarget { guard case .workflowVersion(let l) = lhs, case .workflowVersion(let r) = rhs else { preconditionFailure() } return l == r }() + case (.model, .model): return { + guard case .model(let l) = lhs, case .model(let r) = rhs else { preconditionFailure() } + return l == r + }() + case (.modelVersion, .modelVersion): return { + guard case .modelVersion(let l) = lhs, case .modelVersion(let r) = rhs else { preconditionFailure() } + return l == r + }() default: return false } } @@ -13351,1713 +13409,426 @@ public struct Clarifai_Api_ComputeSourceMetadata { fileprivate var _userAppID: Clarifai_Api_UserAppIDSet? = nil } -public struct Clarifai_Api_ArgoOrchestrationSpec { - // 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: String = String() +// MARK: - Code below here is support for the SwiftProtobuf runtime. - /// The API version of the orchestration specification. - /// Example: "argoproj.io/v1alpha1", "argoproj.io/v1beta1" - public var apiVersion: String = String() +fileprivate let _protobuf_package = "clarifai.api" - /// The JSON representation of the Argo orchestration specification. - public var specJson: String = String() +extension Clarifai_Api_WorkflowModelUseCase: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "WORKFLOW_MODEL_USE_CASE_NOT_SET"), + 1: .same(proto: "CLASSIFICATION"), + 2: .same(proto: "DETECTION"), + ] +} - public var unknownFields = SwiftProtobuf.UnknownStorage() +extension Clarifai_Api_DatasetVersionRequestOrigin: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "DATASET_VERSION_REQUEST_ORIGIN_NOT_SET"), + 1: .same(proto: "MANUAL"), + 2: .same(proto: "TRAINING"), + 3: .same(proto: "EVAL_GROUND_TRUTH"), + 4: .same(proto: "EVAL_PREDICTIONS"), + ] +} - public init() {} +extension Clarifai_Api_DatasetVersionMetricsGroupType: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "DATASET_VERSION_METRICS_GROUP_TYPE_NOT_SET"), + 2: .same(proto: "INPUT_TYPE"), + 10: .same(proto: "CONCEPT_ID"), + 11: .same(proto: "CONCEPTS_COUNT"), + 20: .same(proto: "BOUNDING_BOXES_COUNT"), + 21: .same(proto: "POLYGONS_COUNT"), + 22: .same(proto: "POINTS_COUNT"), + 23: .same(proto: "MASKS_COUNT"), + 30: .same(proto: "PIXELS_COUNT"), + 31: .same(proto: "ASPECT_RATIO"), + ] } -public struct Clarifai_Api_OrchestrationSpec { - // 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. +extension Clarifai_Api_DatasetVersionExportFormat: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "DATASET_VERSION_EXPORT_FORMAT_NOT_SET"), + 1: .same(proto: "CLARIFAI_DATA_PROTOBUF"), + 2: .same(proto: "COCO"), + 3: .same(proto: "CLARIFAI_DATA_JSON"), + ] +} - public var orchestration: Clarifai_Api_OrchestrationSpec.OneOf_Orchestration? = nil +extension Clarifai_Api_ExpirationAction: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "EXPIRATION_ACTION_NOT_SET"), + 1: .same(proto: "DELAY"), + 2: .same(proto: "EXPIRY"), + ] +} - /// Argo orchestration specification - public var argoOrchestrationSpec: Clarifai_Api_ArgoOrchestrationSpec { - get { - if case .argoOrchestrationSpec(let v)? = orchestration {return v} - return Clarifai_Api_ArgoOrchestrationSpec() - } - set {orchestration = .argoOrchestrationSpec(newValue)} - } +extension Clarifai_Api_LicenseScope: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "LICENSE_SCOPE_NOT_SET"), + 1: .same(proto: "PREDICT"), + 2: .same(proto: "TRAIN"), + 3: .same(proto: "SEARCH"), + ] +} - public var unknownFields = SwiftProtobuf.UnknownStorage() +extension Clarifai_Api_LicenseType: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "UNKNOWN_LICENSE_TYPE"), + 1: .same(proto: "FIRST_PARTY"), + 2: .same(proto: "OPEN_SOURCE"), + 3: .same(proto: "CLOSED_SOURCE"), + ] +} - public enum OneOf_Orchestration: Equatable { - /// Argo orchestration specification - case argoOrchestrationSpec(Clarifai_Api_ArgoOrchestrationSpec) +extension Clarifai_Api_DataType: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "UNDEFINED"), + 1: .same(proto: "STRING"), + 2: .same(proto: "UINT8"), + 3: .same(proto: "INT32"), + 4: .same(proto: "INT64"), + 5: .same(proto: "FP32"), + ] +} - #if !swift(>=4.1) - public static func ==(lhs: Clarifai_Api_OrchestrationSpec.OneOf_Orchestration, rhs: Clarifai_Api_OrchestrationSpec.OneOf_Orchestration) -> Bool { - // 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 (lhs, rhs) { - case (.argoOrchestrationSpec, .argoOrchestrationSpec): return { - guard case .argoOrchestrationSpec(let l) = lhs, case .argoOrchestrationSpec(let r) = rhs else { preconditionFailure() } - return l == r - }() - } - } - #endif - } +extension Clarifai_Api_ValueComparator: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "CONCEPT_THRESHOLD_NOT_SET"), + 1: .same(proto: "GREATER_THAN"), + 2: .same(proto: "GREATER_THAN_OR_EQUAL"), + 3: .same(proto: "LESS_THAN"), + 4: .same(proto: "LESS_THAN_OR_EQUAL"), + 5: .same(proto: "EQUAL"), + ] +} - public init() {} +extension Clarifai_Api_EvaluationType: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "Undefined"), + 1: .same(proto: "Classification"), + 2: .same(proto: "Detection"), + 3: .same(proto: "Segmentation"), + 4: .same(proto: "Clustering"), + 5: .same(proto: "Tracker"), + 6: .same(proto: "Generation"), + ] } -public struct Clarifai_Api_Pipeline { - // 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. +extension Clarifai_Api_APIEventType: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "API_EVENT_TYPE_NOT_SET"), + 1: .same(proto: "ON_PREM_PREDICT"), + 2: .same(proto: "ON_PREM_TRAIN"), + 3: .same(proto: "ON_PREM_SEARCH"), + ] +} - public var id: String { - get {return _storage._id} - set {_uniqueStorage()._id = newValue} - } +extension Clarifai_Api_UsageIntervalType: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "undef"), + 1: .same(proto: "day"), + 2: .same(proto: "month"), + 3: .same(proto: "year"), + ] +} - /// The user the pipeline belongs to - public var userID: String { - get {return _storage._userID} - set {_uniqueStorage()._userID = newValue} - } +extension Clarifai_Api_AnnotationDataType: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "ANNOTATION_DATA_TYPE_NOT_SET"), + 1: .same(proto: "TAG"), + 2: .same(proto: "BOUNDING_BOX"), + 4: .same(proto: "POLYGON"), + 8: .same(proto: "POINT"), + 16: .same(proto: "SPAN"), + 32: .same(proto: "MASK"), + ] +} - /// The app the pipeline belongs to - public var appID: String { - get {return _storage._appID} - set {_uniqueStorage()._appID = newValue} - } +extension Clarifai_Api_RoleType: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "TEAM"), + 1: .same(proto: "ORG"), + ] +} - /// Orchestration Specification using oneof - public var orchestrationSpec: Clarifai_Api_OrchestrationSpec { - get {return _storage._orchestrationSpec ?? Clarifai_Api_OrchestrationSpec()} - set {_uniqueStorage()._orchestrationSpec = newValue} - } - /// Returns true if `orchestrationSpec` has been explicitly set. - public var hasOrchestrationSpec: Bool {return _storage._orchestrationSpec != nil} - /// Clears the value of `orchestrationSpec`. Subsequent reads from it will return its default value. - public mutating func clearOrchestrationSpec() {_uniqueStorage()._orchestrationSpec = nil} +extension Clarifai_Api_StatValueAggType: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "SUM"), + 1: .same(proto: "AVG"), + ] +} - /// Latest Pipeline Version - public var pipelineVersion: Clarifai_Api_PipelineVersion { - get {return _storage._pipelineVersion ?? Clarifai_Api_PipelineVersion()} - set {_uniqueStorage()._pipelineVersion = newValue} - } - /// Returns true if `pipelineVersion` has been explicitly set. - public var hasPipelineVersion: Bool {return _storage._pipelineVersion != nil} - /// Clears the value of `pipelineVersion`. Subsequent reads from it will return its default value. - public mutating func clearPipelineVersion() {_uniqueStorage()._pipelineVersion = nil} +extension Clarifai_Api_StatTimeAggType: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "NO_TIME_AGG"), + 1: .same(proto: "YEAR"), + 2: .same(proto: "MONTH"), + 3: .same(proto: "WEEK"), + 4: .same(proto: "DAY"), + 5: .same(proto: "HOUR"), + 6: .same(proto: "MINUTE"), + ] +} - /// Short description about this pipeline - public var description_p: String { - get {return _storage._description_p} - set {_uniqueStorage()._description_p = newValue} - } +extension Clarifai_Api_ValidationErrorType: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "VALIDATION_ERROR_TYPE_NOT_SET"), + 1: .same(proto: "RESTRICTED"), + 2: .same(proto: "DATABASE"), + 3: .same(proto: "FORMAT"), + ] +} - /// The visibility field represents whether this message is privately/publicly visible. - /// To be visible to the public the App that contains it AND the User that contains the App must - /// also be publicly visible. - public var visibility: Clarifai_Api_Visibility { - get {return _storage._visibility ?? Clarifai_Api_Visibility()} - set {_uniqueStorage()._visibility = newValue} - } - /// Returns true if `visibility` has been explicitly set. - public var hasVisibility: Bool {return _storage._visibility != nil} - /// Clears the value of `visibility`. Subsequent reads from it will return its default value. - public mutating func clearVisibility() {_uniqueStorage()._visibility = nil} +extension Clarifai_Api_InputIDConflictResolution: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "INPUT_ID_CONFLICT_RESOLUTION_NOT_SET"), + 1: .same(proto: "SKIP"), + 2: .same(proto: "SUFFIX"), + ] +} - /// Notes for the Pipeline. This field should be used for in-depth notes and supports up to 64Kbs. - public var notes: String { - get {return _storage._notes} - set {_uniqueStorage()._notes = newValue} - } +extension Clarifai_Api_RunnerMethodType: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "UNKNOWN"), + 1: .same(proto: "UNARY_UNARY"), + 2: .same(proto: "UNARY_STREAMING"), + 3: .same(proto: "STREAMING_UNARY"), + 4: .same(proto: "STREAMING_STREAMING"), + ] +} - /// To handle arbitrary json metadata, use a struct field - /// https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto - public var metadata: SwiftProtobuf.Google_Protobuf_Struct { - get {return _storage._metadata ?? SwiftProtobuf.Google_Protobuf_Struct()} - set {_uniqueStorage()._metadata = newValue} - } - /// Returns true if `metadata` has been explicitly set. - public var hasMetadata: Bool {return _storage._metadata != nil} - /// Clears the value of `metadata`. Subsequent reads from it will return its default value. - public mutating func clearMetadata() {_uniqueStorage()._metadata = nil} - - /// When the pipeline was created - 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} - - /// When the pipeline was last modified - public var modifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp { - get {return _storage._modifiedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} - set {_uniqueStorage()._modifiedAt = newValue} - } - /// Returns true if `modifiedAt` has been explicitly set. - public var hasModifiedAt: Bool {return _storage._modifiedAt != nil} - /// Clears the value of `modifiedAt`. Subsequent reads from it will return its default value. - public mutating func clearModifiedAt() {_uniqueStorage()._modifiedAt = nil} - - public var unknownFields = SwiftProtobuf.UnknownStorage() - - public init() {} - - fileprivate var _storage = _StorageClass.defaultInstance -} - -public struct Clarifai_Api_PipelineVersion { - // 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: String = String() - - /// The app the pipeline version belongs to. - public var appID: String = String() - - /// The user the pipeline version belongs to. - public var userID: String = String() - - /// Orchestration Specification using oneof - public var orchestrationSpec: Clarifai_Api_OrchestrationSpec { - get {return _orchestrationSpec ?? Clarifai_Api_OrchestrationSpec()} - set {_orchestrationSpec = newValue} - } - /// Returns true if `orchestrationSpec` has been explicitly set. - public var hasOrchestrationSpec: Bool {return self._orchestrationSpec != nil} - /// Clears the value of `orchestrationSpec`. Subsequent reads from it will return its default value. - public mutating func clearOrchestrationSpec() {self._orchestrationSpec = nil} - - /// Pipeline's Id - public var pipelineID: String = String() - - /// Short description about this pipeline version - public var description_p: String = String() - - /// The visibility field represents whether this message is privately/publicly visible. - /// To be visible to the public the App that contains it AND the User that contains the App must - /// also be publicly visible. - public var visibility: Clarifai_Api_Visibility { - get {return _visibility ?? Clarifai_Api_Visibility()} - set {_visibility = newValue} - } - /// Returns true if `visibility` has been explicitly set. - public var hasVisibility: Bool {return self._visibility != nil} - /// Clears the value of `visibility`. Subsequent reads from it will return its default value. - public mutating func clearVisibility() {self._visibility = nil} - - /// To handle arbitrary json metadata, use a struct field - /// https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto - public var metadata: SwiftProtobuf.Google_Protobuf_Struct { - get {return _metadata ?? SwiftProtobuf.Google_Protobuf_Struct()} - set {_metadata = newValue} - } - /// Returns true if `metadata` has been explicitly set. - public var hasMetadata: Bool {return self._metadata != nil} - /// Clears the value of `metadata`. Subsequent reads from it will return its default value. - public mutating func clearMetadata() {self._metadata = nil} - - /// When the pipeline was created - 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} - - /// When the pipeline was last modified - public var modifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp { - get {return _modifiedAt ?? SwiftProtobuf.Google_Protobuf_Timestamp()} - set {_modifiedAt = newValue} - } - /// Returns true if `modifiedAt` has been explicitly set. - public var hasModifiedAt: Bool {return self._modifiedAt != nil} - /// Clears the value of `modifiedAt`. Subsequent reads from it will return its default value. - public mutating func clearModifiedAt() {self._modifiedAt = nil} - - public var unknownFields = SwiftProtobuf.UnknownStorage() - - public init() {} - - fileprivate var _orchestrationSpec: Clarifai_Api_OrchestrationSpec? = nil - fileprivate var _visibility: Clarifai_Api_Visibility? = nil - fileprivate var _metadata: SwiftProtobuf.Google_Protobuf_Struct? = nil - fileprivate var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - fileprivate var _modifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil -} - -public struct Clarifai_Api_OrchestrationStatus { - // 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. - - /// Oneof field for extensibility, supporting different orchestration systems - public var statusDetails: Clarifai_Api_OrchestrationStatus.OneOf_StatusDetails? = nil - - /// Status for Argo Workflow - public var argoStatus: Clarifai_Api_ArgoOrchestrationStatus { - get { - if case .argoStatus(let v)? = statusDetails {return v} - return Clarifai_Api_ArgoOrchestrationStatus() - } - set {statusDetails = .argoStatus(newValue)} - } - - /// This will help us with filtering the PipelineRuns based on status - public var status: Clarifai_Api_Status_Status { - get {return _status ?? Clarifai_Api_Status_Status()} - set {_status = newValue} - } - /// Returns true if `status` has been explicitly set. - public var hasStatus: Bool {return self._status != nil} - /// Clears the value of `status`. Subsequent reads from it will return its default value. - public mutating func clearStatus() {self._status = nil} - - public var unknownFields = SwiftProtobuf.UnknownStorage() - - /// Oneof field for extensibility, supporting different orchestration systems - public enum OneOf_StatusDetails: Equatable { - /// Status for Argo Workflow - case argoStatus(Clarifai_Api_ArgoOrchestrationStatus) - - #if !swift(>=4.1) - public static func ==(lhs: Clarifai_Api_OrchestrationStatus.OneOf_StatusDetails, rhs: Clarifai_Api_OrchestrationStatus.OneOf_StatusDetails) -> Bool { - // 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 (lhs, rhs) { - case (.argoStatus, .argoStatus): return { - guard case .argoStatus(let l) = lhs, case .argoStatus(let r) = rhs else { preconditionFailure() } - return l == r - }() - } - } - #endif - } - - public init() {} - - fileprivate var _status: Clarifai_Api_Status_Status? = nil -} - -/// Argo Workflow Status message -public struct Clarifai_Api_ArgoOrchestrationStatus { - // 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. - - /// Try for Proto serialisation else this could be the YAML or JSON spec of an Argo Workflow Status - /// Refer https://pkg.go.dev/github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1#WorkflowStatus - public var status: Data = Data() - - public var unknownFields = SwiftProtobuf.UnknownStorage() - - public init() {} -} - -public struct Clarifai_Api_PipelineRun { - // 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: String { - get {return _storage._id} - set {_uniqueStorage()._id = newValue} - } - - /// Pipeline Version associated with this run - public var pipelineVersion: Clarifai_Api_PipelineVersion { - get {return _storage._pipelineVersion ?? Clarifai_Api_PipelineVersion()} - set {_uniqueStorage()._pipelineVersion = newValue} - } - /// Returns true if `pipelineVersion` has been explicitly set. - public var hasPipelineVersion: Bool {return _storage._pipelineVersion != nil} - /// Clears the value of `pipelineVersion`. Subsequent reads from it will return its default value. - public mutating func clearPipelineVersion() {_uniqueStorage()._pipelineVersion = nil} - - /// Nodepool(s) used for the Pipeline Run - public var nodepools: [Clarifai_Api_Nodepool] { - get {return _storage._nodepools} - set {_uniqueStorage()._nodepools = newValue} - } - - /// Orchestration Status for this run, supporting multiple orchestration systems - public var orchestrationStatus: Clarifai_Api_OrchestrationStatus { - get {return _storage._orchestrationStatus ?? Clarifai_Api_OrchestrationStatus()} - set {_uniqueStorage()._orchestrationStatus = newValue} - } - /// Returns true if `orchestrationStatus` has been explicitly set. - public var hasOrchestrationStatus: Bool {return _storage._orchestrationStatus != nil} - /// Clears the value of `orchestrationStatus`. Subsequent reads from it will return its default value. - public mutating func clearOrchestrationStatus() {_uniqueStorage()._orchestrationStatus = nil} - - public var unknownFields = SwiftProtobuf.UnknownStorage() - - public init() {} - - fileprivate var _storage = _StorageClass.defaultInstance -} - -// MARK: - Code below here is support for the SwiftProtobuf runtime. - -fileprivate let _protobuf_package = "clarifai.api" - -extension Clarifai_Api_WorkflowModelUseCase: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "WORKFLOW_MODEL_USE_CASE_NOT_SET"), - 1: .same(proto: "CLASSIFICATION"), - 2: .same(proto: "DETECTION"), - ] -} - -extension Clarifai_Api_DatasetVersionRequestOrigin: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "DATASET_VERSION_REQUEST_ORIGIN_NOT_SET"), - 1: .same(proto: "MANUAL"), - 2: .same(proto: "TRAINING"), - 3: .same(proto: "EVAL_GROUND_TRUTH"), - 4: .same(proto: "EVAL_PREDICTIONS"), - ] -} - -extension Clarifai_Api_DatasetVersionMetricsGroupType: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "DATASET_VERSION_METRICS_GROUP_TYPE_NOT_SET"), - 2: .same(proto: "INPUT_TYPE"), - 10: .same(proto: "CONCEPT_ID"), - 11: .same(proto: "CONCEPTS_COUNT"), - 20: .same(proto: "BOUNDING_BOXES_COUNT"), - 21: .same(proto: "POLYGONS_COUNT"), - 22: .same(proto: "POINTS_COUNT"), - 23: .same(proto: "MASKS_COUNT"), - 30: .same(proto: "PIXELS_COUNT"), - 31: .same(proto: "ASPECT_RATIO"), - ] -} - -extension Clarifai_Api_DatasetVersionExportFormat: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "DATASET_VERSION_EXPORT_FORMAT_NOT_SET"), - 1: .same(proto: "CLARIFAI_DATA_PROTOBUF"), - 2: .same(proto: "COCO"), - 3: .same(proto: "CLARIFAI_DATA_JSON"), - ] -} - -extension Clarifai_Api_ExpirationAction: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "EXPIRATION_ACTION_NOT_SET"), - 1: .same(proto: "DELAY"), - 2: .same(proto: "EXPIRY"), - ] -} - -extension Clarifai_Api_LicenseScope: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "LICENSE_SCOPE_NOT_SET"), - 1: .same(proto: "PREDICT"), - 2: .same(proto: "TRAIN"), - 3: .same(proto: "SEARCH"), - ] -} - -extension Clarifai_Api_LicenseType: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "UNKNOWN_LICENSE_TYPE"), - 1: .same(proto: "FIRST_PARTY"), - 2: .same(proto: "OPEN_SOURCE"), - 3: .same(proto: "CLOSED_SOURCE"), - ] -} - -extension Clarifai_Api_DataType: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "UNDEFINED"), - 1: .same(proto: "STRING"), - 2: .same(proto: "UINT8"), - 3: .same(proto: "INT32"), - 4: .same(proto: "INT64"), - 5: .same(proto: "FP32"), - ] -} - -extension Clarifai_Api_ValueComparator: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "CONCEPT_THRESHOLD_NOT_SET"), - 1: .same(proto: "GREATER_THAN"), - 2: .same(proto: "GREATER_THAN_OR_EQUAL"), - 3: .same(proto: "LESS_THAN"), - 4: .same(proto: "LESS_THAN_OR_EQUAL"), - 5: .same(proto: "EQUAL"), - ] -} - -extension Clarifai_Api_EvaluationType: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "Undefined"), - 1: .same(proto: "Classification"), - 2: .same(proto: "Detection"), - 3: .same(proto: "Segmentation"), - 4: .same(proto: "Clustering"), - 5: .same(proto: "Tracker"), - 6: .same(proto: "Generation"), - ] -} - -extension Clarifai_Api_APIEventType: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "API_EVENT_TYPE_NOT_SET"), - 1: .same(proto: "ON_PREM_PREDICT"), - 2: .same(proto: "ON_PREM_TRAIN"), - 3: .same(proto: "ON_PREM_SEARCH"), - ] -} - -extension Clarifai_Api_UsageIntervalType: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "undef"), - 1: .same(proto: "day"), - 2: .same(proto: "month"), - 3: .same(proto: "year"), - ] -} - -extension Clarifai_Api_AnnotationDataType: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "ANNOTATION_DATA_TYPE_NOT_SET"), - 1: .same(proto: "TAG"), - 2: .same(proto: "BOUNDING_BOX"), - 4: .same(proto: "POLYGON"), - 8: .same(proto: "POINT"), - 16: .same(proto: "SPAN"), - 32: .same(proto: "MASK"), - ] -} - -extension Clarifai_Api_RoleType: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "TEAM"), - 1: .same(proto: "ORG"), - ] -} - -extension Clarifai_Api_StatValueAggType: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "SUM"), - 1: .same(proto: "AVG"), - ] -} - -extension Clarifai_Api_StatTimeAggType: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "NO_TIME_AGG"), - 1: .same(proto: "YEAR"), - 2: .same(proto: "MONTH"), - 3: .same(proto: "WEEK"), - 4: .same(proto: "DAY"), - 5: .same(proto: "HOUR"), - 6: .same(proto: "MINUTE"), - ] -} - -extension Clarifai_Api_ValidationErrorType: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "VALIDATION_ERROR_TYPE_NOT_SET"), - 1: .same(proto: "RESTRICTED"), - 2: .same(proto: "DATABASE"), - 3: .same(proto: "FORMAT"), - ] -} - -extension Clarifai_Api_InputIDConflictResolution: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "INPUT_ID_CONFLICT_RESOLUTION_NOT_SET"), - 1: .same(proto: "SKIP"), - 2: .same(proto: "SUFFIX"), - ] -} - -extension Clarifai_Api_RunnerMethodType: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "UNKNOWN"), - 1: .same(proto: "UNARY_UNARY"), - 2: .same(proto: "UNARY_STREAMING"), - 3: .same(proto: "STREAMING_UNARY"), - 4: .same(proto: "STREAMING_STREAMING"), - ] -} - -extension Clarifai_Api_EventType: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "EVENT_TYPE_NOT_SET"), - 100: .same(proto: "ORGANIZATION_MEMBER_ADD"), - 101: .same(proto: "ORGANIZATION_MEMBER_CHANGE"), - 102: .same(proto: "ORGANIZATION_MEMBER_REMOVE"), - 103: .same(proto: "ORGANIZATION_MEMBER_INVITATION_CREATE"), - 104: .same(proto: "ORGANIZATION_MEMBER_INVITATION_CANCEL"), - 105: .same(proto: "ORGANIZATION_MEMBER_INVITATION_ACCEPT"), - 106: .same(proto: "ORGANIZATION_MEMBER_INVITATION_DECLINE"), - 107: .same(proto: "ORGANIZATION_TEAM_CREATE"), - 108: .same(proto: "ORGANIZATION_TEAM_UPDATE"), - 109: .same(proto: "ORGANIZATION_TEAM_DELETE"), - 110: .same(proto: "ORGANIZATION_TEAM_MEMBER_ADD"), - 111: .same(proto: "ORGANIZATION_TEAM_MEMBER_REMOVE"), - 112: .same(proto: "ORGANIZATION_TEAM_APP_ADD"), - 113: .same(proto: "ORGANIZATION_TEAM_APP_REMOVE"), - 200: .same(proto: "MODULE_CREATE"), - 201: .same(proto: "MODULE_UPDATE"), - 202: .same(proto: "MODULE_DELETE"), - 203: .same(proto: "MODULE_VERSION_CREATE"), - 204: .same(proto: "MODULE_VERSION_UPDATE"), - 205: .same(proto: "MODULE_VERSION_DELETE"), - 400: .same(proto: "WORKFLOW_CREATE"), - 401: .same(proto: "WORKFLOW_UPDATE"), - 402: .same(proto: "WORKFLOW_DELETE"), - 403: .same(proto: "WORKFLOW_VERSION_CREATE"), - 404: .same(proto: "WORKFLOW_VERSION_UPDATE"), - 405: .same(proto: "WORKFLOW_VERSION_DELETE"), - 600: .same(proto: "APPLICATION_CREATE"), - 601: .same(proto: "APPLICATION_UPDATE"), - 602: .same(proto: "APPLICATION_DELETE"), - 700: .same(proto: "COLLABORATOR_ADD"), - 701: .same(proto: "COLLABORATOR_UPDATE"), - 702: .same(proto: "COLLABORATOR_REMOVE"), - ] -} - -extension Clarifai_Api_Annotation: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Annotation" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .standard(proto: "input_id"), - 3: .same(proto: "data"), - 13: .standard(proto: "annotation_info"), - 15: .standard(proto: "user_id"), - 16: .standard(proto: "model_version_id"), - 14: .standard(proto: "embed_model_version_id"), - 7: .same(proto: "status"), - 8: .standard(proto: "created_at"), - 9: .standard(proto: "modified_at"), - 10: .same(proto: "trusted"), - 17: .standard(proto: "input_level"), - 18: .standard(proto: "consensus_info"), - 19: .standard(proto: "task_id"), - 21: .same(proto: "worker"), - ] - - fileprivate class _StorageClass { - var _id: String = String() - var _inputID: String = String() - var _data: Clarifai_Api_Data? = nil - var _annotationInfo: SwiftProtobuf.Google_Protobuf_Struct? = nil - var _userID: String = String() - var _modelVersionID: String = String() - var _embedModelVersionID: String = String() - var _status: Clarifai_Api_Status_Status? = nil - var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _modifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _trusted: Bool = false - var _inputLevel: Bool = false - var _consensusInfo: SwiftProtobuf.Google_Protobuf_Struct? = nil - var _taskID: String = String() - var _worker: Clarifai_Api_Worker? = nil - - static let defaultInstance = _StorageClass() - - private init() {} - - init(copying source: _StorageClass) { - _id = source._id - _inputID = source._inputID - _data = source._data - _annotationInfo = source._annotationInfo - _userID = source._userID - _modelVersionID = source._modelVersionID - _embedModelVersionID = source._embedModelVersionID - _status = source._status - _createdAt = source._createdAt - _modifiedAt = source._modifiedAt - _trusted = source._trusted - _inputLevel = source._inputLevel - _consensusInfo = source._consensusInfo - _taskID = source._taskID - _worker = source._worker - } - } - - 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.decodeSingularStringField(value: &_storage._id) }() - case 2: try { try decoder.decodeSingularStringField(value: &_storage._inputID) }() - case 3: try { try decoder.decodeSingularMessageField(value: &_storage._data) }() - case 7: try { try decoder.decodeSingularMessageField(value: &_storage._status) }() - case 8: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() - case 9: try { try decoder.decodeSingularMessageField(value: &_storage._modifiedAt) }() - case 10: try { try decoder.decodeSingularBoolField(value: &_storage._trusted) }() - case 13: try { try decoder.decodeSingularMessageField(value: &_storage._annotationInfo) }() - case 14: try { try decoder.decodeSingularStringField(value: &_storage._embedModelVersionID) }() - case 15: try { try decoder.decodeSingularStringField(value: &_storage._userID) }() - case 16: try { try decoder.decodeSingularStringField(value: &_storage._modelVersionID) }() - case 17: try { try decoder.decodeSingularBoolField(value: &_storage._inputLevel) }() - case 18: try { try decoder.decodeSingularMessageField(value: &_storage._consensusInfo) }() - case 19: try { try decoder.decodeSingularStringField(value: &_storage._taskID) }() - case 21: try { try decoder.decodeSingularMessageField(value: &_storage._worker) }() - 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.isEmpty { - try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) - } - if !_storage._inputID.isEmpty { - try visitor.visitSingularStringField(value: _storage._inputID, fieldNumber: 2) - } - try { if let v = _storage._data { - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - } }() - try { if let v = _storage._status { - try visitor.visitSingularMessageField(value: v, fieldNumber: 7) - } }() - try { if let v = _storage._createdAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 8) - } }() - try { if let v = _storage._modifiedAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 9) - } }() - if _storage._trusted != false { - try visitor.visitSingularBoolField(value: _storage._trusted, fieldNumber: 10) - } - try { if let v = _storage._annotationInfo { - try visitor.visitSingularMessageField(value: v, fieldNumber: 13) - } }() - if !_storage._embedModelVersionID.isEmpty { - try visitor.visitSingularStringField(value: _storage._embedModelVersionID, fieldNumber: 14) - } - if !_storage._userID.isEmpty { - try visitor.visitSingularStringField(value: _storage._userID, fieldNumber: 15) - } - if !_storage._modelVersionID.isEmpty { - try visitor.visitSingularStringField(value: _storage._modelVersionID, fieldNumber: 16) - } - if _storage._inputLevel != false { - try visitor.visitSingularBoolField(value: _storage._inputLevel, fieldNumber: 17) - } - try { if let v = _storage._consensusInfo { - try visitor.visitSingularMessageField(value: v, fieldNumber: 18) - } }() - if !_storage._taskID.isEmpty { - try visitor.visitSingularStringField(value: _storage._taskID, fieldNumber: 19) - } - try { if let v = _storage._worker { - try visitor.visitSingularMessageField(value: v, fieldNumber: 21) - } }() - } - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_Annotation, rhs: Clarifai_Api_Annotation) -> 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._inputID != rhs_storage._inputID {return false} - if _storage._data != rhs_storage._data {return false} - if _storage._annotationInfo != rhs_storage._annotationInfo {return false} - if _storage._userID != rhs_storage._userID {return false} - if _storage._modelVersionID != rhs_storage._modelVersionID {return false} - if _storage._embedModelVersionID != rhs_storage._embedModelVersionID {return false} - if _storage._status != rhs_storage._status {return false} - if _storage._createdAt != rhs_storage._createdAt {return false} - if _storage._modifiedAt != rhs_storage._modifiedAt {return false} - if _storage._trusted != rhs_storage._trusted {return false} - if _storage._inputLevel != rhs_storage._inputLevel {return false} - if _storage._consensusInfo != rhs_storage._consensusInfo {return false} - if _storage._taskID != rhs_storage._taskID {return false} - if _storage._worker != rhs_storage._worker {return false} - return true - } - if !storagesAreEqual {return false} - } - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Clarifai_Api_Worker: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Worker" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "user"), - 2: .same(proto: "model"), - 3: .same(proto: "workflow"), - ] - - 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 { - var v: Clarifai_Api_User? - var hadOneofValue = false - if let current = self.worker { - hadOneofValue = true - if case .user(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - self.worker = .user(v) - } - }() - case 2: try { - var v: Clarifai_Api_Model? - var hadOneofValue = false - if let current = self.worker { - hadOneofValue = true - if case .model(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - self.worker = .model(v) - } - }() - case 3: try { - var v: Clarifai_Api_Workflow? - var hadOneofValue = false - if let current = self.worker { - hadOneofValue = true - if case .workflow(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - self.worker = .workflow(v) - } - }() - 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 - switch self.worker { - case .user?: try { - guard case .user(let v)? = self.worker else { preconditionFailure() } - try visitor.visitSingularMessageField(value: v, fieldNumber: 1) - }() - case .model?: try { - guard case .model(let v)? = self.worker else { preconditionFailure() } - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - }() - case .workflow?: try { - guard case .workflow(let v)? = self.worker else { preconditionFailure() } - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - }() - case nil: break - } - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_Worker, rhs: Clarifai_Api_Worker) -> Bool { - if lhs.worker != rhs.worker {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Clarifai_Api_App: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".App" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .same(proto: "name"), - 3: .standard(proto: "default_language"), - 4: .standard(proto: "default_workflow_id"), - 23: .standard(proto: "default_workflow"), - 5: .standard(proto: "user_id"), - 6: .standard(proto: "created_at"), - 17: .standard(proto: "modified_at"), - 7: .standard(proto: "legal_consent_status"), - 13: .same(proto: "metadata"), - 14: .same(proto: "description"), - 15: .standard(proto: "sample_ms"), - 16: .same(proto: "visibility"), - 18: .standard(proto: "data_tier_id"), - 19: .standard(proto: "is_starred"), - 20: .standard(proto: "star_count"), - 21: .same(proto: "notes"), - 22: .same(proto: "image"), - 25: .standard(proto: "is_template"), - 24: .standard(proto: "extra_info"), - 26: .standard(proto: "embeddings_storage"), - ] - - fileprivate class _StorageClass { - var _id: String = String() - var _name: String = String() - var _defaultLanguage: String = String() - var _defaultWorkflowID: String = String() - var _defaultWorkflow: Clarifai_Api_Workflow? = nil - var _userID: String = String() - var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _modifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _legalConsentStatus: UInt32 = 0 - var _metadata: SwiftProtobuf.Google_Protobuf_Struct? = nil - var _description_p: String = String() - var _sampleMs: UInt32 = 0 - var _visibility: Clarifai_Api_Visibility? = nil - var _dataTierID: String = String() - var _isStarred: Bool = false - var _starCount: Int32 = 0 - var _notes: String = String() - var _image: Clarifai_Api_Image? = nil - var _isTemplate: SwiftProtobuf.Google_Protobuf_BoolValue? = nil - var _extraInfo: Clarifai_Api_AppExtraInfo? = nil - var _embeddingsStorage: Clarifai_Api_App.EmbeddingsStorage = .embeddingStorageNotSet - - static let defaultInstance = _StorageClass() - - private init() {} - - init(copying source: _StorageClass) { - _id = source._id - _name = source._name - _defaultLanguage = source._defaultLanguage - _defaultWorkflowID = source._defaultWorkflowID - _defaultWorkflow = source._defaultWorkflow - _userID = source._userID - _createdAt = source._createdAt - _modifiedAt = source._modifiedAt - _legalConsentStatus = source._legalConsentStatus - _metadata = source._metadata - _description_p = source._description_p - _sampleMs = source._sampleMs - _visibility = source._visibility - _dataTierID = source._dataTierID - _isStarred = source._isStarred - _starCount = source._starCount - _notes = source._notes - _image = source._image - _isTemplate = source._isTemplate - _extraInfo = source._extraInfo - _embeddingsStorage = source._embeddingsStorage - } - } - - 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.decodeSingularStringField(value: &_storage._id) }() - case 2: try { try decoder.decodeSingularStringField(value: &_storage._name) }() - case 3: try { try decoder.decodeSingularStringField(value: &_storage._defaultLanguage) }() - case 4: try { try decoder.decodeSingularStringField(value: &_storage._defaultWorkflowID) }() - case 5: try { try decoder.decodeSingularStringField(value: &_storage._userID) }() - case 6: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() - case 7: try { try decoder.decodeSingularUInt32Field(value: &_storage._legalConsentStatus) }() - case 13: try { try decoder.decodeSingularMessageField(value: &_storage._metadata) }() - case 14: try { try decoder.decodeSingularStringField(value: &_storage._description_p) }() - case 15: try { try decoder.decodeSingularUInt32Field(value: &_storage._sampleMs) }() - case 16: try { try decoder.decodeSingularMessageField(value: &_storage._visibility) }() - case 17: try { try decoder.decodeSingularMessageField(value: &_storage._modifiedAt) }() - case 18: try { try decoder.decodeSingularStringField(value: &_storage._dataTierID) }() - case 19: try { try decoder.decodeSingularBoolField(value: &_storage._isStarred) }() - case 20: try { try decoder.decodeSingularInt32Field(value: &_storage._starCount) }() - case 21: try { try decoder.decodeSingularStringField(value: &_storage._notes) }() - case 22: try { try decoder.decodeSingularMessageField(value: &_storage._image) }() - case 23: try { try decoder.decodeSingularMessageField(value: &_storage._defaultWorkflow) }() - case 24: try { try decoder.decodeSingularMessageField(value: &_storage._extraInfo) }() - case 25: try { try decoder.decodeSingularMessageField(value: &_storage._isTemplate) }() - case 26: try { try decoder.decodeSingularEnumField(value: &_storage._embeddingsStorage) }() - 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.isEmpty { - try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) - } - if !_storage._name.isEmpty { - try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 2) - } - if !_storage._defaultLanguage.isEmpty { - try visitor.visitSingularStringField(value: _storage._defaultLanguage, fieldNumber: 3) - } - if !_storage._defaultWorkflowID.isEmpty { - try visitor.visitSingularStringField(value: _storage._defaultWorkflowID, fieldNumber: 4) - } - if !_storage._userID.isEmpty { - try visitor.visitSingularStringField(value: _storage._userID, fieldNumber: 5) - } - try { if let v = _storage._createdAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) - } }() - if _storage._legalConsentStatus != 0 { - try visitor.visitSingularUInt32Field(value: _storage._legalConsentStatus, fieldNumber: 7) - } - try { if let v = _storage._metadata { - try visitor.visitSingularMessageField(value: v, fieldNumber: 13) - } }() - if !_storage._description_p.isEmpty { - try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 14) - } - if _storage._sampleMs != 0 { - try visitor.visitSingularUInt32Field(value: _storage._sampleMs, fieldNumber: 15) - } - try { if let v = _storage._visibility { - try visitor.visitSingularMessageField(value: v, fieldNumber: 16) - } }() - try { if let v = _storage._modifiedAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 17) - } }() - if !_storage._dataTierID.isEmpty { - try visitor.visitSingularStringField(value: _storage._dataTierID, fieldNumber: 18) - } - if _storage._isStarred != false { - try visitor.visitSingularBoolField(value: _storage._isStarred, fieldNumber: 19) - } - if _storage._starCount != 0 { - try visitor.visitSingularInt32Field(value: _storage._starCount, fieldNumber: 20) - } - if !_storage._notes.isEmpty { - try visitor.visitSingularStringField(value: _storage._notes, fieldNumber: 21) - } - try { if let v = _storage._image { - try visitor.visitSingularMessageField(value: v, fieldNumber: 22) - } }() - try { if let v = _storage._defaultWorkflow { - try visitor.visitSingularMessageField(value: v, fieldNumber: 23) - } }() - try { if let v = _storage._extraInfo { - try visitor.visitSingularMessageField(value: v, fieldNumber: 24) - } }() - try { if let v = _storage._isTemplate { - try visitor.visitSingularMessageField(value: v, fieldNumber: 25) - } }() - if _storage._embeddingsStorage != .embeddingStorageNotSet { - try visitor.visitSingularEnumField(value: _storage._embeddingsStorage, fieldNumber: 26) - } - } - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_App, rhs: Clarifai_Api_App) -> 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._defaultLanguage != rhs_storage._defaultLanguage {return false} - if _storage._defaultWorkflowID != rhs_storage._defaultWorkflowID {return false} - if _storage._defaultWorkflow != rhs_storage._defaultWorkflow {return false} - if _storage._userID != rhs_storage._userID {return false} - if _storage._createdAt != rhs_storage._createdAt {return false} - if _storage._modifiedAt != rhs_storage._modifiedAt {return false} - if _storage._legalConsentStatus != rhs_storage._legalConsentStatus {return false} - if _storage._metadata != rhs_storage._metadata {return false} - if _storage._description_p != rhs_storage._description_p {return false} - if _storage._sampleMs != rhs_storage._sampleMs {return false} - if _storage._visibility != rhs_storage._visibility {return false} - if _storage._dataTierID != rhs_storage._dataTierID {return false} - if _storage._isStarred != rhs_storage._isStarred {return false} - if _storage._starCount != rhs_storage._starCount {return false} - if _storage._notes != rhs_storage._notes {return false} - if _storage._image != rhs_storage._image {return false} - if _storage._isTemplate != rhs_storage._isTemplate {return false} - if _storage._extraInfo != rhs_storage._extraInfo {return false} - if _storage._embeddingsStorage != rhs_storage._embeddingsStorage {return false} - return true - } - if !storagesAreEqual {return false} - } - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Clarifai_Api_App.EmbeddingsStorage: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "EMBEDDING_STORAGE_NOT_SET"), - 1: .same(proto: "POSTGRES"), - 2: .same(proto: "QDRANT"), - ] -} - -extension Clarifai_Api_AppExtraInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".AppExtraInfo" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "search_revision_marker"), - 2: .same(proto: "counts"), - ] - - 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.searchRevisionMarker) }() - case 2: try { try decoder.decodeSingularMessageField(value: &self._counts) }() - 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.searchRevisionMarker.isEmpty { - try visitor.visitSingularStringField(value: self.searchRevisionMarker, fieldNumber: 1) - } - try { if let v = self._counts { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_AppExtraInfo, rhs: Clarifai_Api_AppExtraInfo) -> Bool { - if lhs.searchRevisionMarker != rhs.searchRevisionMarker {return false} - if lhs._counts != rhs._counts {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Clarifai_Api_AppQuery: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".AppQuery" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "name"), - ] - - 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) }() - default: break - } - } - } - - public func traverse(visitor: inout V) throws { - if !self.name.isEmpty { - try visitor.visitSingularStringField(value: self.name, fieldNumber: 1) - } - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_AppQuery, rhs: Clarifai_Api_AppQuery) -> Bool { - if lhs.name != rhs.name {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Clarifai_Api_AppResourceCounts: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".AppResourceCounts" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "datasets"), - 2: .same(proto: "models"), - 3: .same(proto: "workflows"), - 4: .same(proto: "modules"), - 5: .same(proto: "inputs"), - ] - - 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.datasets) }() - case 2: try { try decoder.decodeSingularInt64Field(value: &self.models) }() - case 3: try { try decoder.decodeSingularInt64Field(value: &self.workflows) }() - case 4: try { try decoder.decodeSingularInt64Field(value: &self.modules) }() - case 5: try { try decoder.decodeSingularInt64Field(value: &self.inputs) }() - default: break - } - } - } - - public func traverse(visitor: inout V) throws { - if self.datasets != 0 { - try visitor.visitSingularInt64Field(value: self.datasets, fieldNumber: 1) - } - if self.models != 0 { - try visitor.visitSingularInt64Field(value: self.models, fieldNumber: 2) - } - if self.workflows != 0 { - try visitor.visitSingularInt64Field(value: self.workflows, fieldNumber: 3) - } - if self.modules != 0 { - try visitor.visitSingularInt64Field(value: self.modules, fieldNumber: 4) - } - if self.inputs != 0 { - try visitor.visitSingularInt64Field(value: self.inputs, fieldNumber: 5) - } - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_AppResourceCounts, rhs: Clarifai_Api_AppResourceCounts) -> Bool { - if lhs.datasets != rhs.datasets {return false} - if lhs.models != rhs.models {return false} - if lhs.workflows != rhs.workflows {return false} - if lhs.modules != rhs.modules {return false} - if lhs.inputs != rhs.inputs {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Clarifai_Api_Collaborator: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Collaborator" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .same(proto: "app"), - 3: .same(proto: "user"), - 4: .same(proto: "scopes"), - 5: .same(proto: "endpoints"), - 6: .standard(proto: "created_at"), - 7: .standard(proto: "modified_at"), - 8: .standard(proto: "deleted_at"), - ] - - 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.id) }() - case 2: try { try decoder.decodeSingularMessageField(value: &self._app) }() - case 3: try { try decoder.decodeSingularMessageField(value: &self._user) }() - case 4: try { try decoder.decodeRepeatedStringField(value: &self.scopes) }() - case 5: try { try decoder.decodeRepeatedStringField(value: &self.endpoints) }() - case 6: try { try decoder.decodeSingularMessageField(value: &self._createdAt) }() - case 7: try { try decoder.decodeSingularMessageField(value: &self._modifiedAt) }() - case 8: try { try decoder.decodeSingularMessageField(value: &self._deletedAt) }() - 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.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) - } - try { if let v = self._app { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - try { if let v = self._user { - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - } }() - if !self.scopes.isEmpty { - try visitor.visitRepeatedStringField(value: self.scopes, fieldNumber: 4) - } - if !self.endpoints.isEmpty { - try visitor.visitRepeatedStringField(value: self.endpoints, fieldNumber: 5) - } - try { if let v = self._createdAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) - } }() - try { if let v = self._modifiedAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 7) - } }() - try { if let v = self._deletedAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 8) - } }() - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_Collaborator, rhs: Clarifai_Api_Collaborator) -> Bool { - if lhs.id != rhs.id {return false} - if lhs._app != rhs._app {return false} - if lhs._user != rhs._user {return false} - if lhs.scopes != rhs.scopes {return false} - if lhs.endpoints != rhs.endpoints {return false} - if lhs._createdAt != rhs._createdAt {return false} - if lhs._modifiedAt != rhs._modifiedAt {return false} - if lhs._deletedAt != rhs._deletedAt {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Clarifai_Api_Collaboration: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Collaboration" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "app"), - 2: .standard(proto: "app_owner"), - 3: .same(proto: "scopes"), - 4: .same(proto: "endpoints"), - 5: .standard(proto: "created_at"), - ] - - 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._app) }() - case 2: try { try decoder.decodeSingularMessageField(value: &self._appOwner) }() - case 3: try { try decoder.decodeRepeatedStringField(value: &self.scopes) }() - case 4: try { try decoder.decodeRepeatedStringField(value: &self.endpoints) }() - case 5: try { try decoder.decodeSingularMessageField(value: &self._createdAt) }() - 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._app { - try visitor.visitSingularMessageField(value: v, fieldNumber: 1) - } }() - try { if let v = self._appOwner { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - if !self.scopes.isEmpty { - try visitor.visitRepeatedStringField(value: self.scopes, fieldNumber: 3) - } - if !self.endpoints.isEmpty { - try visitor.visitRepeatedStringField(value: self.endpoints, fieldNumber: 4) - } - try { if let v = self._createdAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 5) - } }() - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_Collaboration, rhs: Clarifai_Api_Collaboration) -> Bool { - if lhs._app != rhs._app {return false} - if lhs._appOwner != rhs._appOwner {return false} - if lhs.scopes != rhs.scopes {return false} - if lhs.endpoints != rhs.endpoints {return false} - if lhs._createdAt != rhs._createdAt {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Clarifai_Api_Audio: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Audio" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "url"), - 2: .same(proto: "base64"), - 4: .standard(proto: "allow_duplicate_url"), - 5: .same(proto: "hosted"), - 6: .standard(proto: "audio_info"), - ] - - 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.url) }() - case 2: try { try decoder.decodeSingularBytesField(value: &self.base64) }() - case 4: try { try decoder.decodeSingularBoolField(value: &self.allowDuplicateURL) }() - case 5: try { try decoder.decodeSingularMessageField(value: &self._hosted) }() - case 6: try { try decoder.decodeSingularMessageField(value: &self._audioInfo) }() - 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.url.isEmpty { - try visitor.visitSingularStringField(value: self.url, fieldNumber: 1) - } - if !self.base64.isEmpty { - try visitor.visitSingularBytesField(value: self.base64, fieldNumber: 2) - } - if self.allowDuplicateURL != false { - try visitor.visitSingularBoolField(value: self.allowDuplicateURL, fieldNumber: 4) - } - try { if let v = self._hosted { - try visitor.visitSingularMessageField(value: v, fieldNumber: 5) - } }() - try { if let v = self._audioInfo { - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) - } }() - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_Audio, rhs: Clarifai_Api_Audio) -> Bool { - if lhs.url != rhs.url {return false} - if lhs.base64 != rhs.base64 {return false} - if lhs.allowDuplicateURL != rhs.allowDuplicateURL {return false} - if lhs._hosted != rhs._hosted {return false} - if lhs._audioInfo != rhs._audioInfo {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Clarifai_Api_AudioInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".AudioInfo" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "audio_format"), - 2: .standard(proto: "sample_rate"), - 3: .standard(proto: "duration_seconds"), - 4: .standard(proto: "bit_rate"), - ] - - 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.audioFormat) }() - case 2: try { try decoder.decodeSingularInt32Field(value: &self.sampleRate) }() - case 3: try { try decoder.decodeSingularFloatField(value: &self.durationSeconds) }() - case 4: try { try decoder.decodeSingularInt32Field(value: &self.bitRate) }() - default: break - } - } - } - - public func traverse(visitor: inout V) throws { - if !self.audioFormat.isEmpty { - try visitor.visitSingularStringField(value: self.audioFormat, fieldNumber: 1) - } - if self.sampleRate != 0 { - try visitor.visitSingularInt32Field(value: self.sampleRate, fieldNumber: 2) - } - if self.durationSeconds != 0 { - try visitor.visitSingularFloatField(value: self.durationSeconds, fieldNumber: 3) - } - if self.bitRate != 0 { - try visitor.visitSingularInt32Field(value: self.bitRate, fieldNumber: 4) - } - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_AudioInfo, rhs: Clarifai_Api_AudioInfo) -> Bool { - if lhs.audioFormat != rhs.audioFormat {return false} - if lhs.sampleRate != rhs.sampleRate {return false} - if lhs.durationSeconds != rhs.durationSeconds {return false} - if lhs.bitRate != rhs.bitRate {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Clarifai_Api_Track: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Track" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .same(proto: "data"), - 4: .standard(proto: "time_info"), - 5: .same(proto: "quality"), - ] - - 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.id) }() - case 2: try { try decoder.decodeSingularMessageField(value: &self._data) }() - case 4: try { try decoder.decodeSingularMessageField(value: &self._timeInfo) }() - case 5: try { try decoder.decodeSingularFloatField(value: &self.quality) }() - 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.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) - } - try { if let v = self._data { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - try { if let v = self._timeInfo { - try visitor.visitSingularMessageField(value: v, fieldNumber: 4) - } }() - if self.quality != 0 { - try visitor.visitSingularFloatField(value: self.quality, fieldNumber: 5) - } - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_Track, rhs: Clarifai_Api_Track) -> Bool { - if lhs.id != rhs.id {return false} - if lhs._data != rhs._data {return false} - if lhs._timeInfo != rhs._timeInfo {return false} - if lhs.quality != rhs.quality {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Clarifai_Api_Cluster: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Cluster" +extension Clarifai_Api_EventType: SwiftProtobuf._ProtoNameProviding { public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .same(proto: "count"), - 3: .same(proto: "score"), - 4: .same(proto: "hits"), - 5: .same(proto: "projection"), - ] - - 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.id) }() - case 2: try { try decoder.decodeSingularUInt32Field(value: &self.count) }() - case 3: try { try decoder.decodeSingularFloatField(value: &self.score) }() - case 4: try { try decoder.decodeRepeatedMessageField(value: &self.hits) }() - case 5: try { try decoder.decodeRepeatedFloatField(value: &self.projection) }() - default: break - } - } - } - - public func traverse(visitor: inout V) throws { - if !self.id.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) - } - if self.count != 0 { - try visitor.visitSingularUInt32Field(value: self.count, fieldNumber: 2) - } - if self.score != 0 { - try visitor.visitSingularFloatField(value: self.score, fieldNumber: 3) - } - if !self.hits.isEmpty { - try visitor.visitRepeatedMessageField(value: self.hits, fieldNumber: 4) - } - if !self.projection.isEmpty { - try visitor.visitPackedFloatField(value: self.projection, fieldNumber: 5) - } - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_Cluster, rhs: Clarifai_Api_Cluster) -> Bool { - if lhs.id != rhs.id {return false} - if lhs.count != rhs.count {return false} - if lhs.score != rhs.score {return false} - if lhs.hits != rhs.hits {return false} - if lhs.projection != rhs.projection {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } + 0: .same(proto: "EVENT_TYPE_NOT_SET"), + 100: .same(proto: "ORGANIZATION_MEMBER_ADD"), + 101: .same(proto: "ORGANIZATION_MEMBER_CHANGE"), + 102: .same(proto: "ORGANIZATION_MEMBER_REMOVE"), + 103: .same(proto: "ORGANIZATION_MEMBER_INVITATION_CREATE"), + 104: .same(proto: "ORGANIZATION_MEMBER_INVITATION_CANCEL"), + 105: .same(proto: "ORGANIZATION_MEMBER_INVITATION_ACCEPT"), + 106: .same(proto: "ORGANIZATION_MEMBER_INVITATION_DECLINE"), + 107: .same(proto: "ORGANIZATION_TEAM_CREATE"), + 108: .same(proto: "ORGANIZATION_TEAM_UPDATE"), + 109: .same(proto: "ORGANIZATION_TEAM_DELETE"), + 110: .same(proto: "ORGANIZATION_TEAM_MEMBER_ADD"), + 111: .same(proto: "ORGANIZATION_TEAM_MEMBER_REMOVE"), + 112: .same(proto: "ORGANIZATION_TEAM_APP_ADD"), + 113: .same(proto: "ORGANIZATION_TEAM_APP_REMOVE"), + 200: .same(proto: "MODULE_CREATE"), + 201: .same(proto: "MODULE_UPDATE"), + 202: .same(proto: "MODULE_DELETE"), + 203: .same(proto: "MODULE_VERSION_CREATE"), + 204: .same(proto: "MODULE_VERSION_UPDATE"), + 205: .same(proto: "MODULE_VERSION_DELETE"), + 300: .same(proto: "MODEL_CREATE"), + 301: .same(proto: "MODEL_UPDATE"), + 302: .same(proto: "MODEL_DELETE"), + 303: .same(proto: "MODEL_VERSION_CREATE"), + 304: .same(proto: "MODEL_VERSION_UPDATE"), + 305: .same(proto: "MODEL_VERSION_DELETE"), + 400: .same(proto: "WORKFLOW_CREATE"), + 401: .same(proto: "WORKFLOW_UPDATE"), + 402: .same(proto: "WORKFLOW_DELETE"), + 403: .same(proto: "WORKFLOW_VERSION_CREATE"), + 404: .same(proto: "WORKFLOW_VERSION_UPDATE"), + 405: .same(proto: "WORKFLOW_VERSION_DELETE"), + 600: .same(proto: "APPLICATION_CREATE"), + 601: .same(proto: "APPLICATION_UPDATE"), + 602: .same(proto: "APPLICATION_DELETE"), + 700: .same(proto: "COLLABORATOR_ADD"), + 701: .same(proto: "COLLABORATOR_UPDATE"), + 702: .same(proto: "COLLABORATOR_REMOVE"), + 800: .same(proto: "USER_UPDATE"), + ] } -extension Clarifai_Api_Color: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Color" +extension Clarifai_Api_Annotation: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Annotation" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "raw_hex"), - 2: .same(proto: "w3c"), - 3: .same(proto: "value"), + 1: .same(proto: "id"), + 2: .standard(proto: "input_id"), + 3: .same(proto: "data"), + 13: .standard(proto: "annotation_info"), + 15: .standard(proto: "user_id"), + 16: .standard(proto: "model_version_id"), + 14: .standard(proto: "embed_model_version_id"), + 7: .same(proto: "status"), + 8: .standard(proto: "created_at"), + 9: .standard(proto: "modified_at"), + 10: .same(proto: "trusted"), + 17: .standard(proto: "input_level"), + 18: .standard(proto: "consensus_info"), + 19: .standard(proto: "task_id"), + 21: .same(proto: "worker"), ] - 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.rawHex) }() - case 2: try { try decoder.decodeSingularMessageField(value: &self._w3C) }() - case 3: try { try decoder.decodeSingularFloatField(value: &self.value) }() - 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.rawHex.isEmpty { - try visitor.visitSingularStringField(value: self.rawHex, fieldNumber: 1) - } - try { if let v = self._w3C { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - if self.value != 0 { - try visitor.visitSingularFloatField(value: self.value, fieldNumber: 3) - } - try unknownFields.traverse(visitor: &visitor) - } + fileprivate class _StorageClass { + var _id: String = String() + var _inputID: String = String() + var _data: Clarifai_Api_Data? = nil + var _annotationInfo: SwiftProtobuf.Google_Protobuf_Struct? = nil + var _userID: String = String() + var _modelVersionID: String = String() + var _embedModelVersionID: String = String() + var _status: Clarifai_Api_Status_Status? = nil + var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _modifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _trusted: Bool = false + var _inputLevel: Bool = false + var _consensusInfo: SwiftProtobuf.Google_Protobuf_Struct? = nil + var _taskID: String = String() + var _worker: Clarifai_Api_Worker? = nil - public static func ==(lhs: Clarifai_Api_Color, rhs: Clarifai_Api_Color) -> Bool { - if lhs.rawHex != rhs.rawHex {return false} - if lhs._w3C != rhs._w3C {return false} - if lhs.value != rhs.value {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} + static let defaultInstance = _StorageClass() -extension Clarifai_Api_W3C: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".W3C" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "hex"), - 2: .same(proto: "name"), - ] + 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.decodeSingularStringField(value: &self.hex) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.name) }() - default: break - } + init(copying source: _StorageClass) { + _id = source._id + _inputID = source._inputID + _data = source._data + _annotationInfo = source._annotationInfo + _userID = source._userID + _modelVersionID = source._modelVersionID + _embedModelVersionID = source._embedModelVersionID + _status = source._status + _createdAt = source._createdAt + _modifiedAt = source._modifiedAt + _trusted = source._trusted + _inputLevel = source._inputLevel + _consensusInfo = source._consensusInfo + _taskID = source._taskID + _worker = source._worker } } - public func traverse(visitor: inout V) throws { - if !self.hex.isEmpty { - try visitor.visitSingularStringField(value: self.hex, fieldNumber: 1) - } - if !self.name.isEmpty { - try visitor.visitSingularStringField(value: self.name, fieldNumber: 2) + fileprivate mutating func _uniqueStorage() -> _StorageClass { + if !isKnownUniquelyReferenced(&_storage) { + _storage = _StorageClass(copying: _storage) } - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_W3C, rhs: Clarifai_Api_W3C) -> Bool { - if lhs.hex != rhs.hex {return false} - if lhs.name != rhs.name {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true + return _storage } -} - -extension Clarifai_Api_UserAppIDSet: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".UserAppIDSet" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "user_id"), - 2: .standard(proto: "app_id"), - ] 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.userID) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.appID) }() - 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.decodeSingularStringField(value: &_storage._id) }() + case 2: try { try decoder.decodeSingularStringField(value: &_storage._inputID) }() + case 3: try { try decoder.decodeSingularMessageField(value: &_storage._data) }() + case 7: try { try decoder.decodeSingularMessageField(value: &_storage._status) }() + case 8: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() + case 9: try { try decoder.decodeSingularMessageField(value: &_storage._modifiedAt) }() + case 10: try { try decoder.decodeSingularBoolField(value: &_storage._trusted) }() + case 13: try { try decoder.decodeSingularMessageField(value: &_storage._annotationInfo) }() + case 14: try { try decoder.decodeSingularStringField(value: &_storage._embedModelVersionID) }() + case 15: try { try decoder.decodeSingularStringField(value: &_storage._userID) }() + case 16: try { try decoder.decodeSingularStringField(value: &_storage._modelVersionID) }() + case 17: try { try decoder.decodeSingularBoolField(value: &_storage._inputLevel) }() + case 18: try { try decoder.decodeSingularMessageField(value: &_storage._consensusInfo) }() + case 19: try { try decoder.decodeSingularStringField(value: &_storage._taskID) }() + case 21: try { try decoder.decodeSingularMessageField(value: &_storage._worker) }() + default: break + } } } } public func traverse(visitor: inout V) throws { - if !self.userID.isEmpty { - try visitor.visitSingularStringField(value: self.userID, fieldNumber: 1) - } - if !self.appID.isEmpty { - try visitor.visitSingularStringField(value: self.appID, fieldNumber: 2) + 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.isEmpty { + try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) + } + if !_storage._inputID.isEmpty { + try visitor.visitSingularStringField(value: _storage._inputID, fieldNumber: 2) + } + try { if let v = _storage._data { + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + } }() + try { if let v = _storage._status { + try visitor.visitSingularMessageField(value: v, fieldNumber: 7) + } }() + try { if let v = _storage._createdAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 8) + } }() + try { if let v = _storage._modifiedAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 9) + } }() + if _storage._trusted != false { + try visitor.visitSingularBoolField(value: _storage._trusted, fieldNumber: 10) + } + try { if let v = _storage._annotationInfo { + try visitor.visitSingularMessageField(value: v, fieldNumber: 13) + } }() + if !_storage._embedModelVersionID.isEmpty { + try visitor.visitSingularStringField(value: _storage._embedModelVersionID, fieldNumber: 14) + } + if !_storage._userID.isEmpty { + try visitor.visitSingularStringField(value: _storage._userID, fieldNumber: 15) + } + if !_storage._modelVersionID.isEmpty { + try visitor.visitSingularStringField(value: _storage._modelVersionID, fieldNumber: 16) + } + if _storage._inputLevel != false { + try visitor.visitSingularBoolField(value: _storage._inputLevel, fieldNumber: 17) + } + try { if let v = _storage._consensusInfo { + try visitor.visitSingularMessageField(value: v, fieldNumber: 18) + } }() + if !_storage._taskID.isEmpty { + try visitor.visitSingularStringField(value: _storage._taskID, fieldNumber: 19) + } + try { if let v = _storage._worker { + try visitor.visitSingularMessageField(value: v, fieldNumber: 21) + } }() } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_UserAppIDSet, rhs: Clarifai_Api_UserAppIDSet) -> Bool { - if lhs.userID != rhs.userID {return false} - if lhs.appID != rhs.appID {return false} + public static func ==(lhs: Clarifai_Api_Annotation, rhs: Clarifai_Api_Annotation) -> 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._inputID != rhs_storage._inputID {return false} + if _storage._data != rhs_storage._data {return false} + if _storage._annotationInfo != rhs_storage._annotationInfo {return false} + if _storage._userID != rhs_storage._userID {return false} + if _storage._modelVersionID != rhs_storage._modelVersionID {return false} + if _storage._embedModelVersionID != rhs_storage._embedModelVersionID {return false} + if _storage._status != rhs_storage._status {return false} + if _storage._createdAt != rhs_storage._createdAt {return false} + if _storage._modifiedAt != rhs_storage._modifiedAt {return false} + if _storage._trusted != rhs_storage._trusted {return false} + if _storage._inputLevel != rhs_storage._inputLevel {return false} + if _storage._consensusInfo != rhs_storage._consensusInfo {return false} + if _storage._taskID != rhs_storage._taskID {return false} + if _storage._worker != rhs_storage._worker {return false} + return true + } + if !storagesAreEqual {return false} + } if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_PatchAction: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".PatchAction" +extension Clarifai_Api_Worker: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Worker" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "op"), - 2: .standard(proto: "merge_conflict_resolution"), - 3: .same(proto: "path"), + 1: .same(proto: "user"), + 2: .same(proto: "model"), + 3: .same(proto: "workflow"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -15066,70 +13837,128 @@ extension Clarifai_Api_PatchAction: SwiftProtobuf.Message, SwiftProtobuf._Messag // 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.op) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.mergeConflictResolution) }() - case 3: try { try decoder.decodeSingularStringField(value: &self.path) }() + case 1: try { + var v: Clarifai_Api_User? + var hadOneofValue = false + if let current = self.worker { + hadOneofValue = true + if case .user(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.worker = .user(v) + } + }() + case 2: try { + var v: Clarifai_Api_Model? + var hadOneofValue = false + if let current = self.worker { + hadOneofValue = true + if case .model(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.worker = .model(v) + } + }() + case 3: try { + var v: Clarifai_Api_Workflow? + var hadOneofValue = false + if let current = self.worker { + hadOneofValue = true + if case .workflow(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.worker = .workflow(v) + } + }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.op.isEmpty { - try visitor.visitSingularStringField(value: self.op, fieldNumber: 1) - } - if !self.mergeConflictResolution.isEmpty { - try visitor.visitSingularStringField(value: self.mergeConflictResolution, fieldNumber: 2) - } - if !self.path.isEmpty { - try visitor.visitSingularStringField(value: self.path, fieldNumber: 3) + // 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 + switch self.worker { + case .user?: try { + guard case .user(let v)? = self.worker else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + }() + case .model?: try { + guard case .model(let v)? = self.worker else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + }() + case .workflow?: try { + guard case .workflow(let v)? = self.worker else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + }() + case nil: break } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_PatchAction, rhs: Clarifai_Api_PatchAction) -> Bool { - if lhs.op != rhs.op {return false} - if lhs.mergeConflictResolution != rhs.mergeConflictResolution {return false} - if lhs.path != rhs.path {return false} + public static func ==(lhs: Clarifai_Api_Worker, rhs: Clarifai_Api_Worker) -> Bool { + if lhs.worker != rhs.worker {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_Concept: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Concept" +extension Clarifai_Api_App: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".App" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ 1: .same(proto: "id"), 2: .same(proto: "name"), - 3: .same(proto: "value"), - 4: .standard(proto: "created_at"), - 5: .same(proto: "language"), - 6: .standard(proto: "app_id"), - 7: .same(proto: "definition"), - 8: .standard(proto: "vocab_id"), - 9: .same(proto: "visibility"), - 10: .standard(proto: "user_id"), - 11: .standard(proto: "keypoint_info"), - 12: .standard(proto: "extra_info"), + 3: .standard(proto: "default_language"), + 4: .standard(proto: "default_workflow_id"), + 23: .standard(proto: "default_workflow"), + 5: .standard(proto: "user_id"), + 6: .standard(proto: "created_at"), + 17: .standard(proto: "modified_at"), + 7: .standard(proto: "legal_consent_status"), 13: .same(proto: "metadata"), + 14: .same(proto: "description"), + 15: .standard(proto: "sample_ms"), + 16: .same(proto: "visibility"), + 18: .standard(proto: "data_tier_id"), + 19: .standard(proto: "is_starred"), + 20: .standard(proto: "star_count"), + 21: .same(proto: "notes"), 22: .same(proto: "image"), + 25: .standard(proto: "is_template"), + 24: .standard(proto: "extra_info"), + 26: .standard(proto: "embeddings_storage"), ] fileprivate class _StorageClass { var _id: String = String() var _name: String = String() - var _value: Float = 0 - var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _language: String = String() - var _appID: String = String() - var _definition: String = String() - var _vocabID: String = String() - var _visibility: Clarifai_Api_Visibility? = nil + var _defaultLanguage: String = String() + var _defaultWorkflowID: String = String() + var _defaultWorkflow: Clarifai_Api_Workflow? = nil var _userID: String = String() - var _keypointInfo: Clarifai_Api_KeypointInfo? = nil - var _extraInfo: Clarifai_Api_ConceptExtraInfo? = nil + var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _modifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _legalConsentStatus: UInt32 = 0 var _metadata: SwiftProtobuf.Google_Protobuf_Struct? = nil + var _description_p: String = String() + var _sampleMs: UInt32 = 0 + var _visibility: Clarifai_Api_Visibility? = nil + var _dataTierID: String = String() + var _isStarred: Bool = false + var _starCount: Int32 = 0 + var _notes: String = String() var _image: Clarifai_Api_Image? = nil + var _isTemplate: SwiftProtobuf.Google_Protobuf_BoolValue? = nil + var _extraInfo: Clarifai_Api_AppExtraInfo? = nil + var _embeddingsStorage: Clarifai_Api_App.EmbeddingsStorage = .embeddingStorageNotSet static let defaultInstance = _StorageClass() @@ -15138,18 +13967,25 @@ extension Clarifai_Api_Concept: SwiftProtobuf.Message, SwiftProtobuf._MessageImp init(copying source: _StorageClass) { _id = source._id _name = source._name - _value = source._value - _createdAt = source._createdAt - _language = source._language - _appID = source._appID - _definition = source._definition - _vocabID = source._vocabID - _visibility = source._visibility + _defaultLanguage = source._defaultLanguage + _defaultWorkflowID = source._defaultWorkflowID + _defaultWorkflow = source._defaultWorkflow _userID = source._userID - _keypointInfo = source._keypointInfo - _extraInfo = source._extraInfo + _createdAt = source._createdAt + _modifiedAt = source._modifiedAt + _legalConsentStatus = source._legalConsentStatus _metadata = source._metadata + _description_p = source._description_p + _sampleMs = source._sampleMs + _visibility = source._visibility + _dataTierID = source._dataTierID + _isStarred = source._isStarred + _starCount = source._starCount + _notes = source._notes _image = source._image + _isTemplate = source._isTemplate + _extraInfo = source._extraInfo + _embeddingsStorage = source._embeddingsStorage } } @@ -15170,18 +14006,25 @@ extension Clarifai_Api_Concept: SwiftProtobuf.Message, SwiftProtobuf._MessageImp switch fieldNumber { case 1: try { try decoder.decodeSingularStringField(value: &_storage._id) }() case 2: try { try decoder.decodeSingularStringField(value: &_storage._name) }() - case 3: try { try decoder.decodeSingularFloatField(value: &_storage._value) }() - case 4: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() - case 5: try { try decoder.decodeSingularStringField(value: &_storage._language) }() - case 6: try { try decoder.decodeSingularStringField(value: &_storage._appID) }() - case 7: try { try decoder.decodeSingularStringField(value: &_storage._definition) }() - case 8: try { try decoder.decodeSingularStringField(value: &_storage._vocabID) }() - case 9: try { try decoder.decodeSingularMessageField(value: &_storage._visibility) }() - case 10: try { try decoder.decodeSingularStringField(value: &_storage._userID) }() - case 11: try { try decoder.decodeSingularMessageField(value: &_storage._keypointInfo) }() - case 12: try { try decoder.decodeSingularMessageField(value: &_storage._extraInfo) }() + case 3: try { try decoder.decodeSingularStringField(value: &_storage._defaultLanguage) }() + case 4: try { try decoder.decodeSingularStringField(value: &_storage._defaultWorkflowID) }() + case 5: try { try decoder.decodeSingularStringField(value: &_storage._userID) }() + case 6: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() + case 7: try { try decoder.decodeSingularUInt32Field(value: &_storage._legalConsentStatus) }() case 13: try { try decoder.decodeSingularMessageField(value: &_storage._metadata) }() + case 14: try { try decoder.decodeSingularStringField(value: &_storage._description_p) }() + case 15: try { try decoder.decodeSingularUInt32Field(value: &_storage._sampleMs) }() + case 16: try { try decoder.decodeSingularMessageField(value: &_storage._visibility) }() + case 17: try { try decoder.decodeSingularMessageField(value: &_storage._modifiedAt) }() + case 18: try { try decoder.decodeSingularStringField(value: &_storage._dataTierID) }() + case 19: try { try decoder.decodeSingularBoolField(value: &_storage._isStarred) }() + case 20: try { try decoder.decodeSingularInt32Field(value: &_storage._starCount) }() + case 21: try { try decoder.decodeSingularStringField(value: &_storage._notes) }() case 22: try { try decoder.decodeSingularMessageField(value: &_storage._image) }() + case 23: try { try decoder.decodeSingularMessageField(value: &_storage._defaultWorkflow) }() + case 24: try { try decoder.decodeSingularMessageField(value: &_storage._extraInfo) }() + case 25: try { try decoder.decodeSingularMessageField(value: &_storage._isTemplate) }() + case 26: try { try decoder.decodeSingularEnumField(value: &_storage._embeddingsStorage) }() default: break } } @@ -15200,65 +14043,93 @@ extension Clarifai_Api_Concept: SwiftProtobuf.Message, SwiftProtobuf._MessageImp if !_storage._name.isEmpty { try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 2) } - if _storage._value != 0 { - try visitor.visitSingularFloatField(value: _storage._value, fieldNumber: 3) + if !_storage._defaultLanguage.isEmpty { + try visitor.visitSingularStringField(value: _storage._defaultLanguage, fieldNumber: 3) + } + if !_storage._defaultWorkflowID.isEmpty { + try visitor.visitSingularStringField(value: _storage._defaultWorkflowID, fieldNumber: 4) + } + if !_storage._userID.isEmpty { + try visitor.visitSingularStringField(value: _storage._userID, fieldNumber: 5) } try { if let v = _storage._createdAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) } }() - if !_storage._language.isEmpty { - try visitor.visitSingularStringField(value: _storage._language, fieldNumber: 5) - } - if !_storage._appID.isEmpty { - try visitor.visitSingularStringField(value: _storage._appID, fieldNumber: 6) + if _storage._legalConsentStatus != 0 { + try visitor.visitSingularUInt32Field(value: _storage._legalConsentStatus, fieldNumber: 7) } - if !_storage._definition.isEmpty { - try visitor.visitSingularStringField(value: _storage._definition, fieldNumber: 7) + try { if let v = _storage._metadata { + try visitor.visitSingularMessageField(value: v, fieldNumber: 13) + } }() + if !_storage._description_p.isEmpty { + try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 14) } - if !_storage._vocabID.isEmpty { - try visitor.visitSingularStringField(value: _storage._vocabID, fieldNumber: 8) + if _storage._sampleMs != 0 { + try visitor.visitSingularUInt32Field(value: _storage._sampleMs, fieldNumber: 15) } try { if let v = _storage._visibility { - try visitor.visitSingularMessageField(value: v, fieldNumber: 9) + try visitor.visitSingularMessageField(value: v, fieldNumber: 16) } }() - if !_storage._userID.isEmpty { - try visitor.visitSingularStringField(value: _storage._userID, fieldNumber: 10) - } - try { if let v = _storage._keypointInfo { - try visitor.visitSingularMessageField(value: v, fieldNumber: 11) + try { if let v = _storage._modifiedAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 17) } }() - try { if let v = _storage._extraInfo { - try visitor.visitSingularMessageField(value: v, fieldNumber: 12) + if !_storage._dataTierID.isEmpty { + try visitor.visitSingularStringField(value: _storage._dataTierID, fieldNumber: 18) + } + if _storage._isStarred != false { + try visitor.visitSingularBoolField(value: _storage._isStarred, fieldNumber: 19) + } + if _storage._starCount != 0 { + try visitor.visitSingularInt32Field(value: _storage._starCount, fieldNumber: 20) + } + if !_storage._notes.isEmpty { + try visitor.visitSingularStringField(value: _storage._notes, fieldNumber: 21) + } + try { if let v = _storage._image { + try visitor.visitSingularMessageField(value: v, fieldNumber: 22) } }() - try { if let v = _storage._metadata { - try visitor.visitSingularMessageField(value: v, fieldNumber: 13) + try { if let v = _storage._defaultWorkflow { + try visitor.visitSingularMessageField(value: v, fieldNumber: 23) } }() - try { if let v = _storage._image { - try visitor.visitSingularMessageField(value: v, fieldNumber: 22) + try { if let v = _storage._extraInfo { + try visitor.visitSingularMessageField(value: v, fieldNumber: 24) } }() + try { if let v = _storage._isTemplate { + try visitor.visitSingularMessageField(value: v, fieldNumber: 25) + } }() + if _storage._embeddingsStorage != .embeddingStorageNotSet { + try visitor.visitSingularEnumField(value: _storage._embeddingsStorage, fieldNumber: 26) + } } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_Concept, rhs: Clarifai_Api_Concept) -> Bool { + public static func ==(lhs: Clarifai_Api_App, rhs: Clarifai_Api_App) -> 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._value != rhs_storage._value {return false} - if _storage._createdAt != rhs_storage._createdAt {return false} - if _storage._language != rhs_storage._language {return false} - if _storage._appID != rhs_storage._appID {return false} - if _storage._definition != rhs_storage._definition {return false} - if _storage._vocabID != rhs_storage._vocabID {return false} - if _storage._visibility != rhs_storage._visibility {return false} + if _storage._defaultLanguage != rhs_storage._defaultLanguage {return false} + if _storage._defaultWorkflowID != rhs_storage._defaultWorkflowID {return false} + if _storage._defaultWorkflow != rhs_storage._defaultWorkflow {return false} if _storage._userID != rhs_storage._userID {return false} - if _storage._keypointInfo != rhs_storage._keypointInfo {return false} - if _storage._extraInfo != rhs_storage._extraInfo {return false} + if _storage._createdAt != rhs_storage._createdAt {return false} + if _storage._modifiedAt != rhs_storage._modifiedAt {return false} + if _storage._legalConsentStatus != rhs_storage._legalConsentStatus {return false} if _storage._metadata != rhs_storage._metadata {return false} + if _storage._description_p != rhs_storage._description_p {return false} + if _storage._sampleMs != rhs_storage._sampleMs {return false} + if _storage._visibility != rhs_storage._visibility {return false} + if _storage._dataTierID != rhs_storage._dataTierID {return false} + if _storage._isStarred != rhs_storage._isStarred {return false} + if _storage._starCount != rhs_storage._starCount {return false} + if _storage._notes != rhs_storage._notes {return false} if _storage._image != rhs_storage._image {return false} + if _storage._isTemplate != rhs_storage._isTemplate {return false} + if _storage._extraInfo != rhs_storage._extraInfo {return false} + if _storage._embeddingsStorage != rhs_storage._embeddingsStorage {return false} return true } if !storagesAreEqual {return false} @@ -15268,121 +14139,19 @@ extension Clarifai_Api_Concept: SwiftProtobuf.Message, SwiftProtobuf._MessageImp } } -extension Clarifai_Api_KeypointInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".KeypointInfo" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "keypoint_names"), - 2: .same(proto: "skeleton"), - ] - - 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.decodeRepeatedStringField(value: &self.keypointNames) }() - case 2: try { try decoder.decodeRepeatedMessageField(value: &self.skeleton) }() - default: break - } - } - } - - public func traverse(visitor: inout V) throws { - if !self.keypointNames.isEmpty { - try visitor.visitRepeatedStringField(value: self.keypointNames, fieldNumber: 1) - } - if !self.skeleton.isEmpty { - try visitor.visitRepeatedMessageField(value: self.skeleton, fieldNumber: 2) - } - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_KeypointInfo, rhs: Clarifai_Api_KeypointInfo) -> Bool { - if lhs.keypointNames != rhs.keypointNames {return false} - if lhs.skeleton != rhs.skeleton {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Clarifai_Api_KeypointEdge: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".KeypointEdge" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "k1"), - 2: .same(proto: "k2"), - ] - - 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.decodeSingularUInt32Field(value: &self.k1) }() - case 2: try { try decoder.decodeSingularUInt32Field(value: &self.k2) }() - default: break - } - } - } - - public func traverse(visitor: inout V) throws { - if self.k1 != 0 { - try visitor.visitSingularUInt32Field(value: self.k1, fieldNumber: 1) - } - if self.k2 != 0 { - try visitor.visitSingularUInt32Field(value: self.k2, fieldNumber: 2) - } - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_KeypointEdge, rhs: Clarifai_Api_KeypointEdge) -> Bool { - if lhs.k1 != rhs.k1 {return false} - if lhs.k2 != rhs.k2 {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Clarifai_Api_ConceptExtraInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".ConceptExtraInfo" +extension Clarifai_Api_App.EmbeddingsStorage: SwiftProtobuf._ProtoNameProviding { public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "is_rankable"), + 0: .same(proto: "EMBEDDING_STORAGE_NOT_SET"), + 1: .same(proto: "POSTGRES"), + 2: .same(proto: "QDRANT"), ] - - 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.decodeSingularBoolField(value: &self.isRankable) }() - default: break - } - } - } - - public func traverse(visitor: inout V) throws { - if self.isRankable != false { - try visitor.visitSingularBoolField(value: self.isRankable, fieldNumber: 1) - } - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_ConceptExtraInfo, rhs: Clarifai_Api_ConceptExtraInfo) -> Bool { - if lhs.isRankable != rhs.isRankable {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } } -extension Clarifai_Api_ConceptCount: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".ConceptCount" +extension Clarifai_Api_AppExtraInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".AppExtraInfo" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .same(proto: "name"), - 3: .standard(proto: "concept_type_count"), - 4: .standard(proto: "detail_concept_count"), + 1: .standard(proto: "search_revision_marker"), + 2: .same(proto: "counts"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -15391,10 +14160,8 @@ extension Clarifai_Api_ConceptCount: SwiftProtobuf.Message, SwiftProtobuf._Messa // 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.id) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.name) }() - case 3: try { try decoder.decodeSingularMessageField(value: &self._conceptTypeCount) }() - case 4: try { try decoder.decodeSingularMessageField(value: &self._detailConceptCount) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.searchRevisionMarker) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._counts) }() default: break } } @@ -15405,76 +14172,27 @@ extension Clarifai_Api_ConceptCount: SwiftProtobuf.Message, SwiftProtobuf._Messa // 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.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) - } - if !self.name.isEmpty { - try visitor.visitSingularStringField(value: self.name, fieldNumber: 2) + if !self.searchRevisionMarker.isEmpty { + try visitor.visitSingularStringField(value: self.searchRevisionMarker, fieldNumber: 1) } - try { if let v = self._conceptTypeCount { - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - } }() - try { if let v = self._detailConceptCount { - try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + try { if let v = self._counts { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_ConceptCount, rhs: Clarifai_Api_ConceptCount) -> Bool { - if lhs.id != rhs.id {return false} - if lhs.name != rhs.name {return false} - if lhs._conceptTypeCount != rhs._conceptTypeCount {return false} - if lhs._detailConceptCount != rhs._detailConceptCount {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Clarifai_Api_ConceptTypeCount: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".ConceptTypeCount" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "positive"), - 2: .same(proto: "negative"), - ] - - 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.decodeSingularUInt32Field(value: &self.positive) }() - case 2: try { try decoder.decodeSingularUInt32Field(value: &self.negative) }() - default: break - } - } - } - - public func traverse(visitor: inout V) throws { - if self.positive != 0 { - try visitor.visitSingularUInt32Field(value: self.positive, fieldNumber: 1) - } - if self.negative != 0 { - try visitor.visitSingularUInt32Field(value: self.negative, fieldNumber: 2) - } - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_ConceptTypeCount, rhs: Clarifai_Api_ConceptTypeCount) -> Bool { - if lhs.positive != rhs.positive {return false} - if lhs.negative != rhs.negative {return false} + public static func ==(lhs: Clarifai_Api_AppExtraInfo, rhs: Clarifai_Api_AppExtraInfo) -> Bool { + if lhs.searchRevisionMarker != rhs.searchRevisionMarker {return false} + if lhs._counts != rhs._counts {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_DetailConceptCount: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".DetailConceptCount" +extension Clarifai_Api_AppQuery: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".AppQuery" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "processed"), - 2: .standard(proto: "to_process"), - 3: .same(proto: "errors"), - 4: .same(proto: "processing"), + 1: .same(proto: "name"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -15483,55 +14201,34 @@ extension Clarifai_Api_DetailConceptCount: SwiftProtobuf.Message, SwiftProtobuf. // 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._processed) }() - case 2: try { try decoder.decodeSingularMessageField(value: &self._toProcess) }() - case 3: try { try decoder.decodeSingularMessageField(value: &self._errors) }() - case 4: try { try decoder.decodeSingularMessageField(value: &self._processing) }() - 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._processed { - try visitor.visitSingularMessageField(value: v, fieldNumber: 1) - } }() - try { if let v = self._toProcess { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - try { if let v = self._errors { - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - } }() - try { if let v = self._processing { - try visitor.visitSingularMessageField(value: v, fieldNumber: 4) - } }() + case 1: try { try decoder.decodeSingularStringField(value: &self.name) }() + default: break + } + } + } + + public func traverse(visitor: inout V) throws { + if !self.name.isEmpty { + try visitor.visitSingularStringField(value: self.name, fieldNumber: 1) + } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_DetailConceptCount, rhs: Clarifai_Api_DetailConceptCount) -> Bool { - if lhs._processed != rhs._processed {return false} - if lhs._toProcess != rhs._toProcess {return false} - if lhs._errors != rhs._errors {return false} - if lhs._processing != rhs._processing {return false} + public static func ==(lhs: Clarifai_Api_AppQuery, rhs: Clarifai_Api_AppQuery) -> Bool { + if lhs.name != rhs.name {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_ConceptQuery: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".ConceptQuery" +extension Clarifai_Api_AppResourceCounts: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".AppResourceCounts" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "name"), - 2: .same(proto: "language"), - 3: .standard(proto: "workflow_id"), - 4: .standard(proto: "use_cases"), - 5: .same(proto: "model"), - 6: .same(proto: "workflow"), - 7: .standard(proto: "ignore_app_concepts"), + 1: .same(proto: "datasets"), + 2: .same(proto: "models"), + 3: .same(proto: "workflows"), + 4: .same(proto: "modules"), + 5: .same(proto: "inputs"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -15540,97 +14237,57 @@ extension Clarifai_Api_ConceptQuery: SwiftProtobuf.Message, SwiftProtobuf._Messa // 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.decodeSingularStringField(value: &self.language) }() - case 3: try { try decoder.decodeSingularStringField(value: &self.workflowID) }() - case 4: try { try decoder.decodeRepeatedEnumField(value: &self.useCases) }() - case 5: try { - var v: Clarifai_Api_Model? - var hadOneofValue = false - if let current = self.source { - hadOneofValue = true - if case .model(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - self.source = .model(v) - } - }() - case 6: try { - var v: Clarifai_Api_Workflow? - var hadOneofValue = false - if let current = self.source { - hadOneofValue = true - if case .workflow(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - self.source = .workflow(v) - } - }() - case 7: try { try decoder.decodeSingularBoolField(value: &self.ignoreAppConcepts) }() + case 1: try { try decoder.decodeSingularInt64Field(value: &self.datasets) }() + case 2: try { try decoder.decodeSingularInt64Field(value: &self.models) }() + case 3: try { try decoder.decodeSingularInt64Field(value: &self.workflows) }() + case 4: try { try decoder.decodeSingularInt64Field(value: &self.modules) }() + case 5: try { try decoder.decodeSingularInt64Field(value: &self.inputs) }() 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.name.isEmpty { - try visitor.visitSingularStringField(value: self.name, fieldNumber: 1) - } - if !self.language.isEmpty { - try visitor.visitSingularStringField(value: self.language, fieldNumber: 2) + if self.datasets != 0 { + try visitor.visitSingularInt64Field(value: self.datasets, fieldNumber: 1) } - if !self.workflowID.isEmpty { - try visitor.visitSingularStringField(value: self.workflowID, fieldNumber: 3) + if self.models != 0 { + try visitor.visitSingularInt64Field(value: self.models, fieldNumber: 2) } - if !self.useCases.isEmpty { - try visitor.visitPackedEnumField(value: self.useCases, fieldNumber: 4) + if self.workflows != 0 { + try visitor.visitSingularInt64Field(value: self.workflows, fieldNumber: 3) } - switch self.source { - case .model?: try { - guard case .model(let v)? = self.source else { preconditionFailure() } - try visitor.visitSingularMessageField(value: v, fieldNumber: 5) - }() - case .workflow?: try { - guard case .workflow(let v)? = self.source else { preconditionFailure() } - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) - }() - case nil: break + if self.modules != 0 { + try visitor.visitSingularInt64Field(value: self.modules, fieldNumber: 4) } - if self.ignoreAppConcepts != false { - try visitor.visitSingularBoolField(value: self.ignoreAppConcepts, fieldNumber: 7) + if self.inputs != 0 { + try visitor.visitSingularInt64Field(value: self.inputs, fieldNumber: 5) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_ConceptQuery, rhs: Clarifai_Api_ConceptQuery) -> Bool { - if lhs.name != rhs.name {return false} - if lhs.language != rhs.language {return false} - if lhs.workflowID != rhs.workflowID {return false} - if lhs.useCases != rhs.useCases {return false} - if lhs.source != rhs.source {return false} - if lhs.ignoreAppConcepts != rhs.ignoreAppConcepts {return false} + public static func ==(lhs: Clarifai_Api_AppResourceCounts, rhs: Clarifai_Api_AppResourceCounts) -> Bool { + if lhs.datasets != rhs.datasets {return false} + if lhs.models != rhs.models {return false} + if lhs.workflows != rhs.workflows {return false} + if lhs.modules != rhs.modules {return false} + if lhs.inputs != rhs.inputs {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_ConceptRelation: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".ConceptRelation" +extension Clarifai_Api_Collaborator: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Collaborator" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ 1: .same(proto: "id"), - 2: .standard(proto: "subject_concept"), - 3: .standard(proto: "object_concept"), - 4: .same(proto: "predicate"), - 5: .standard(proto: "knowledge_graph_id"), - 6: .same(proto: "visibility"), + 2: .same(proto: "app"), + 3: .same(proto: "user"), + 4: .same(proto: "scopes"), + 5: .same(proto: "endpoints"), + 6: .standard(proto: "created_at"), + 7: .standard(proto: "modified_at"), + 8: .standard(proto: "deleted_at"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -15640,11 +14297,13 @@ extension Clarifai_Api_ConceptRelation: SwiftProtobuf.Message, SwiftProtobuf._Me // enabled. https://github.com/apple/swift-protobuf/issues/1034 switch fieldNumber { case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() - case 2: try { try decoder.decodeSingularMessageField(value: &self._subjectConcept) }() - case 3: try { try decoder.decodeSingularMessageField(value: &self._objectConcept) }() - case 4: try { try decoder.decodeSingularStringField(value: &self.predicate) }() - case 5: try { try decoder.decodeSingularStringField(value: &self.knowledgeGraphID) }() - case 6: try { try decoder.decodeSingularMessageField(value: &self._visibility) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._app) }() + case 3: try { try decoder.decodeSingularMessageField(value: &self._user) }() + case 4: try { try decoder.decodeRepeatedStringField(value: &self.scopes) }() + case 5: try { try decoder.decodeRepeatedStringField(value: &self.endpoints) }() + case 6: try { try decoder.decodeSingularMessageField(value: &self._createdAt) }() + case 7: try { try decoder.decodeSingularMessageField(value: &self._modifiedAt) }() + case 8: try { try decoder.decodeSingularMessageField(value: &self._deletedAt) }() default: break } } @@ -15658,44 +14317,52 @@ extension Clarifai_Api_ConceptRelation: SwiftProtobuf.Message, SwiftProtobuf._Me if !self.id.isEmpty { try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) } - try { if let v = self._subjectConcept { + try { if let v = self._app { try visitor.visitSingularMessageField(value: v, fieldNumber: 2) } }() - try { if let v = self._objectConcept { + try { if let v = self._user { try visitor.visitSingularMessageField(value: v, fieldNumber: 3) } }() - if !self.predicate.isEmpty { - try visitor.visitSingularStringField(value: self.predicate, fieldNumber: 4) + if !self.scopes.isEmpty { + try visitor.visitRepeatedStringField(value: self.scopes, fieldNumber: 4) } - if !self.knowledgeGraphID.isEmpty { - try visitor.visitSingularStringField(value: self.knowledgeGraphID, fieldNumber: 5) + if !self.endpoints.isEmpty { + try visitor.visitRepeatedStringField(value: self.endpoints, fieldNumber: 5) } - try { if let v = self._visibility { + try { if let v = self._createdAt { try visitor.visitSingularMessageField(value: v, fieldNumber: 6) } }() + try { if let v = self._modifiedAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 7) + } }() + try { if let v = self._deletedAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 8) + } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_ConceptRelation, rhs: Clarifai_Api_ConceptRelation) -> Bool { + public static func ==(lhs: Clarifai_Api_Collaborator, rhs: Clarifai_Api_Collaborator) -> Bool { if lhs.id != rhs.id {return false} - if lhs._subjectConcept != rhs._subjectConcept {return false} - if lhs._objectConcept != rhs._objectConcept {return false} - if lhs.predicate != rhs.predicate {return false} - if lhs.knowledgeGraphID != rhs.knowledgeGraphID {return false} - if lhs._visibility != rhs._visibility {return false} + if lhs._app != rhs._app {return false} + if lhs._user != rhs._user {return false} + if lhs.scopes != rhs.scopes {return false} + if lhs.endpoints != rhs.endpoints {return false} + if lhs._createdAt != rhs._createdAt {return false} + if lhs._modifiedAt != rhs._modifiedAt {return false} + if lhs._deletedAt != rhs._deletedAt {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_KnowledgeGraph: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".KnowledgeGraph" +extension Clarifai_Api_Collaboration: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Collaboration" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .same(proto: "name"), - 3: .same(proto: "description"), - 4: .standard(proto: "examples_app_id"), - 5: .standard(proto: "sampled_examples_app_id"), + 1: .same(proto: "app"), + 2: .standard(proto: "app_owner"), + 3: .same(proto: "scopes"), + 4: .same(proto: "endpoints"), + 5: .standard(proto: "created_at"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -15704,52 +14371,58 @@ extension Clarifai_Api_KnowledgeGraph: 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.decodeSingularStringField(value: &self.id) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.name) }() - case 3: try { try decoder.decodeSingularStringField(value: &self.description_p) }() - case 4: try { try decoder.decodeSingularStringField(value: &self.examplesAppID) }() - case 5: try { try decoder.decodeSingularStringField(value: &self.sampledExamplesAppID) }() + case 1: try { try decoder.decodeSingularMessageField(value: &self._app) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._appOwner) }() + case 3: try { try decoder.decodeRepeatedStringField(value: &self.scopes) }() + case 4: try { try decoder.decodeRepeatedStringField(value: &self.endpoints) }() + case 5: try { try decoder.decodeSingularMessageField(value: &self._createdAt) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.id.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) - } - if !self.name.isEmpty { - try visitor.visitSingularStringField(value: self.name, fieldNumber: 2) - } - if !self.description_p.isEmpty { - try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 3) - } - if !self.examplesAppID.isEmpty { - try visitor.visitSingularStringField(value: self.examplesAppID, fieldNumber: 4) + // 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._app { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } }() + try { if let v = self._appOwner { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + if !self.scopes.isEmpty { + try visitor.visitRepeatedStringField(value: self.scopes, fieldNumber: 3) } - if !self.sampledExamplesAppID.isEmpty { - try visitor.visitSingularStringField(value: self.sampledExamplesAppID, fieldNumber: 5) + if !self.endpoints.isEmpty { + try visitor.visitRepeatedStringField(value: self.endpoints, fieldNumber: 4) } + try { if let v = self._createdAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_KnowledgeGraph, rhs: Clarifai_Api_KnowledgeGraph) -> Bool { - if lhs.id != rhs.id {return false} - if lhs.name != rhs.name {return false} - if lhs.description_p != rhs.description_p {return false} - if lhs.examplesAppID != rhs.examplesAppID {return false} - if lhs.sampledExamplesAppID != rhs.sampledExamplesAppID {return false} + public static func ==(lhs: Clarifai_Api_Collaboration, rhs: Clarifai_Api_Collaboration) -> Bool { + if lhs._app != rhs._app {return false} + if lhs._appOwner != rhs._appOwner {return false} + if lhs.scopes != rhs.scopes {return false} + if lhs.endpoints != rhs.endpoints {return false} + if lhs._createdAt != rhs._createdAt {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_ConceptLanguage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".ConceptLanguage" +extension Clarifai_Api_Audio: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Audio" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .same(proto: "name"), - 3: .same(proto: "definition"), + 1: .same(proto: "url"), + 2: .same(proto: "base64"), + 4: .standard(proto: "allow_duplicate_url"), + 5: .same(proto: "hosted"), + 6: .standard(proto: "audio_info"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -15758,244 +14431,107 @@ extension Clarifai_Api_ConceptLanguage: 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.decodeSingularStringField(value: &self.id) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.name) }() - case 3: try { try decoder.decodeSingularStringField(value: &self.definition) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.url) }() + case 2: try { try decoder.decodeSingularBytesField(value: &self.base64) }() + case 4: try { try decoder.decodeSingularBoolField(value: &self.allowDuplicateURL) }() + case 5: try { try decoder.decodeSingularMessageField(value: &self._hosted) }() + case 6: try { try decoder.decodeSingularMessageField(value: &self._audioInfo) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.id.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) + // 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.url.isEmpty { + try visitor.visitSingularStringField(value: self.url, fieldNumber: 1) } - if !self.name.isEmpty { - try visitor.visitSingularStringField(value: self.name, fieldNumber: 2) + if !self.base64.isEmpty { + try visitor.visitSingularBytesField(value: self.base64, fieldNumber: 2) } - if !self.definition.isEmpty { - try visitor.visitSingularStringField(value: self.definition, fieldNumber: 3) + if self.allowDuplicateURL != false { + try visitor.visitSingularBoolField(value: self.allowDuplicateURL, fieldNumber: 4) } + try { if let v = self._hosted { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } }() + try { if let v = self._audioInfo { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_ConceptLanguage, rhs: Clarifai_Api_ConceptLanguage) -> Bool { - if lhs.id != rhs.id {return false} - if lhs.name != rhs.name {return false} - if lhs.definition != rhs.definition {return false} + public static func ==(lhs: Clarifai_Api_Audio, rhs: Clarifai_Api_Audio) -> Bool { + if lhs.url != rhs.url {return false} + if lhs.base64 != rhs.base64 {return false} + if lhs.allowDuplicateURL != rhs.allowDuplicateURL {return false} + if lhs._hosted != rhs._hosted {return false} + if lhs._audioInfo != rhs._audioInfo {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_Data: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Data" +extension Clarifai_Api_AudioInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".AudioInfo" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "image"), - 2: .same(proto: "video"), - 3: .same(proto: "concepts"), - 5: .same(proto: "metadata"), - 6: .same(proto: "geo"), - 7: .same(proto: "colors"), - 8: .same(proto: "clusters"), - 9: .same(proto: "embeddings"), - 11: .same(proto: "regions"), - 12: .same(proto: "frames"), - 13: .same(proto: "text"), - 14: .same(proto: "audio"), - 15: .same(proto: "tracks"), - 16: .standard(proto: "time_segments"), - 17: .same(proto: "hits"), - 18: .same(proto: "heatmaps"), - 19: .same(proto: "parts"), - 20: .same(proto: "ndarray"), + 1: .standard(proto: "audio_format"), + 2: .standard(proto: "sample_rate"), + 3: .standard(proto: "duration_seconds"), + 4: .standard(proto: "bit_rate"), ] - fileprivate class _StorageClass { - var _image: Clarifai_Api_Image? = nil - var _video: Clarifai_Api_Video? = nil - var _concepts: [Clarifai_Api_Concept] = [] - var _metadata: SwiftProtobuf.Google_Protobuf_Struct? = nil - var _geo: Clarifai_Api_Geo? = nil - var _colors: [Clarifai_Api_Color] = [] - var _clusters: [Clarifai_Api_Cluster] = [] - var _embeddings: [Clarifai_Api_Embedding] = [] - var _regions: [Clarifai_Api_Region] = [] - var _frames: [Clarifai_Api_Frame] = [] - var _text: Clarifai_Api_Text? = nil - var _audio: Clarifai_Api_Audio? = nil - var _tracks: [Clarifai_Api_Track] = [] - var _timeSegments: [Clarifai_Api_TimeSegment] = [] - var _hits: [Clarifai_Api_Hit] = [] - var _heatmaps: [Clarifai_Api_Image] = [] - var _parts: [Clarifai_Api_Part] = [] - var _ndarray: Clarifai_Api_NDArray? = nil - - static let defaultInstance = _StorageClass() - - private init() {} - - init(copying source: _StorageClass) { - _image = source._image - _video = source._video - _concepts = source._concepts - _metadata = source._metadata - _geo = source._geo - _colors = source._colors - _clusters = source._clusters - _embeddings = source._embeddings - _regions = source._regions - _frames = source._frames - _text = source._text - _audio = source._audio - _tracks = source._tracks - _timeSegments = source._timeSegments - _hits = source._hits - _heatmaps = source._heatmaps - _parts = source._parts - _ndarray = source._ndarray - } - } - - 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.decodeSingularMessageField(value: &_storage._image) }() - case 2: try { try decoder.decodeSingularMessageField(value: &_storage._video) }() - case 3: try { try decoder.decodeRepeatedMessageField(value: &_storage._concepts) }() - case 5: try { try decoder.decodeSingularMessageField(value: &_storage._metadata) }() - case 6: try { try decoder.decodeSingularMessageField(value: &_storage._geo) }() - case 7: try { try decoder.decodeRepeatedMessageField(value: &_storage._colors) }() - case 8: try { try decoder.decodeRepeatedMessageField(value: &_storage._clusters) }() - case 9: try { try decoder.decodeRepeatedMessageField(value: &_storage._embeddings) }() - case 11: try { try decoder.decodeRepeatedMessageField(value: &_storage._regions) }() - case 12: try { try decoder.decodeRepeatedMessageField(value: &_storage._frames) }() - case 13: try { try decoder.decodeSingularMessageField(value: &_storage._text) }() - case 14: try { try decoder.decodeSingularMessageField(value: &_storage._audio) }() - case 15: try { try decoder.decodeRepeatedMessageField(value: &_storage._tracks) }() - case 16: try { try decoder.decodeRepeatedMessageField(value: &_storage._timeSegments) }() - case 17: try { try decoder.decodeRepeatedMessageField(value: &_storage._hits) }() - case 18: try { try decoder.decodeRepeatedMessageField(value: &_storage._heatmaps) }() - case 19: try { try decoder.decodeRepeatedMessageField(value: &_storage._parts) }() - case 20: try { try decoder.decodeSingularMessageField(value: &_storage._ndarray) }() - default: break - } + 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.audioFormat) }() + case 2: try { try decoder.decodeSingularInt32Field(value: &self.sampleRate) }() + case 3: try { try decoder.decodeSingularFloatField(value: &self.durationSeconds) }() + case 4: try { try decoder.decodeSingularInt32Field(value: &self.bitRate) }() + 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 - try { if let v = _storage._image { - try visitor.visitSingularMessageField(value: v, fieldNumber: 1) - } }() - try { if let v = _storage._video { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - if !_storage._concepts.isEmpty { - try visitor.visitRepeatedMessageField(value: _storage._concepts, fieldNumber: 3) - } - try { if let v = _storage._metadata { - try visitor.visitSingularMessageField(value: v, fieldNumber: 5) - } }() - try { if let v = _storage._geo { - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) - } }() - if !_storage._colors.isEmpty { - try visitor.visitRepeatedMessageField(value: _storage._colors, fieldNumber: 7) - } - if !_storage._clusters.isEmpty { - try visitor.visitRepeatedMessageField(value: _storage._clusters, fieldNumber: 8) - } - if !_storage._embeddings.isEmpty { - try visitor.visitRepeatedMessageField(value: _storage._embeddings, fieldNumber: 9) - } - if !_storage._regions.isEmpty { - try visitor.visitRepeatedMessageField(value: _storage._regions, fieldNumber: 11) - } - if !_storage._frames.isEmpty { - try visitor.visitRepeatedMessageField(value: _storage._frames, fieldNumber: 12) - } - try { if let v = _storage._text { - try visitor.visitSingularMessageField(value: v, fieldNumber: 13) - } }() - try { if let v = _storage._audio { - try visitor.visitSingularMessageField(value: v, fieldNumber: 14) - } }() - if !_storage._tracks.isEmpty { - try visitor.visitRepeatedMessageField(value: _storage._tracks, fieldNumber: 15) - } - if !_storage._timeSegments.isEmpty { - try visitor.visitRepeatedMessageField(value: _storage._timeSegments, fieldNumber: 16) - } - if !_storage._hits.isEmpty { - try visitor.visitRepeatedMessageField(value: _storage._hits, fieldNumber: 17) - } - if !_storage._heatmaps.isEmpty { - try visitor.visitRepeatedMessageField(value: _storage._heatmaps, fieldNumber: 18) - } - if !_storage._parts.isEmpty { - try visitor.visitRepeatedMessageField(value: _storage._parts, fieldNumber: 19) - } - try { if let v = _storage._ndarray { - try visitor.visitSingularMessageField(value: v, fieldNumber: 20) - } }() + if !self.audioFormat.isEmpty { + try visitor.visitSingularStringField(value: self.audioFormat, fieldNumber: 1) } - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_Data, rhs: Clarifai_Api_Data) -> 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._image != rhs_storage._image {return false} - if _storage._video != rhs_storage._video {return false} - if _storage._concepts != rhs_storage._concepts {return false} - if _storage._metadata != rhs_storage._metadata {return false} - if _storage._geo != rhs_storage._geo {return false} - if _storage._colors != rhs_storage._colors {return false} - if _storage._clusters != rhs_storage._clusters {return false} - if _storage._embeddings != rhs_storage._embeddings {return false} - if _storage._regions != rhs_storage._regions {return false} - if _storage._frames != rhs_storage._frames {return false} - if _storage._text != rhs_storage._text {return false} - if _storage._audio != rhs_storage._audio {return false} - if _storage._tracks != rhs_storage._tracks {return false} - if _storage._timeSegments != rhs_storage._timeSegments {return false} - if _storage._hits != rhs_storage._hits {return false} - if _storage._heatmaps != rhs_storage._heatmaps {return false} - if _storage._parts != rhs_storage._parts {return false} - if _storage._ndarray != rhs_storage._ndarray {return false} - return true - } - if !storagesAreEqual {return false} + if self.sampleRate != 0 { + try visitor.visitSingularInt32Field(value: self.sampleRate, fieldNumber: 2) + } + if self.durationSeconds != 0 { + try visitor.visitSingularFloatField(value: self.durationSeconds, fieldNumber: 3) } + if self.bitRate != 0 { + try visitor.visitSingularInt32Field(value: self.bitRate, fieldNumber: 4) + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Clarifai_Api_AudioInfo, rhs: Clarifai_Api_AudioInfo) -> Bool { + if lhs.audioFormat != rhs.audioFormat {return false} + if lhs.sampleRate != rhs.sampleRate {return false} + if lhs.durationSeconds != rhs.durationSeconds {return false} + if lhs.bitRate != rhs.bitRate {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_Part: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Part" +extension Clarifai_Api_Track: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Track" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "data"), + 1: .same(proto: "id"), + 2: .same(proto: "data"), + 4: .standard(proto: "time_info"), + 5: .same(proto: "quality"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -16004,7 +14540,10 @@ extension Clarifai_Api_Part: 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.decodeSingularMessageField(value: &self._data) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._data) }() + case 4: try { try decoder.decodeSingularMessageField(value: &self._timeInfo) }() + case 5: try { try decoder.decodeSingularFloatField(value: &self.quality) }() default: break } } @@ -16015,27 +14554,39 @@ extension Clarifai_Api_Part: SwiftProtobuf.Message, SwiftProtobuf._MessageImplem // 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.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) + } try { if let v = self._data { - try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + try { if let v = self._timeInfo { + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) } }() + if self.quality != 0 { + try visitor.visitSingularFloatField(value: self.quality, fieldNumber: 5) + } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_Part, rhs: Clarifai_Api_Part) -> Bool { + public static func ==(lhs: Clarifai_Api_Track, rhs: Clarifai_Api_Track) -> Bool { + if lhs.id != rhs.id {return false} if lhs._data != rhs._data {return false} + if lhs._timeInfo != rhs._timeInfo {return false} + if lhs.quality != rhs.quality {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_Region: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Region" +extension Clarifai_Api_Cluster: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Cluster" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ 1: .same(proto: "id"), - 2: .standard(proto: "region_info"), - 3: .same(proto: "data"), - 4: .same(proto: "value"), - 5: .standard(proto: "track_id"), + 2: .same(proto: "count"), + 3: .same(proto: "score"), + 4: .same(proto: "hits"), + 5: .same(proto: "projection"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -16045,10 +14596,62 @@ extension Clarifai_Api_Region: SwiftProtobuf.Message, SwiftProtobuf._MessageImpl // enabled. https://github.com/apple/swift-protobuf/issues/1034 switch fieldNumber { case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() - case 2: try { try decoder.decodeSingularMessageField(value: &self._regionInfo) }() - case 3: try { try decoder.decodeSingularMessageField(value: &self._data) }() - case 4: try { try decoder.decodeSingularFloatField(value: &self.value) }() - case 5: try { try decoder.decodeSingularStringField(value: &self.trackID) }() + case 2: try { try decoder.decodeSingularUInt32Field(value: &self.count) }() + case 3: try { try decoder.decodeSingularFloatField(value: &self.score) }() + case 4: try { try decoder.decodeRepeatedMessageField(value: &self.hits) }() + case 5: try { try decoder.decodeRepeatedFloatField(value: &self.projection) }() + default: break + } + } + } + + public func traverse(visitor: inout V) throws { + if !self.id.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) + } + if self.count != 0 { + try visitor.visitSingularUInt32Field(value: self.count, fieldNumber: 2) + } + if self.score != 0 { + try visitor.visitSingularFloatField(value: self.score, fieldNumber: 3) + } + if !self.hits.isEmpty { + try visitor.visitRepeatedMessageField(value: self.hits, fieldNumber: 4) + } + if !self.projection.isEmpty { + try visitor.visitPackedFloatField(value: self.projection, fieldNumber: 5) + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Clarifai_Api_Cluster, rhs: Clarifai_Api_Cluster) -> Bool { + if lhs.id != rhs.id {return false} + if lhs.count != rhs.count {return false} + if lhs.score != rhs.score {return false} + if lhs.hits != rhs.hits {return false} + if lhs.projection != rhs.projection {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Clarifai_Api_Color: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Color" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "raw_hex"), + 2: .same(proto: "w3c"), + 3: .same(proto: "value"), + ] + + 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.rawHex) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._w3C) }() + case 3: try { try decoder.decodeSingularFloatField(value: &self.value) }() default: break } } @@ -16059,68 +14662,201 @@ extension Clarifai_Api_Region: SwiftProtobuf.Message, SwiftProtobuf._MessageImpl // 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.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) + if !self.rawHex.isEmpty { + try visitor.visitSingularStringField(value: self.rawHex, fieldNumber: 1) } - try { if let v = self._regionInfo { + try { if let v = self._w3C { try visitor.visitSingularMessageField(value: v, fieldNumber: 2) } }() - try { if let v = self._data { - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - } }() if self.value != 0 { - try visitor.visitSingularFloatField(value: self.value, fieldNumber: 4) - } - if !self.trackID.isEmpty { - try visitor.visitSingularStringField(value: self.trackID, fieldNumber: 5) + try visitor.visitSingularFloatField(value: self.value, fieldNumber: 3) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_Region, rhs: Clarifai_Api_Region) -> Bool { - if lhs.id != rhs.id {return false} - if lhs._regionInfo != rhs._regionInfo {return false} - if lhs._data != rhs._data {return false} + public static func ==(lhs: Clarifai_Api_Color, rhs: Clarifai_Api_Color) -> Bool { + if lhs.rawHex != rhs.rawHex {return false} + if lhs._w3C != rhs._w3C {return false} if lhs.value != rhs.value {return false} - if lhs.trackID != rhs.trackID {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_RegionInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".RegionInfo" +extension Clarifai_Api_W3C: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".W3C" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "bounding_box"), - 4: .same(proto: "mask"), - 5: .same(proto: "polygon"), - 6: .same(proto: "point"), - 7: .same(proto: "span"), - 8: .same(proto: "token"), - 9: .standard(proto: "keypoint_locations"), + 1: .same(proto: "hex"), + 2: .same(proto: "name"), + ] + + 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.hex) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.name) }() + default: break + } + } + } + + public func traverse(visitor: inout V) throws { + if !self.hex.isEmpty { + try visitor.visitSingularStringField(value: self.hex, fieldNumber: 1) + } + if !self.name.isEmpty { + try visitor.visitSingularStringField(value: self.name, fieldNumber: 2) + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Clarifai_Api_W3C, rhs: Clarifai_Api_W3C) -> Bool { + if lhs.hex != rhs.hex {return false} + if lhs.name != rhs.name {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Clarifai_Api_UserAppIDSet: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".UserAppIDSet" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "user_id"), + 2: .standard(proto: "app_id"), + ] + + 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.userID) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.appID) }() + default: break + } + } + } + + public func traverse(visitor: inout V) throws { + if !self.userID.isEmpty { + try visitor.visitSingularStringField(value: self.userID, fieldNumber: 1) + } + if !self.appID.isEmpty { + try visitor.visitSingularStringField(value: self.appID, fieldNumber: 2) + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Clarifai_Api_UserAppIDSet, rhs: Clarifai_Api_UserAppIDSet) -> Bool { + if lhs.userID != rhs.userID {return false} + if lhs.appID != rhs.appID {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Clarifai_Api_PatchAction: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".PatchAction" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "op"), + 2: .standard(proto: "merge_conflict_resolution"), + 3: .same(proto: "path"), + ] + + 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.op) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.mergeConflictResolution) }() + case 3: try { try decoder.decodeSingularStringField(value: &self.path) }() + default: break + } + } + } + + public func traverse(visitor: inout V) throws { + if !self.op.isEmpty { + try visitor.visitSingularStringField(value: self.op, fieldNumber: 1) + } + if !self.mergeConflictResolution.isEmpty { + try visitor.visitSingularStringField(value: self.mergeConflictResolution, fieldNumber: 2) + } + if !self.path.isEmpty { + try visitor.visitSingularStringField(value: self.path, fieldNumber: 3) + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Clarifai_Api_PatchAction, rhs: Clarifai_Api_PatchAction) -> Bool { + if lhs.op != rhs.op {return false} + if lhs.mergeConflictResolution != rhs.mergeConflictResolution {return false} + if lhs.path != rhs.path {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Clarifai_Api_Concept: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Concept" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "id"), + 2: .same(proto: "name"), + 3: .same(proto: "value"), + 4: .standard(proto: "created_at"), + 5: .same(proto: "language"), + 6: .standard(proto: "app_id"), + 7: .same(proto: "definition"), + 8: .standard(proto: "vocab_id"), + 9: .same(proto: "visibility"), + 10: .standard(proto: "user_id"), + 11: .standard(proto: "keypoint_info"), + 12: .standard(proto: "extra_info"), + 13: .same(proto: "metadata"), + 22: .same(proto: "image"), ] fileprivate class _StorageClass { - var _boundingBox: Clarifai_Api_BoundingBox? = nil - var _mask: Clarifai_Api_Mask? = nil - var _polygon: Clarifai_Api_Polygon? = nil - var _point: Clarifai_Api_Point? = nil - var _span: Clarifai_Api_Span? = nil - var _token: Clarifai_Api_Token? = nil - var _keypointLocations: [Clarifai_Api_Point] = [] + var _id: String = String() + var _name: String = String() + var _value: Float = 0 + var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _language: String = String() + var _appID: String = String() + var _definition: String = String() + var _vocabID: String = String() + var _visibility: Clarifai_Api_Visibility? = nil + var _userID: String = String() + var _keypointInfo: Clarifai_Api_KeypointInfo? = nil + var _extraInfo: Clarifai_Api_ConceptExtraInfo? = nil + var _metadata: SwiftProtobuf.Google_Protobuf_Struct? = nil + var _image: Clarifai_Api_Image? = nil static let defaultInstance = _StorageClass() private init() {} init(copying source: _StorageClass) { - _boundingBox = source._boundingBox - _mask = source._mask - _polygon = source._polygon - _point = source._point - _span = source._span - _token = source._token - _keypointLocations = source._keypointLocations + _id = source._id + _name = source._name + _value = source._value + _createdAt = source._createdAt + _language = source._language + _appID = source._appID + _definition = source._definition + _vocabID = source._vocabID + _visibility = source._visibility + _userID = source._userID + _keypointInfo = source._keypointInfo + _extraInfo = source._extraInfo + _metadata = source._metadata + _image = source._image } } @@ -16139,13 +14875,20 @@ extension Clarifai_Api_RegionInfo: 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.decodeSingularMessageField(value: &_storage._boundingBox) }() - case 4: try { try decoder.decodeSingularMessageField(value: &_storage._mask) }() - case 5: try { try decoder.decodeSingularMessageField(value: &_storage._polygon) }() - case 6: try { try decoder.decodeSingularMessageField(value: &_storage._point) }() - case 7: try { try decoder.decodeSingularMessageField(value: &_storage._span) }() - case 8: try { try decoder.decodeSingularMessageField(value: &_storage._token) }() - case 9: try { try decoder.decodeRepeatedMessageField(value: &_storage._keypointLocations) }() + case 1: try { try decoder.decodeSingularStringField(value: &_storage._id) }() + case 2: try { try decoder.decodeSingularStringField(value: &_storage._name) }() + case 3: try { try decoder.decodeSingularFloatField(value: &_storage._value) }() + case 4: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() + case 5: try { try decoder.decodeSingularStringField(value: &_storage._language) }() + case 6: try { try decoder.decodeSingularStringField(value: &_storage._appID) }() + case 7: try { try decoder.decodeSingularStringField(value: &_storage._definition) }() + case 8: try { try decoder.decodeSingularStringField(value: &_storage._vocabID) }() + case 9: try { try decoder.decodeSingularMessageField(value: &_storage._visibility) }() + case 10: try { try decoder.decodeSingularStringField(value: &_storage._userID) }() + case 11: try { try decoder.decodeSingularMessageField(value: &_storage._keypointInfo) }() + case 12: try { try decoder.decodeSingularMessageField(value: &_storage._extraInfo) }() + case 13: try { try decoder.decodeSingularMessageField(value: &_storage._metadata) }() + case 22: try { try decoder.decodeSingularMessageField(value: &_storage._image) }() default: break } } @@ -16158,43 +14901,71 @@ extension Clarifai_Api_RegionInfo: SwiftProtobuf.Message, SwiftProtobuf._Message // 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._boundingBox { - try visitor.visitSingularMessageField(value: v, fieldNumber: 1) - } }() - try { if let v = _storage._mask { + if !_storage._id.isEmpty { + try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) + } + if !_storage._name.isEmpty { + try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 2) + } + if _storage._value != 0 { + try visitor.visitSingularFloatField(value: _storage._value, fieldNumber: 3) + } + try { if let v = _storage._createdAt { try visitor.visitSingularMessageField(value: v, fieldNumber: 4) } }() - try { if let v = _storage._polygon { - try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + if !_storage._language.isEmpty { + try visitor.visitSingularStringField(value: _storage._language, fieldNumber: 5) + } + if !_storage._appID.isEmpty { + try visitor.visitSingularStringField(value: _storage._appID, fieldNumber: 6) + } + if !_storage._definition.isEmpty { + try visitor.visitSingularStringField(value: _storage._definition, fieldNumber: 7) + } + if !_storage._vocabID.isEmpty { + try visitor.visitSingularStringField(value: _storage._vocabID, fieldNumber: 8) + } + try { if let v = _storage._visibility { + try visitor.visitSingularMessageField(value: v, fieldNumber: 9) } }() - try { if let v = _storage._point { - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + if !_storage._userID.isEmpty { + try visitor.visitSingularStringField(value: _storage._userID, fieldNumber: 10) + } + try { if let v = _storage._keypointInfo { + try visitor.visitSingularMessageField(value: v, fieldNumber: 11) } }() - try { if let v = _storage._span { - try visitor.visitSingularMessageField(value: v, fieldNumber: 7) + try { if let v = _storage._extraInfo { + try visitor.visitSingularMessageField(value: v, fieldNumber: 12) } }() - try { if let v = _storage._token { - try visitor.visitSingularMessageField(value: v, fieldNumber: 8) + try { if let v = _storage._metadata { + try visitor.visitSingularMessageField(value: v, fieldNumber: 13) + } }() + try { if let v = _storage._image { + try visitor.visitSingularMessageField(value: v, fieldNumber: 22) } }() - if !_storage._keypointLocations.isEmpty { - try visitor.visitRepeatedMessageField(value: _storage._keypointLocations, fieldNumber: 9) - } } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_RegionInfo, rhs: Clarifai_Api_RegionInfo) -> Bool { + public static func ==(lhs: Clarifai_Api_Concept, rhs: Clarifai_Api_Concept) -> 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._boundingBox != rhs_storage._boundingBox {return false} - if _storage._mask != rhs_storage._mask {return false} - if _storage._polygon != rhs_storage._polygon {return false} - if _storage._point != rhs_storage._point {return false} - if _storage._span != rhs_storage._span {return false} - if _storage._token != rhs_storage._token {return false} - if _storage._keypointLocations != rhs_storage._keypointLocations {return false} + if _storage._id != rhs_storage._id {return false} + if _storage._name != rhs_storage._name {return false} + if _storage._value != rhs_storage._value {return false} + if _storage._createdAt != rhs_storage._createdAt {return false} + if _storage._language != rhs_storage._language {return false} + if _storage._appID != rhs_storage._appID {return false} + if _storage._definition != rhs_storage._definition {return false} + if _storage._vocabID != rhs_storage._vocabID {return false} + if _storage._visibility != rhs_storage._visibility {return false} + if _storage._userID != rhs_storage._userID {return false} + if _storage._keypointInfo != rhs_storage._keypointInfo {return false} + if _storage._extraInfo != rhs_storage._extraInfo {return false} + if _storage._metadata != rhs_storage._metadata {return false} + if _storage._image != rhs_storage._image {return false} return true } if !storagesAreEqual {return false} @@ -16204,13 +14975,11 @@ extension Clarifai_Api_RegionInfo: SwiftProtobuf.Message, SwiftProtobuf._Message } } -extension Clarifai_Api_BoundingBox: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".BoundingBox" +extension Clarifai_Api_KeypointInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".KeypointInfo" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "top_row"), - 2: .standard(proto: "left_col"), - 3: .standard(proto: "bottom_row"), - 4: .standard(proto: "right_col"), + 1: .standard(proto: "keypoint_names"), + 2: .same(proto: "skeleton"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -16219,46 +14988,36 @@ extension Clarifai_Api_BoundingBox: SwiftProtobuf.Message, SwiftProtobuf._Messag // 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.decodeSingularFloatField(value: &self.topRow) }() - case 2: try { try decoder.decodeSingularFloatField(value: &self.leftCol) }() - case 3: try { try decoder.decodeSingularFloatField(value: &self.bottomRow) }() - case 4: try { try decoder.decodeSingularFloatField(value: &self.rightCol) }() + case 1: try { try decoder.decodeRepeatedStringField(value: &self.keypointNames) }() + case 2: try { try decoder.decodeRepeatedMessageField(value: &self.skeleton) }() default: break } } } public func traverse(visitor: inout V) throws { - if self.topRow != 0 { - try visitor.visitSingularFloatField(value: self.topRow, fieldNumber: 1) - } - if self.leftCol != 0 { - try visitor.visitSingularFloatField(value: self.leftCol, fieldNumber: 2) - } - if self.bottomRow != 0 { - try visitor.visitSingularFloatField(value: self.bottomRow, fieldNumber: 3) + if !self.keypointNames.isEmpty { + try visitor.visitRepeatedStringField(value: self.keypointNames, fieldNumber: 1) } - if self.rightCol != 0 { - try visitor.visitSingularFloatField(value: self.rightCol, fieldNumber: 4) + if !self.skeleton.isEmpty { + try visitor.visitRepeatedMessageField(value: self.skeleton, fieldNumber: 2) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_BoundingBox, rhs: Clarifai_Api_BoundingBox) -> Bool { - if lhs.topRow != rhs.topRow {return false} - if lhs.leftCol != rhs.leftCol {return false} - if lhs.bottomRow != rhs.bottomRow {return false} - if lhs.rightCol != rhs.rightCol {return false} + public static func ==(lhs: Clarifai_Api_KeypointInfo, rhs: Clarifai_Api_KeypointInfo) -> Bool { + if lhs.keypointNames != rhs.keypointNames {return false} + if lhs.skeleton != rhs.skeleton {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_FrameInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".FrameInfo" +extension Clarifai_Api_KeypointEdge: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".KeypointEdge" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "index"), - 2: .same(proto: "time"), + 1: .same(proto: "k1"), + 2: .same(proto: "k2"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -16267,37 +15026,35 @@ extension Clarifai_Api_FrameInfo: 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.decodeSingularUInt32Field(value: &self.index) }() - case 2: try { try decoder.decodeSingularUInt32Field(value: &self.time) }() + case 1: try { try decoder.decodeSingularUInt32Field(value: &self.k1) }() + case 2: try { try decoder.decodeSingularUInt32Field(value: &self.k2) }() default: break } } } public func traverse(visitor: inout V) throws { - if self.index != 0 { - try visitor.visitSingularUInt32Field(value: self.index, fieldNumber: 1) + if self.k1 != 0 { + try visitor.visitSingularUInt32Field(value: self.k1, fieldNumber: 1) } - if self.time != 0 { - try visitor.visitSingularUInt32Field(value: self.time, fieldNumber: 2) + if self.k2 != 0 { + try visitor.visitSingularUInt32Field(value: self.k2, fieldNumber: 2) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_FrameInfo, rhs: Clarifai_Api_FrameInfo) -> Bool { - if lhs.index != rhs.index {return false} - if lhs.time != rhs.time {return false} + public static func ==(lhs: Clarifai_Api_KeypointEdge, rhs: Clarifai_Api_KeypointEdge) -> Bool { + if lhs.k1 != rhs.k1 {return false} + if lhs.k2 != rhs.k2 {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_Frame: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Frame" +extension Clarifai_Api_ConceptExtraInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".ConceptExtraInfo" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "frame_info"), - 2: .same(proto: "data"), - 3: .same(proto: "id"), + 1: .standard(proto: "is_rankable"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -16306,46 +15063,33 @@ extension Clarifai_Api_Frame: SwiftProtobuf.Message, SwiftProtobuf._MessageImple // 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._frameInfo) }() - case 2: try { try decoder.decodeSingularMessageField(value: &self._data) }() - case 3: try { try decoder.decodeSingularStringField(value: &self.id) }() + case 1: try { try decoder.decodeSingularBoolField(value: &self.isRankable) }() 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._frameInfo { - try visitor.visitSingularMessageField(value: v, fieldNumber: 1) - } }() - try { if let v = self._data { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - if !self.id.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 3) + if self.isRankable != false { + try visitor.visitSingularBoolField(value: self.isRankable, fieldNumber: 1) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_Frame, rhs: Clarifai_Api_Frame) -> Bool { - if lhs._frameInfo != rhs._frameInfo {return false} - if lhs._data != rhs._data {return false} - if lhs.id != rhs.id {return false} + public static func ==(lhs: Clarifai_Api_ConceptExtraInfo, rhs: Clarifai_Api_ConceptExtraInfo) -> Bool { + if lhs.isRankable != rhs.isRankable {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_NDArray: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".NDArray" +extension Clarifai_Api_ConceptCount: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".ConceptCount" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "buffer"), - 2: .same(proto: "shape"), - 3: .same(proto: "dtype"), + 1: .same(proto: "id"), + 2: .same(proto: "name"), + 3: .standard(proto: "concept_type_count"), + 4: .standard(proto: "detail_concept_count"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -16354,40 +15098,50 @@ extension Clarifai_Api_NDArray: SwiftProtobuf.Message, SwiftProtobuf._MessageImp // 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.decodeSingularBytesField(value: &self.buffer) }() - case 2: try { try decoder.decodeRepeatedUInt32Field(value: &self.shape) }() - case 3: try { try decoder.decodeSingularStringField(value: &self.dtype) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.name) }() + case 3: try { try decoder.decodeSingularMessageField(value: &self._conceptTypeCount) }() + case 4: try { try decoder.decodeSingularMessageField(value: &self._detailConceptCount) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.buffer.isEmpty { - try visitor.visitSingularBytesField(value: self.buffer, fieldNumber: 1) - } - if !self.shape.isEmpty { - try visitor.visitPackedUInt32Field(value: self.shape, fieldNumber: 2) + // 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.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) } - if !self.dtype.isEmpty { - try visitor.visitSingularStringField(value: self.dtype, fieldNumber: 3) + if !self.name.isEmpty { + try visitor.visitSingularStringField(value: self.name, fieldNumber: 2) } + try { if let v = self._conceptTypeCount { + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + } }() + try { if let v = self._detailConceptCount { + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_NDArray, rhs: Clarifai_Api_NDArray) -> Bool { - if lhs.buffer != rhs.buffer {return false} - if lhs.shape != rhs.shape {return false} - if lhs.dtype != rhs.dtype {return false} + public static func ==(lhs: Clarifai_Api_ConceptCount, rhs: Clarifai_Api_ConceptCount) -> Bool { + if lhs.id != rhs.id {return false} + if lhs.name != rhs.name {return false} + if lhs._conceptTypeCount != rhs._conceptTypeCount {return false} + if lhs._detailConceptCount != rhs._detailConceptCount {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_Mask: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Mask" +extension Clarifai_Api_ConceptTypeCount: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".ConceptTypeCount" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 2: .same(proto: "image"), + 1: .same(proto: "positive"), + 2: .same(proto: "negative"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -16396,34 +15150,38 @@ extension Clarifai_Api_Mask: 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 2: try { try decoder.decodeSingularMessageField(value: &self._image) }() + case 1: try { try decoder.decodeSingularUInt32Field(value: &self.positive) }() + case 2: try { try decoder.decodeSingularUInt32Field(value: &self.negative) }() 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._image { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() + if self.positive != 0 { + try visitor.visitSingularUInt32Field(value: self.positive, fieldNumber: 1) + } + if self.negative != 0 { + try visitor.visitSingularUInt32Field(value: self.negative, fieldNumber: 2) + } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_Mask, rhs: Clarifai_Api_Mask) -> Bool { - if lhs._image != rhs._image {return false} + public static func ==(lhs: Clarifai_Api_ConceptTypeCount, rhs: Clarifai_Api_ConceptTypeCount) -> Bool { + if lhs.positive != rhs.positive {return false} + if lhs.negative != rhs.negative {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_Polygon: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Polygon" +extension Clarifai_Api_DetailConceptCount: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".DetailConceptCount" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "points"), + 1: .same(proto: "processed"), + 2: .standard(proto: "to_process"), + 3: .same(proto: "errors"), + 4: .same(proto: "processing"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -16432,33 +15190,55 @@ extension Clarifai_Api_Polygon: SwiftProtobuf.Message, SwiftProtobuf._MessageImp // 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.points) }() + case 1: try { try decoder.decodeSingularMessageField(value: &self._processed) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._toProcess) }() + case 3: try { try decoder.decodeSingularMessageField(value: &self._errors) }() + case 4: try { try decoder.decodeSingularMessageField(value: &self._processing) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.points.isEmpty { - try visitor.visitRepeatedMessageField(value: self.points, fieldNumber: 1) - } + // 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._processed { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } }() + try { if let v = self._toProcess { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + try { if let v = self._errors { + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + } }() + try { if let v = self._processing { + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_Polygon, rhs: Clarifai_Api_Polygon) -> Bool { - if lhs.points != rhs.points {return false} + public static func ==(lhs: Clarifai_Api_DetailConceptCount, rhs: Clarifai_Api_DetailConceptCount) -> Bool { + if lhs._processed != rhs._processed {return false} + if lhs._toProcess != rhs._toProcess {return false} + if lhs._errors != rhs._errors {return false} + if lhs._processing != rhs._processing {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_Point: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Point" +extension Clarifai_Api_ConceptQuery: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".ConceptQuery" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "row"), - 2: .same(proto: "col"), - 3: .same(proto: "z"), - 4: .same(proto: "visibility"), + 1: .same(proto: "name"), + 2: .same(proto: "language"), + 3: .standard(proto: "workflow_id"), + 4: .standard(proto: "use_cases"), + 5: .same(proto: "model"), + 6: .same(proto: "workflow"), + 7: .standard(proto: "ignore_app_concepts"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -16467,56 +15247,97 @@ extension Clarifai_Api_Point: SwiftProtobuf.Message, SwiftProtobuf._MessageImple // 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.decodeSingularFloatField(value: &self.row) }() - case 2: try { try decoder.decodeSingularFloatField(value: &self.col) }() - case 3: try { try decoder.decodeSingularFloatField(value: &self.z) }() - case 4: try { try decoder.decodeSingularEnumField(value: &self.visibility) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.name) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.language) }() + case 3: try { try decoder.decodeSingularStringField(value: &self.workflowID) }() + case 4: try { try decoder.decodeRepeatedEnumField(value: &self.useCases) }() + case 5: try { + var v: Clarifai_Api_Model? + var hadOneofValue = false + if let current = self.source { + hadOneofValue = true + if case .model(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.source = .model(v) + } + }() + case 6: try { + var v: Clarifai_Api_Workflow? + var hadOneofValue = false + if let current = self.source { + hadOneofValue = true + if case .workflow(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.source = .workflow(v) + } + }() + case 7: try { try decoder.decodeSingularBoolField(value: &self.ignoreAppConcepts) }() default: break } } } public func traverse(visitor: inout V) throws { - if self.row != 0 { - try visitor.visitSingularFloatField(value: self.row, fieldNumber: 1) + // 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.name.isEmpty { + try visitor.visitSingularStringField(value: self.name, fieldNumber: 1) } - if self.col != 0 { - try visitor.visitSingularFloatField(value: self.col, fieldNumber: 2) + if !self.language.isEmpty { + try visitor.visitSingularStringField(value: self.language, fieldNumber: 2) } - if self.z != 0 { - try visitor.visitSingularFloatField(value: self.z, fieldNumber: 3) + if !self.workflowID.isEmpty { + try visitor.visitSingularStringField(value: self.workflowID, fieldNumber: 3) } - if self.visibility != .notSet { - try visitor.visitSingularEnumField(value: self.visibility, fieldNumber: 4) + if !self.useCases.isEmpty { + try visitor.visitPackedEnumField(value: self.useCases, fieldNumber: 4) + } + switch self.source { + case .model?: try { + guard case .model(let v)? = self.source else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + }() + case .workflow?: try { + guard case .workflow(let v)? = self.source else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + }() + case nil: break + } + if self.ignoreAppConcepts != false { + try visitor.visitSingularBoolField(value: self.ignoreAppConcepts, fieldNumber: 7) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_Point, rhs: Clarifai_Api_Point) -> Bool { - if lhs.row != rhs.row {return false} - if lhs.col != rhs.col {return false} - if lhs.z != rhs.z {return false} - if lhs.visibility != rhs.visibility {return false} + public static func ==(lhs: Clarifai_Api_ConceptQuery, rhs: Clarifai_Api_ConceptQuery) -> Bool { + if lhs.name != rhs.name {return false} + if lhs.language != rhs.language {return false} + if lhs.workflowID != rhs.workflowID {return false} + if lhs.useCases != rhs.useCases {return false} + if lhs.source != rhs.source {return false} + if lhs.ignoreAppConcepts != rhs.ignoreAppConcepts {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_Point.Visibility: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "NOT_SET"), - 1: .same(proto: "VISIBLE"), - 2: .same(proto: "NOT_VISIBLE"), - 3: .same(proto: "NOT_PRESENT"), - ] -} - -extension Clarifai_Api_Span: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Span" +extension Clarifai_Api_ConceptRelation: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".ConceptRelation" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "char_start"), - 2: .standard(proto: "char_end"), - 3: .standard(proto: "raw_text"), + 1: .same(proto: "id"), + 2: .standard(proto: "subject_concept"), + 3: .standard(proto: "object_concept"), + 4: .same(proto: "predicate"), + 5: .standard(proto: "knowledge_graph_id"), + 6: .same(proto: "visibility"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -16525,42 +15346,63 @@ extension Clarifai_Api_Span: 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.decodeSingularUInt32Field(value: &self.charStart) }() - case 2: try { try decoder.decodeSingularUInt32Field(value: &self.charEnd) }() - case 3: try { try decoder.decodeSingularStringField(value: &self.rawText) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._subjectConcept) }() + case 3: try { try decoder.decodeSingularMessageField(value: &self._objectConcept) }() + case 4: try { try decoder.decodeSingularStringField(value: &self.predicate) }() + case 5: try { try decoder.decodeSingularStringField(value: &self.knowledgeGraphID) }() + case 6: try { try decoder.decodeSingularMessageField(value: &self._visibility) }() default: break } } } public func traverse(visitor: inout V) throws { - if self.charStart != 0 { - try visitor.visitSingularUInt32Field(value: self.charStart, fieldNumber: 1) + // 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.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) } - if self.charEnd != 0 { - try visitor.visitSingularUInt32Field(value: self.charEnd, fieldNumber: 2) + try { if let v = self._subjectConcept { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + try { if let v = self._objectConcept { + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + } }() + if !self.predicate.isEmpty { + try visitor.visitSingularStringField(value: self.predicate, fieldNumber: 4) } - if !self.rawText.isEmpty { - try visitor.visitSingularStringField(value: self.rawText, fieldNumber: 3) + if !self.knowledgeGraphID.isEmpty { + try visitor.visitSingularStringField(value: self.knowledgeGraphID, fieldNumber: 5) } + try { if let v = self._visibility { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_Span, rhs: Clarifai_Api_Span) -> Bool { - if lhs.charStart != rhs.charStart {return false} - if lhs.charEnd != rhs.charEnd {return false} - if lhs.rawText != rhs.rawText {return false} + public static func ==(lhs: Clarifai_Api_ConceptRelation, rhs: Clarifai_Api_ConceptRelation) -> Bool { + if lhs.id != rhs.id {return false} + if lhs._subjectConcept != rhs._subjectConcept {return false} + if lhs._objectConcept != rhs._objectConcept {return false} + if lhs.predicate != rhs.predicate {return false} + if lhs.knowledgeGraphID != rhs.knowledgeGraphID {return false} + if lhs._visibility != rhs._visibility {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_Token: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Token" +extension Clarifai_Api_KnowledgeGraph: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".KnowledgeGraph" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "char_start"), - 2: .standard(proto: "char_end"), - 3: .standard(proto: "raw_text"), + 1: .same(proto: "id"), + 2: .same(proto: "name"), + 3: .same(proto: "description"), + 4: .standard(proto: "examples_app_id"), + 5: .standard(proto: "sampled_examples_app_id"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -16569,41 +15411,52 @@ extension Clarifai_Api_Token: SwiftProtobuf.Message, SwiftProtobuf._MessageImple // 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.decodeSingularUInt32Field(value: &self.charStart) }() - case 2: try { try decoder.decodeSingularUInt32Field(value: &self.charEnd) }() - case 3: try { try decoder.decodeSingularStringField(value: &self.rawText) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.name) }() + case 3: try { try decoder.decodeSingularStringField(value: &self.description_p) }() + case 4: try { try decoder.decodeSingularStringField(value: &self.examplesAppID) }() + case 5: try { try decoder.decodeSingularStringField(value: &self.sampledExamplesAppID) }() default: break } } } public func traverse(visitor: inout V) throws { - if self.charStart != 0 { - try visitor.visitSingularUInt32Field(value: self.charStart, fieldNumber: 1) + if !self.id.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) } - if self.charEnd != 0 { - try visitor.visitSingularUInt32Field(value: self.charEnd, fieldNumber: 2) + if !self.name.isEmpty { + try visitor.visitSingularStringField(value: self.name, fieldNumber: 2) } - if !self.rawText.isEmpty { - try visitor.visitSingularStringField(value: self.rawText, fieldNumber: 3) + if !self.description_p.isEmpty { + try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 3) + } + if !self.examplesAppID.isEmpty { + try visitor.visitSingularStringField(value: self.examplesAppID, fieldNumber: 4) + } + if !self.sampledExamplesAppID.isEmpty { + try visitor.visitSingularStringField(value: self.sampledExamplesAppID, fieldNumber: 5) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_Token, rhs: Clarifai_Api_Token) -> Bool { - if lhs.charStart != rhs.charStart {return false} - if lhs.charEnd != rhs.charEnd {return false} - if lhs.rawText != rhs.rawText {return false} + public static func ==(lhs: Clarifai_Api_KnowledgeGraph, rhs: Clarifai_Api_KnowledgeGraph) -> Bool { + if lhs.id != rhs.id {return false} + if lhs.name != rhs.name {return false} + if lhs.description_p != rhs.description_p {return false} + if lhs.examplesAppID != rhs.examplesAppID {return false} + if lhs.sampledExamplesAppID != rhs.sampledExamplesAppID {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_Embedding: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Embedding" +extension Clarifai_Api_ConceptLanguage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".ConceptLanguage" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "vector"), - 2: .standard(proto: "num_dimensions"), + 1: .same(proto: "id"), + 2: .same(proto: "name"), + 3: .same(proto: "definition"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -16612,111 +15465,244 @@ extension Clarifai_Api_Embedding: 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.decodeRepeatedFloatField(value: &self.vector) }() - case 2: try { try decoder.decodeSingularUInt32Field(value: &self.numDimensions) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.name) }() + case 3: try { try decoder.decodeSingularStringField(value: &self.definition) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.vector.isEmpty { - try visitor.visitPackedFloatField(value: self.vector, fieldNumber: 1) + if !self.id.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) } - if self.numDimensions != 0 { - try visitor.visitSingularUInt32Field(value: self.numDimensions, fieldNumber: 2) + if !self.name.isEmpty { + try visitor.visitSingularStringField(value: self.name, fieldNumber: 2) + } + if !self.definition.isEmpty { + try visitor.visitSingularStringField(value: self.definition, fieldNumber: 3) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_Embedding, rhs: Clarifai_Api_Embedding) -> Bool { - if lhs.vector != rhs.vector {return false} - if lhs.numDimensions != rhs.numDimensions {return false} + public static func ==(lhs: Clarifai_Api_ConceptLanguage, rhs: Clarifai_Api_ConceptLanguage) -> Bool { + if lhs.id != rhs.id {return false} + if lhs.name != rhs.name {return false} + if lhs.definition != rhs.definition {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_GeoPoint: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".GeoPoint" +extension Clarifai_Api_Data: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Data" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "longitude"), - 2: .same(proto: "latitude"), + 1: .same(proto: "image"), + 2: .same(proto: "video"), + 3: .same(proto: "concepts"), + 5: .same(proto: "metadata"), + 6: .same(proto: "geo"), + 7: .same(proto: "colors"), + 8: .same(proto: "clusters"), + 9: .same(proto: "embeddings"), + 11: .same(proto: "regions"), + 12: .same(proto: "frames"), + 13: .same(proto: "text"), + 14: .same(proto: "audio"), + 15: .same(proto: "tracks"), + 16: .standard(proto: "time_segments"), + 17: .same(proto: "hits"), + 18: .same(proto: "heatmaps"), + 19: .same(proto: "parts"), + 20: .same(proto: "ndarray"), ] + fileprivate class _StorageClass { + var _image: Clarifai_Api_Image? = nil + var _video: Clarifai_Api_Video? = nil + var _concepts: [Clarifai_Api_Concept] = [] + var _metadata: SwiftProtobuf.Google_Protobuf_Struct? = nil + var _geo: Clarifai_Api_Geo? = nil + var _colors: [Clarifai_Api_Color] = [] + var _clusters: [Clarifai_Api_Cluster] = [] + var _embeddings: [Clarifai_Api_Embedding] = [] + var _regions: [Clarifai_Api_Region] = [] + var _frames: [Clarifai_Api_Frame] = [] + var _text: Clarifai_Api_Text? = nil + var _audio: Clarifai_Api_Audio? = nil + var _tracks: [Clarifai_Api_Track] = [] + var _timeSegments: [Clarifai_Api_TimeSegment] = [] + var _hits: [Clarifai_Api_Hit] = [] + var _heatmaps: [Clarifai_Api_Image] = [] + var _parts: [Clarifai_Api_Part] = [] + var _ndarray: Clarifai_Api_NDArray? = nil + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _image = source._image + _video = source._video + _concepts = source._concepts + _metadata = source._metadata + _geo = source._geo + _colors = source._colors + _clusters = source._clusters + _embeddings = source._embeddings + _regions = source._regions + _frames = source._frames + _text = source._text + _audio = source._audio + _tracks = source._tracks + _timeSegments = source._timeSegments + _hits = source._hits + _heatmaps = source._heatmaps + _parts = source._parts + _ndarray = source._ndarray + } + } + + 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() { + _ = _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._image) }() + case 2: try { try decoder.decodeSingularMessageField(value: &_storage._video) }() + case 3: try { try decoder.decodeRepeatedMessageField(value: &_storage._concepts) }() + case 5: try { try decoder.decodeSingularMessageField(value: &_storage._metadata) }() + case 6: try { try decoder.decodeSingularMessageField(value: &_storage._geo) }() + case 7: try { try decoder.decodeRepeatedMessageField(value: &_storage._colors) }() + case 8: try { try decoder.decodeRepeatedMessageField(value: &_storage._clusters) }() + case 9: try { try decoder.decodeRepeatedMessageField(value: &_storage._embeddings) }() + case 11: try { try decoder.decodeRepeatedMessageField(value: &_storage._regions) }() + case 12: try { try decoder.decodeRepeatedMessageField(value: &_storage._frames) }() + case 13: try { try decoder.decodeSingularMessageField(value: &_storage._text) }() + case 14: try { try decoder.decodeSingularMessageField(value: &_storage._audio) }() + case 15: try { try decoder.decodeRepeatedMessageField(value: &_storage._tracks) }() + case 16: try { try decoder.decodeRepeatedMessageField(value: &_storage._timeSegments) }() + case 17: try { try decoder.decodeRepeatedMessageField(value: &_storage._hits) }() + case 18: try { try decoder.decodeRepeatedMessageField(value: &_storage._heatmaps) }() + case 19: try { try decoder.decodeRepeatedMessageField(value: &_storage._parts) }() + case 20: try { try decoder.decodeSingularMessageField(value: &_storage._ndarray) }() + 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 case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularFloatField(value: &self.longitude) }() - case 2: try { try decoder.decodeSingularFloatField(value: &self.latitude) }() - default: break + // 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._image { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } }() + try { if let v = _storage._video { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + if !_storage._concepts.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._concepts, fieldNumber: 3) + } + try { if let v = _storage._metadata { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } }() + try { if let v = _storage._geo { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + } }() + if !_storage._colors.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._colors, fieldNumber: 7) + } + if !_storage._clusters.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._clusters, fieldNumber: 8) + } + if !_storage._embeddings.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._embeddings, fieldNumber: 9) + } + if !_storage._regions.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._regions, fieldNumber: 11) + } + if !_storage._frames.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._frames, fieldNumber: 12) + } + try { if let v = _storage._text { + try visitor.visitSingularMessageField(value: v, fieldNumber: 13) + } }() + try { if let v = _storage._audio { + try visitor.visitSingularMessageField(value: v, fieldNumber: 14) + } }() + if !_storage._tracks.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._tracks, fieldNumber: 15) } - } - } - - public func traverse(visitor: inout V) throws { - if self.longitude != 0 { - try visitor.visitSingularFloatField(value: self.longitude, fieldNumber: 1) - } - if self.latitude != 0 { - try visitor.visitSingularFloatField(value: self.latitude, fieldNumber: 2) + if !_storage._timeSegments.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._timeSegments, fieldNumber: 16) + } + if !_storage._hits.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._hits, fieldNumber: 17) + } + if !_storage._heatmaps.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._heatmaps, fieldNumber: 18) + } + if !_storage._parts.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._parts, fieldNumber: 19) + } + try { if let v = _storage._ndarray { + try visitor.visitSingularMessageField(value: v, fieldNumber: 20) + } }() } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_GeoPoint, rhs: Clarifai_Api_GeoPoint) -> Bool { - if lhs.longitude != rhs.longitude {return false} - if lhs.latitude != rhs.latitude {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Clarifai_Api_GeoLimit: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".GeoLimit" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "type"), - 2: .same(proto: "value"), - ] - - 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.type) }() - case 2: try { try decoder.decodeSingularFloatField(value: &self.value) }() - default: break + public static func ==(lhs: Clarifai_Api_Data, rhs: Clarifai_Api_Data) -> 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._image != rhs_storage._image {return false} + if _storage._video != rhs_storage._video {return false} + if _storage._concepts != rhs_storage._concepts {return false} + if _storage._metadata != rhs_storage._metadata {return false} + if _storage._geo != rhs_storage._geo {return false} + if _storage._colors != rhs_storage._colors {return false} + if _storage._clusters != rhs_storage._clusters {return false} + if _storage._embeddings != rhs_storage._embeddings {return false} + if _storage._regions != rhs_storage._regions {return false} + if _storage._frames != rhs_storage._frames {return false} + if _storage._text != rhs_storage._text {return false} + if _storage._audio != rhs_storage._audio {return false} + if _storage._tracks != rhs_storage._tracks {return false} + if _storage._timeSegments != rhs_storage._timeSegments {return false} + if _storage._hits != rhs_storage._hits {return false} + if _storage._heatmaps != rhs_storage._heatmaps {return false} + if _storage._parts != rhs_storage._parts {return false} + if _storage._ndarray != rhs_storage._ndarray {return false} + return true } + if !storagesAreEqual {return false} } - } - - public func traverse(visitor: inout V) throws { - if !self.type.isEmpty { - try visitor.visitSingularStringField(value: self.type, fieldNumber: 1) - } - if self.value != 0 { - try visitor.visitSingularFloatField(value: self.value, fieldNumber: 2) - } - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_GeoLimit, rhs: Clarifai_Api_GeoLimit) -> Bool { - if lhs.type != rhs.type {return false} - if lhs.value != rhs.value {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_GeoBoxedPoint: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".GeoBoxedPoint" +extension Clarifai_Api_Part: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Part" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "geo_point"), + 1: .same(proto: "data"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -16725,7 +15711,7 @@ extension Clarifai_Api_GeoBoxedPoint: SwiftProtobuf.Message, SwiftProtobuf._Mess // 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._geoPoint) }() + case 1: try { try decoder.decodeSingularMessageField(value: &self._data) }() default: break } } @@ -16736,25 +15722,27 @@ extension Clarifai_Api_GeoBoxedPoint: SwiftProtobuf.Message, SwiftProtobuf._Mess // 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._geoPoint { + try { if let v = self._data { try visitor.visitSingularMessageField(value: v, fieldNumber: 1) } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_GeoBoxedPoint, rhs: Clarifai_Api_GeoBoxedPoint) -> Bool { - if lhs._geoPoint != rhs._geoPoint {return false} + public static func ==(lhs: Clarifai_Api_Part, rhs: Clarifai_Api_Part) -> Bool { + if lhs._data != rhs._data {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_Geo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Geo" +extension Clarifai_Api_Region: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Region" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "geo_point"), - 2: .standard(proto: "geo_limit"), - 3: .standard(proto: "geo_box"), + 1: .same(proto: "id"), + 2: .standard(proto: "region_info"), + 3: .same(proto: "data"), + 4: .same(proto: "value"), + 5: .standard(proto: "track_id"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -16763,9 +15751,11 @@ extension Clarifai_Api_Geo: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme // 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._geoPoint) }() - case 2: try { try decoder.decodeSingularMessageField(value: &self._geoLimit) }() - case 3: try { try decoder.decodeRepeatedMessageField(value: &self.geoBox) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._regionInfo) }() + case 3: try { try decoder.decodeSingularMessageField(value: &self._data) }() + case 4: try { try decoder.decodeSingularFloatField(value: &self.value) }() + case 5: try { try decoder.decodeSingularStringField(value: &self.trackID) }() default: break } } @@ -16776,107 +15766,158 @@ extension Clarifai_Api_Geo: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme // 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._geoPoint { - try visitor.visitSingularMessageField(value: v, fieldNumber: 1) - } }() - try { if let v = self._geoLimit { + if !self.id.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) + } + try { if let v = self._regionInfo { try visitor.visitSingularMessageField(value: v, fieldNumber: 2) } }() - if !self.geoBox.isEmpty { - try visitor.visitRepeatedMessageField(value: self.geoBox, fieldNumber: 3) + try { if let v = self._data { + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + } }() + if self.value != 0 { + try visitor.visitSingularFloatField(value: self.value, fieldNumber: 4) + } + if !self.trackID.isEmpty { + try visitor.visitSingularStringField(value: self.trackID, fieldNumber: 5) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_Geo, rhs: Clarifai_Api_Geo) -> Bool { - if lhs._geoPoint != rhs._geoPoint {return false} - if lhs._geoLimit != rhs._geoLimit {return false} - if lhs.geoBox != rhs.geoBox {return false} + public static func ==(lhs: Clarifai_Api_Region, rhs: Clarifai_Api_Region) -> Bool { + if lhs.id != rhs.id {return false} + if lhs._regionInfo != rhs._regionInfo {return false} + if lhs._data != rhs._data {return false} + if lhs.value != rhs.value {return false} + if lhs.trackID != rhs.trackID {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_Image: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Image" +extension Clarifai_Api_RegionInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".RegionInfo" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "url"), - 2: .same(proto: "base64"), - 4: .standard(proto: "allow_duplicate_url"), - 5: .same(proto: "hosted"), - 6: .standard(proto: "image_info"), - 7: .standard(proto: "hosted_image_info"), - 8: .standard(proto: "decoded_bytes"), + 1: .standard(proto: "bounding_box"), + 4: .same(proto: "mask"), + 5: .same(proto: "polygon"), + 6: .same(proto: "point"), + 7: .same(proto: "span"), + 8: .same(proto: "token"), + 9: .standard(proto: "keypoint_locations"), ] + fileprivate class _StorageClass { + var _boundingBox: Clarifai_Api_BoundingBox? = nil + var _mask: Clarifai_Api_Mask? = nil + var _polygon: Clarifai_Api_Polygon? = nil + var _point: Clarifai_Api_Point? = nil + var _span: Clarifai_Api_Span? = nil + var _token: Clarifai_Api_Token? = nil + var _keypointLocations: [Clarifai_Api_Point] = [] + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _boundingBox = source._boundingBox + _mask = source._mask + _polygon = source._polygon + _point = source._point + _span = source._span + _token = source._token + _keypointLocations = source._keypointLocations + } + } + + 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.url) }() - case 2: try { try decoder.decodeSingularBytesField(value: &self.base64) }() - case 4: try { try decoder.decodeSingularBoolField(value: &self.allowDuplicateURL) }() - case 5: try { try decoder.decodeSingularMessageField(value: &self._hosted) }() - case 6: try { try decoder.decodeSingularMessageField(value: &self._imageInfo) }() - case 7: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMessageMap.self, value: &self.hostedImageInfo) }() - case 8: try { try decoder.decodeSingularBytesField(value: &self.decodedBytes) }() - 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._boundingBox) }() + case 4: try { try decoder.decodeSingularMessageField(value: &_storage._mask) }() + case 5: try { try decoder.decodeSingularMessageField(value: &_storage._polygon) }() + case 6: try { try decoder.decodeSingularMessageField(value: &_storage._point) }() + case 7: try { try decoder.decodeSingularMessageField(value: &_storage._span) }() + case 8: try { try decoder.decodeSingularMessageField(value: &_storage._token) }() + case 9: try { try decoder.decodeRepeatedMessageField(value: &_storage._keypointLocations) }() + 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.url.isEmpty { - try visitor.visitSingularStringField(value: self.url, fieldNumber: 1) - } - if !self.base64.isEmpty { - try visitor.visitSingularBytesField(value: self.base64, fieldNumber: 2) - } - if self.allowDuplicateURL != false { - try visitor.visitSingularBoolField(value: self.allowDuplicateURL, fieldNumber: 4) - } - try { if let v = self._hosted { - try visitor.visitSingularMessageField(value: v, fieldNumber: 5) - } }() - try { if let v = self._imageInfo { - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) - } }() - if !self.hostedImageInfo.isEmpty { - try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMessageMap.self, value: self.hostedImageInfo, fieldNumber: 7) - } - if !self.decodedBytes.isEmpty { - try visitor.visitSingularBytesField(value: self.decodedBytes, fieldNumber: 8) + 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._boundingBox { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } }() + try { if let v = _storage._mask { + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + } }() + try { if let v = _storage._polygon { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } }() + try { if let v = _storage._point { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + } }() + try { if let v = _storage._span { + try visitor.visitSingularMessageField(value: v, fieldNumber: 7) + } }() + try { if let v = _storage._token { + try visitor.visitSingularMessageField(value: v, fieldNumber: 8) + } }() + if !_storage._keypointLocations.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._keypointLocations, fieldNumber: 9) + } } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_Image, rhs: Clarifai_Api_Image) -> Bool { - if lhs.url != rhs.url {return false} - if lhs.base64 != rhs.base64 {return false} - if lhs.allowDuplicateURL != rhs.allowDuplicateURL {return false} - if lhs._hosted != rhs._hosted {return false} - if lhs._imageInfo != rhs._imageInfo {return false} - if lhs.hostedImageInfo != rhs.hostedImageInfo {return false} - if lhs.decodedBytes != rhs.decodedBytes {return false} + public static func ==(lhs: Clarifai_Api_RegionInfo, rhs: Clarifai_Api_RegionInfo) -> 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._boundingBox != rhs_storage._boundingBox {return false} + if _storage._mask != rhs_storage._mask {return false} + if _storage._polygon != rhs_storage._polygon {return false} + if _storage._point != rhs_storage._point {return false} + if _storage._span != rhs_storage._span {return false} + if _storage._token != rhs_storage._token {return false} + if _storage._keypointLocations != rhs_storage._keypointLocations {return false} + return true + } + if !storagesAreEqual {return false} + } if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_ImageInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".ImageInfo" +extension Clarifai_Api_BoundingBox: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".BoundingBox" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "width"), - 2: .same(proto: "height"), - 3: .same(proto: "format"), - 4: .standard(proto: "color_mode"), - 5: .same(proto: "mode"), + 1: .standard(proto: "top_row"), + 2: .standard(proto: "left_col"), + 3: .standard(proto: "bottom_row"), + 4: .standard(proto: "right_col"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -16885,53 +15926,46 @@ extension Clarifai_Api_ImageInfo: 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.decodeSingularInt32Field(value: &self.width) }() - case 2: try { try decoder.decodeSingularInt32Field(value: &self.height) }() - case 3: try { try decoder.decodeSingularStringField(value: &self.format) }() - case 4: try { try decoder.decodeSingularStringField(value: &self.colorMode) }() - case 5: try { try decoder.decodeSingularStringField(value: &self.mode) }() + case 1: try { try decoder.decodeSingularFloatField(value: &self.topRow) }() + case 2: try { try decoder.decodeSingularFloatField(value: &self.leftCol) }() + case 3: try { try decoder.decodeSingularFloatField(value: &self.bottomRow) }() + case 4: try { try decoder.decodeSingularFloatField(value: &self.rightCol) }() default: break } } } public func traverse(visitor: inout V) throws { - if self.width != 0 { - try visitor.visitSingularInt32Field(value: self.width, fieldNumber: 1) - } - if self.height != 0 { - try visitor.visitSingularInt32Field(value: self.height, fieldNumber: 2) + if self.topRow != 0 { + try visitor.visitSingularFloatField(value: self.topRow, fieldNumber: 1) } - if !self.format.isEmpty { - try visitor.visitSingularStringField(value: self.format, fieldNumber: 3) + if self.leftCol != 0 { + try visitor.visitSingularFloatField(value: self.leftCol, fieldNumber: 2) } - if !self.colorMode.isEmpty { - try visitor.visitSingularStringField(value: self.colorMode, fieldNumber: 4) + if self.bottomRow != 0 { + try visitor.visitSingularFloatField(value: self.bottomRow, fieldNumber: 3) } - if !self.mode.isEmpty { - try visitor.visitSingularStringField(value: self.mode, fieldNumber: 5) + if self.rightCol != 0 { + try visitor.visitSingularFloatField(value: self.rightCol, fieldNumber: 4) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_ImageInfo, rhs: Clarifai_Api_ImageInfo) -> Bool { - if lhs.width != rhs.width {return false} - if lhs.height != rhs.height {return false} - if lhs.format != rhs.format {return false} - if lhs.colorMode != rhs.colorMode {return false} - if lhs.mode != rhs.mode {return false} + public static func ==(lhs: Clarifai_Api_BoundingBox, rhs: Clarifai_Api_BoundingBox) -> Bool { + if lhs.topRow != rhs.topRow {return false} + if lhs.leftCol != rhs.leftCol {return false} + if lhs.bottomRow != rhs.bottomRow {return false} + if lhs.rightCol != rhs.rightCol {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_HostedURL: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".HostedURL" +extension Clarifai_Api_FrameInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".FrameInfo" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "prefix"), - 2: .same(proto: "suffix"), - 3: .same(proto: "sizes"), - 4: .same(proto: "crossorigin"), + 1: .same(proto: "index"), + 2: .same(proto: "time"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -16940,153 +15974,85 @@ extension Clarifai_Api_HostedURL: 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.decodeSingularStringField(value: &self.prefix) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.suffix) }() - case 3: try { try decoder.decodeRepeatedStringField(value: &self.sizes) }() - case 4: try { try decoder.decodeSingularStringField(value: &self.crossorigin) }() + case 1: try { try decoder.decodeSingularUInt32Field(value: &self.index) }() + case 2: try { try decoder.decodeSingularUInt32Field(value: &self.time) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.prefix.isEmpty { - try visitor.visitSingularStringField(value: self.prefix, fieldNumber: 1) - } - if !self.suffix.isEmpty { - try visitor.visitSingularStringField(value: self.suffix, fieldNumber: 2) - } - if !self.sizes.isEmpty { - try visitor.visitRepeatedStringField(value: self.sizes, fieldNumber: 3) + if self.index != 0 { + try visitor.visitSingularUInt32Field(value: self.index, fieldNumber: 1) } - if !self.crossorigin.isEmpty { - try visitor.visitSingularStringField(value: self.crossorigin, fieldNumber: 4) + if self.time != 0 { + try visitor.visitSingularUInt32Field(value: self.time, fieldNumber: 2) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_HostedURL, rhs: Clarifai_Api_HostedURL) -> Bool { - if lhs.prefix != rhs.prefix {return false} - if lhs.suffix != rhs.suffix {return false} - if lhs.sizes != rhs.sizes {return false} - if lhs.crossorigin != rhs.crossorigin {return false} + public static func ==(lhs: Clarifai_Api_FrameInfo, rhs: Clarifai_Api_FrameInfo) -> Bool { + if lhs.index != rhs.index {return false} + if lhs.time != rhs.time {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_Input: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Input" +extension Clarifai_Api_Frame: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Frame" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), + 1: .standard(proto: "frame_info"), 2: .same(proto: "data"), - 4: .standard(proto: "created_at"), - 5: .standard(proto: "modified_at"), - 6: .same(proto: "status"), - 7: .standard(proto: "dataset_ids"), + 3: .same(proto: "id"), ] - fileprivate class _StorageClass { - var _id: String = String() - var _data: Clarifai_Api_Data? = nil - var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _modifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _status: Clarifai_Api_Status_Status? = nil - var _datasetIds: [String] = [] - - static let defaultInstance = _StorageClass() - - private init() {} - - init(copying source: _StorageClass) { - _id = source._id - _data = source._data - _createdAt = source._createdAt - _modifiedAt = source._modifiedAt - _status = source._status - _datasetIds = source._datasetIds - } - } - - 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.decodeSingularStringField(value: &_storage._id) }() - case 2: try { try decoder.decodeSingularMessageField(value: &_storage._data) }() - case 4: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() - case 5: try { try decoder.decodeSingularMessageField(value: &_storage._modifiedAt) }() - case 6: try { try decoder.decodeSingularMessageField(value: &_storage._status) }() - case 7: try { try decoder.decodeRepeatedStringField(value: &_storage._datasetIds) }() - default: break - } + 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._frameInfo) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._data) }() + case 3: try { try decoder.decodeSingularStringField(value: &self.id) }() + 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.isEmpty { - try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) - } - try { if let v = _storage._data { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - try { if let v = _storage._createdAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 4) - } }() - try { if let v = _storage._modifiedAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 5) - } }() - try { if let v = _storage._status { - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) - } }() - if !_storage._datasetIds.isEmpty { - try visitor.visitRepeatedStringField(value: _storage._datasetIds, fieldNumber: 7) - } + // 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._frameInfo { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } }() + try { if let v = self._data { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + if !self.id.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 3) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_Input, rhs: Clarifai_Api_Input) -> 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._data != rhs_storage._data {return false} - if _storage._createdAt != rhs_storage._createdAt {return false} - if _storage._modifiedAt != rhs_storage._modifiedAt {return false} - if _storage._status != rhs_storage._status {return false} - if _storage._datasetIds != rhs_storage._datasetIds {return false} - return true - } - if !storagesAreEqual {return false} - } + public static func ==(lhs: Clarifai_Api_Frame, rhs: Clarifai_Api_Frame) -> Bool { + if lhs._frameInfo != rhs._frameInfo {return false} + if lhs._data != rhs._data {return false} + if lhs.id != rhs.id {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_InputBatch: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".InputBatch" +extension Clarifai_Api_NDArray: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".NDArray" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "inputs"), + 1: .same(proto: "buffer"), + 2: .same(proto: "shape"), + 3: .same(proto: "dtype"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -17095,37 +16061,40 @@ extension Clarifai_Api_InputBatch: 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.inputs) }() + case 1: try { try decoder.decodeSingularBytesField(value: &self.buffer) }() + case 2: try { try decoder.decodeRepeatedUInt32Field(value: &self.shape) }() + case 3: try { try decoder.decodeSingularStringField(value: &self.dtype) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.inputs.isEmpty { - try visitor.visitRepeatedMessageField(value: self.inputs, fieldNumber: 1) + if !self.buffer.isEmpty { + try visitor.visitSingularBytesField(value: self.buffer, fieldNumber: 1) + } + if !self.shape.isEmpty { + try visitor.visitPackedUInt32Field(value: self.shape, fieldNumber: 2) + } + if !self.dtype.isEmpty { + try visitor.visitSingularStringField(value: self.dtype, fieldNumber: 3) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_InputBatch, rhs: Clarifai_Api_InputBatch) -> Bool { - if lhs.inputs != rhs.inputs {return false} + public static func ==(lhs: Clarifai_Api_NDArray, rhs: Clarifai_Api_NDArray) -> Bool { + if lhs.buffer != rhs.buffer {return false} + if lhs.shape != rhs.shape {return false} + if lhs.dtype != rhs.dtype {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_InputCount: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".InputCount" +extension Clarifai_Api_Mask: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Mask" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "processed"), - 2: .standard(proto: "to_process"), - 3: .same(proto: "errors"), - 4: .same(proto: "processing"), - 5: .same(proto: "reindexed"), - 6: .standard(proto: "to_reindex"), - 7: .standard(proto: "reindex_errors"), - 8: .same(proto: "reindexing"), + 2: .same(proto: "image"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -17134,258 +16103,127 @@ extension Clarifai_Api_InputCount: 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.decodeSingularUInt32Field(value: &self.processed) }() - case 2: try { try decoder.decodeSingularUInt32Field(value: &self.toProcess) }() - case 3: try { try decoder.decodeSingularUInt32Field(value: &self.errors) }() - case 4: try { try decoder.decodeSingularUInt32Field(value: &self.processing) }() - case 5: try { try decoder.decodeSingularUInt32Field(value: &self.reindexed) }() - case 6: try { try decoder.decodeSingularUInt32Field(value: &self.toReindex) }() - case 7: try { try decoder.decodeSingularUInt32Field(value: &self.reindexErrors) }() - case 8: try { try decoder.decodeSingularUInt32Field(value: &self.reindexing) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._image) }() default: break } } } public func traverse(visitor: inout V) throws { - if self.processed != 0 { - try visitor.visitSingularUInt32Field(value: self.processed, fieldNumber: 1) - } - if self.toProcess != 0 { - try visitor.visitSingularUInt32Field(value: self.toProcess, fieldNumber: 2) - } - if self.errors != 0 { - try visitor.visitSingularUInt32Field(value: self.errors, fieldNumber: 3) - } - if self.processing != 0 { - try visitor.visitSingularUInt32Field(value: self.processing, fieldNumber: 4) - } - if self.reindexed != 0 { - try visitor.visitSingularUInt32Field(value: self.reindexed, fieldNumber: 5) - } - if self.toReindex != 0 { - try visitor.visitSingularUInt32Field(value: self.toReindex, fieldNumber: 6) - } - if self.reindexErrors != 0 { - try visitor.visitSingularUInt32Field(value: self.reindexErrors, fieldNumber: 7) - } - if self.reindexing != 0 { - try visitor.visitSingularUInt32Field(value: self.reindexing, fieldNumber: 8) - } + // 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._image { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_InputCount, rhs: Clarifai_Api_InputCount) -> Bool { - if lhs.processed != rhs.processed {return false} - if lhs.toProcess != rhs.toProcess {return false} - if lhs.errors != rhs.errors {return false} - if lhs.processing != rhs.processing {return false} - if lhs.reindexed != rhs.reindexed {return false} - if lhs.toReindex != rhs.toReindex {return false} - if lhs.reindexErrors != rhs.reindexErrors {return false} - if lhs.reindexing != rhs.reindexing {return false} + public static func ==(lhs: Clarifai_Api_Mask, rhs: Clarifai_Api_Mask) -> Bool { + if lhs._image != rhs._image {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_Dataset: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Dataset" +extension Clarifai_Api_Polygon: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Polygon" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .standard(proto: "created_at"), - 3: .standard(proto: "modified_at"), - 4: .standard(proto: "app_id"), - 5: .standard(proto: "user_id"), - 7: .same(proto: "description"), - 8: .same(proto: "metadata"), - 9: .same(proto: "visibility"), - 12: .standard(proto: "default_annotation_filter"), - 16: .standard(proto: "default_processing_info"), - 11: .same(proto: "notes"), - 13: .same(proto: "version"), - 14: .standard(proto: "is_starred"), - 15: .standard(proto: "star_count"), - 17: .standard(proto: "bookmark_origin"), - 18: .same(proto: "image"), + 1: .same(proto: "points"), ] - fileprivate class _StorageClass { - var _id: String = String() - var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _modifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _appID: String = String() - var _userID: String = String() - var _description_p: String = String() - var _metadata: SwiftProtobuf.Google_Protobuf_Struct? = nil - var _visibility: Clarifai_Api_Visibility? = nil - var _defaultAnnotationFilter: Clarifai_Api_AnnotationFilter? = nil - var _defaultProcessingInfo: Clarifai_Api_DatasetVersionProcessingInfo? = nil - var _notes: String = String() - var _version: Clarifai_Api_DatasetVersion? = nil - var _isStarred: Bool = false - var _starCount: Int32 = 0 - var _bookmarkOrigin: Clarifai_Api_BookmarkOrigin? = nil - var _image: Clarifai_Api_Image? = nil - - static let defaultInstance = _StorageClass() - - private init() {} - - init(copying source: _StorageClass) { - _id = source._id - _createdAt = source._createdAt - _modifiedAt = source._modifiedAt - _appID = source._appID - _userID = source._userID - _description_p = source._description_p - _metadata = source._metadata - _visibility = source._visibility - _defaultAnnotationFilter = source._defaultAnnotationFilter - _defaultProcessingInfo = source._defaultProcessingInfo - _notes = source._notes - _version = source._version - _isStarred = source._isStarred - _starCount = source._starCount - _bookmarkOrigin = source._bookmarkOrigin - _image = source._image + 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.points) }() + default: break + } } } - fileprivate mutating func _uniqueStorage() -> _StorageClass { - if !isKnownUniquelyReferenced(&_storage) { - _storage = _StorageClass(copying: _storage) + public func traverse(visitor: inout V) throws { + if !self.points.isEmpty { + try visitor.visitRepeatedMessageField(value: self.points, fieldNumber: 1) } - return _storage + try unknownFields.traverse(visitor: &visitor) } - 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.decodeSingularStringField(value: &_storage._id) }() - case 2: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() - case 3: try { try decoder.decodeSingularMessageField(value: &_storage._modifiedAt) }() - case 4: try { try decoder.decodeSingularStringField(value: &_storage._appID) }() - case 5: try { try decoder.decodeSingularStringField(value: &_storage._userID) }() - case 7: try { try decoder.decodeSingularStringField(value: &_storage._description_p) }() - case 8: try { try decoder.decodeSingularMessageField(value: &_storage._metadata) }() - case 9: try { try decoder.decodeSingularMessageField(value: &_storage._visibility) }() - case 11: try { try decoder.decodeSingularStringField(value: &_storage._notes) }() - case 12: try { try decoder.decodeSingularMessageField(value: &_storage._defaultAnnotationFilter) }() - case 13: try { try decoder.decodeSingularMessageField(value: &_storage._version) }() - case 14: try { try decoder.decodeSingularBoolField(value: &_storage._isStarred) }() - case 15: try { try decoder.decodeSingularInt32Field(value: &_storage._starCount) }() - case 16: try { try decoder.decodeSingularMessageField(value: &_storage._defaultProcessingInfo) }() - case 17: try { try decoder.decodeSingularMessageField(value: &_storage._bookmarkOrigin) }() - case 18: try { try decoder.decodeSingularMessageField(value: &_storage._image) }() - default: break - } - } - } + public static func ==(lhs: Clarifai_Api_Polygon, rhs: Clarifai_Api_Polygon) -> Bool { + if lhs.points != rhs.points {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true } +} - 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.isEmpty { - try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) - } - try { if let v = _storage._createdAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - try { if let v = _storage._modifiedAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - } }() - if !_storage._appID.isEmpty { - try visitor.visitSingularStringField(value: _storage._appID, fieldNumber: 4) - } - if !_storage._userID.isEmpty { - try visitor.visitSingularStringField(value: _storage._userID, fieldNumber: 5) - } - if !_storage._description_p.isEmpty { - try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 7) - } - try { if let v = _storage._metadata { - try visitor.visitSingularMessageField(value: v, fieldNumber: 8) - } }() - try { if let v = _storage._visibility { - try visitor.visitSingularMessageField(value: v, fieldNumber: 9) - } }() - if !_storage._notes.isEmpty { - try visitor.visitSingularStringField(value: _storage._notes, fieldNumber: 11) - } - try { if let v = _storage._defaultAnnotationFilter { - try visitor.visitSingularMessageField(value: v, fieldNumber: 12) - } }() - try { if let v = _storage._version { - try visitor.visitSingularMessageField(value: v, fieldNumber: 13) - } }() - if _storage._isStarred != false { - try visitor.visitSingularBoolField(value: _storage._isStarred, fieldNumber: 14) - } - if _storage._starCount != 0 { - try visitor.visitSingularInt32Field(value: _storage._starCount, fieldNumber: 15) +extension Clarifai_Api_Point: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Point" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "row"), + 2: .same(proto: "col"), + 3: .same(proto: "z"), + 4: .same(proto: "visibility"), + ] + + 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.decodeSingularFloatField(value: &self.row) }() + case 2: try { try decoder.decodeSingularFloatField(value: &self.col) }() + case 3: try { try decoder.decodeSingularFloatField(value: &self.z) }() + case 4: try { try decoder.decodeSingularEnumField(value: &self.visibility) }() + default: break } - try { if let v = _storage._defaultProcessingInfo { - try visitor.visitSingularMessageField(value: v, fieldNumber: 16) - } }() - try { if let v = _storage._bookmarkOrigin { - try visitor.visitSingularMessageField(value: v, fieldNumber: 17) - } }() - try { if let v = _storage._image { - try visitor.visitSingularMessageField(value: v, fieldNumber: 18) - } }() } - try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_Dataset, rhs: Clarifai_Api_Dataset) -> 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._modifiedAt != rhs_storage._modifiedAt {return false} - if _storage._appID != rhs_storage._appID {return false} - if _storage._userID != rhs_storage._userID {return false} - if _storage._description_p != rhs_storage._description_p {return false} - if _storage._metadata != rhs_storage._metadata {return false} - if _storage._visibility != rhs_storage._visibility {return false} - if _storage._defaultAnnotationFilter != rhs_storage._defaultAnnotationFilter {return false} - if _storage._defaultProcessingInfo != rhs_storage._defaultProcessingInfo {return false} - if _storage._notes != rhs_storage._notes {return false} - if _storage._version != rhs_storage._version {return false} - if _storage._isStarred != rhs_storage._isStarred {return false} - if _storage._starCount != rhs_storage._starCount {return false} - if _storage._bookmarkOrigin != rhs_storage._bookmarkOrigin {return false} - if _storage._image != rhs_storage._image {return false} - return true - } - if !storagesAreEqual {return false} + public func traverse(visitor: inout V) throws { + if self.row != 0 { + try visitor.visitSingularFloatField(value: self.row, fieldNumber: 1) + } + if self.col != 0 { + try visitor.visitSingularFloatField(value: self.col, fieldNumber: 2) + } + if self.z != 0 { + try visitor.visitSingularFloatField(value: self.z, fieldNumber: 3) + } + if self.visibility != .notSet { + try visitor.visitSingularEnumField(value: self.visibility, fieldNumber: 4) } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Clarifai_Api_Point, rhs: Clarifai_Api_Point) -> Bool { + if lhs.row != rhs.row {return false} + if lhs.col != rhs.col {return false} + if lhs.z != rhs.z {return false} + if lhs.visibility != rhs.visibility {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_AnnotationFilter: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".AnnotationFilter" +extension Clarifai_Api_Point.Visibility: SwiftProtobuf._ProtoNameProviding { public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .standard(proto: "created_at"), - 3: .standard(proto: "modified_at"), - 4: .standard(proto: "user_id"), - 5: .standard(proto: "app_id"), - 9: .same(proto: "search"), + 0: .same(proto: "NOT_SET"), + 1: .same(proto: "VISIBLE"), + 2: .same(proto: "NOT_VISIBLE"), + 3: .same(proto: "NOT_PRESENT"), + ] +} + +extension Clarifai_Api_Span: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Span" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "char_start"), + 2: .standard(proto: "char_end"), + 3: .standard(proto: "raw_text"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -17394,60 +16232,42 @@ extension Clarifai_Api_AnnotationFilter: SwiftProtobuf.Message, SwiftProtobuf._M // 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.id) }() - case 2: try { try decoder.decodeSingularMessageField(value: &self._createdAt) }() - case 3: try { try decoder.decodeSingularMessageField(value: &self._modifiedAt) }() - case 4: try { try decoder.decodeSingularStringField(value: &self.userID) }() - case 5: try { try decoder.decodeSingularStringField(value: &self.appID) }() - case 9: try { try decoder.decodeSingularMessageField(value: &self._search) }() + case 1: try { try decoder.decodeSingularUInt32Field(value: &self.charStart) }() + case 2: try { try decoder.decodeSingularUInt32Field(value: &self.charEnd) }() + case 3: try { try decoder.decodeSingularStringField(value: &self.rawText) }() 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.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) + if self.charStart != 0 { + try visitor.visitSingularUInt32Field(value: self.charStart, fieldNumber: 1) } - try { if let v = self._createdAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - try { if let v = self._modifiedAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - } }() - if !self.userID.isEmpty { - try visitor.visitSingularStringField(value: self.userID, fieldNumber: 4) + if self.charEnd != 0 { + try visitor.visitSingularUInt32Field(value: self.charEnd, fieldNumber: 2) } - if !self.appID.isEmpty { - try visitor.visitSingularStringField(value: self.appID, fieldNumber: 5) + if !self.rawText.isEmpty { + try visitor.visitSingularStringField(value: self.rawText, fieldNumber: 3) } - try { if let v = self._search { - try visitor.visitSingularMessageField(value: v, fieldNumber: 9) - } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_AnnotationFilter, rhs: Clarifai_Api_AnnotationFilter) -> Bool { - if lhs.id != rhs.id {return false} - if lhs._createdAt != rhs._createdAt {return false} - if lhs._modifiedAt != rhs._modifiedAt {return false} - if lhs.userID != rhs.userID {return false} - if lhs.appID != rhs.appID {return false} - if lhs._search != rhs._search {return false} + public static func ==(lhs: Clarifai_Api_Span, rhs: Clarifai_Api_Span) -> Bool { + if lhs.charStart != rhs.charStart {return false} + if lhs.charEnd != rhs.charEnd {return false} + if lhs.rawText != rhs.rawText {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_DatasetInput: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".DatasetInput" +extension Clarifai_Api_Token: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Token" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "created_at"), - 2: .same(proto: "input"), + 1: .standard(proto: "char_start"), + 2: .standard(proto: "char_end"), + 3: .standard(proto: "raw_text"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -17456,257 +16276,154 @@ extension Clarifai_Api_DatasetInput: SwiftProtobuf.Message, SwiftProtobuf._Messa // 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._createdAt) }() - case 2: try { try decoder.decodeSingularMessageField(value: &self._input) }() + case 1: try { try decoder.decodeSingularUInt32Field(value: &self.charStart) }() + case 2: try { try decoder.decodeSingularUInt32Field(value: &self.charEnd) }() + case 3: try { try decoder.decodeSingularStringField(value: &self.rawText) }() 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._createdAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 1) - } }() - try { if let v = self._input { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() + if self.charStart != 0 { + try visitor.visitSingularUInt32Field(value: self.charStart, fieldNumber: 1) + } + if self.charEnd != 0 { + try visitor.visitSingularUInt32Field(value: self.charEnd, fieldNumber: 2) + } + if !self.rawText.isEmpty { + try visitor.visitSingularStringField(value: self.rawText, fieldNumber: 3) + } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_DatasetInput, rhs: Clarifai_Api_DatasetInput) -> Bool { - if lhs._createdAt != rhs._createdAt {return false} - if lhs._input != rhs._input {return false} + public static func ==(lhs: Clarifai_Api_Token, rhs: Clarifai_Api_Token) -> Bool { + if lhs.charStart != rhs.charStart {return false} + if lhs.charEnd != rhs.charEnd {return false} + if lhs.rawText != rhs.rawText {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_DatasetVersion: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".DatasetVersion" +extension Clarifai_Api_Embedding: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Embedding" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .standard(proto: "created_at"), - 3: .standard(proto: "modified_at"), - 4: .standard(proto: "app_id"), - 5: .standard(proto: "user_id"), - 6: .standard(proto: "dataset_id"), - 15: .standard(proto: "annotation_filter_config"), - 18: .standard(proto: "model_predict_config"), - 8: .same(proto: "status"), - 10: .same(proto: "description"), - 19: .standard(proto: "processing_info"), - 16: .same(proto: "metrics"), - 17: .standard(proto: "export_info"), - 12: .same(proto: "metadata"), - 13: .same(proto: "visibility"), - 14: .standard(proto: "embed_model_version_ids"), - 20: .standard(proto: "request_origin"), + 1: .same(proto: "vector"), + 2: .standard(proto: "num_dimensions"), ] - fileprivate class _StorageClass { - var _id: String = String() - var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _modifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _appID: String = String() - var _userID: String = String() - var _datasetID: String = String() - var _dataConfig: Clarifai_Api_DatasetVersion.OneOf_DataConfig? - var _status: Clarifai_Api_Status_Status? = nil - var _description_p: String = String() - var _processingInfo: Clarifai_Api_DatasetVersionProcessingInfo? = nil - var _metrics: Dictionary = [:] - var _exportInfo: Clarifai_Api_DatasetVersionExportInfo? = nil - var _metadata: SwiftProtobuf.Google_Protobuf_Struct? = nil - var _visibility: Clarifai_Api_Visibility? = nil - var _embedModelVersionIds: [String] = [] - var _requestOrigin: Clarifai_Api_DatasetVersionRequestOrigin = .notSet - - static let defaultInstance = _StorageClass() + 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.decodeRepeatedFloatField(value: &self.vector) }() + case 2: try { try decoder.decodeSingularUInt32Field(value: &self.numDimensions) }() + default: break + } + } + } - private init() {} + public func traverse(visitor: inout V) throws { + if !self.vector.isEmpty { + try visitor.visitPackedFloatField(value: self.vector, fieldNumber: 1) + } + if self.numDimensions != 0 { + try visitor.visitSingularUInt32Field(value: self.numDimensions, fieldNumber: 2) + } + try unknownFields.traverse(visitor: &visitor) + } - init(copying source: _StorageClass) { - _id = source._id - _createdAt = source._createdAt - _modifiedAt = source._modifiedAt - _appID = source._appID - _userID = source._userID - _datasetID = source._datasetID - _dataConfig = source._dataConfig - _status = source._status - _description_p = source._description_p - _processingInfo = source._processingInfo - _metrics = source._metrics - _exportInfo = source._exportInfo - _metadata = source._metadata - _visibility = source._visibility - _embedModelVersionIds = source._embedModelVersionIds - _requestOrigin = source._requestOrigin + public static func ==(lhs: Clarifai_Api_Embedding, rhs: Clarifai_Api_Embedding) -> Bool { + if lhs.vector != rhs.vector {return false} + if lhs.numDimensions != rhs.numDimensions {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Clarifai_Api_GeoPoint: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".GeoPoint" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "longitude"), + 2: .same(proto: "latitude"), + ] + + 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.decodeSingularFloatField(value: &self.longitude) }() + case 2: try { try decoder.decodeSingularFloatField(value: &self.latitude) }() + default: break + } } } - fileprivate mutating func _uniqueStorage() -> _StorageClass { - if !isKnownUniquelyReferenced(&_storage) { - _storage = _StorageClass(copying: _storage) + public func traverse(visitor: inout V) throws { + if self.longitude != 0 { + try visitor.visitSingularFloatField(value: self.longitude, fieldNumber: 1) } - return _storage + if self.latitude != 0 { + try visitor.visitSingularFloatField(value: self.latitude, fieldNumber: 2) + } + try unknownFields.traverse(visitor: &visitor) } + public static func ==(lhs: Clarifai_Api_GeoPoint, rhs: Clarifai_Api_GeoPoint) -> Bool { + if lhs.longitude != rhs.longitude {return false} + if lhs.latitude != rhs.latitude {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Clarifai_Api_GeoLimit: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".GeoLimit" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "type"), + 2: .same(proto: "value"), + ] + 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.decodeSingularStringField(value: &_storage._id) }() - case 2: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() - case 3: try { try decoder.decodeSingularMessageField(value: &_storage._modifiedAt) }() - case 4: try { try decoder.decodeSingularStringField(value: &_storage._appID) }() - case 5: try { try decoder.decodeSingularStringField(value: &_storage._userID) }() - case 6: try { try decoder.decodeSingularStringField(value: &_storage._datasetID) }() - case 8: try { try decoder.decodeSingularMessageField(value: &_storage._status) }() - case 10: try { try decoder.decodeSingularStringField(value: &_storage._description_p) }() - case 12: try { try decoder.decodeSingularMessageField(value: &_storage._metadata) }() - case 13: try { try decoder.decodeSingularMessageField(value: &_storage._visibility) }() - case 14: try { try decoder.decodeRepeatedStringField(value: &_storage._embedModelVersionIds) }() - case 15: try { - var v: Clarifai_Api_AnnotationFilterConfig? - var hadOneofValue = false - if let current = _storage._dataConfig { - hadOneofValue = true - if case .annotationFilterConfig(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - _storage._dataConfig = .annotationFilterConfig(v) - } - }() - case 16: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMessageMap.self, value: &_storage._metrics) }() - case 17: try { try decoder.decodeSingularMessageField(value: &_storage._exportInfo) }() - case 18: try { - var v: Clarifai_Api_ModelPredictConfig? - var hadOneofValue = false - if let current = _storage._dataConfig { - hadOneofValue = true - if case .modelPredictConfig(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - _storage._dataConfig = .modelPredictConfig(v) - } - }() - case 19: try { try decoder.decodeSingularMessageField(value: &_storage._processingInfo) }() - case 20: try { try decoder.decodeSingularEnumField(value: &_storage._requestOrigin) }() - default: break - } + 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.type) }() + case 2: try { try decoder.decodeSingularFloatField(value: &self.value) }() + 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.isEmpty { - try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) - } - try { if let v = _storage._createdAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - try { if let v = _storage._modifiedAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - } }() - if !_storage._appID.isEmpty { - try visitor.visitSingularStringField(value: _storage._appID, fieldNumber: 4) - } - if !_storage._userID.isEmpty { - try visitor.visitSingularStringField(value: _storage._userID, fieldNumber: 5) - } - if !_storage._datasetID.isEmpty { - try visitor.visitSingularStringField(value: _storage._datasetID, fieldNumber: 6) - } - try { if let v = _storage._status { - try visitor.visitSingularMessageField(value: v, fieldNumber: 8) - } }() - if !_storage._description_p.isEmpty { - try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 10) - } - try { if let v = _storage._metadata { - try visitor.visitSingularMessageField(value: v, fieldNumber: 12) - } }() - try { if let v = _storage._visibility { - try visitor.visitSingularMessageField(value: v, fieldNumber: 13) - } }() - if !_storage._embedModelVersionIds.isEmpty { - try visitor.visitRepeatedStringField(value: _storage._embedModelVersionIds, fieldNumber: 14) - } - try { if case .annotationFilterConfig(let v)? = _storage._dataConfig { - try visitor.visitSingularMessageField(value: v, fieldNumber: 15) - } }() - if !_storage._metrics.isEmpty { - try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMessageMap.self, value: _storage._metrics, fieldNumber: 16) - } - try { if let v = _storage._exportInfo { - try visitor.visitSingularMessageField(value: v, fieldNumber: 17) - } }() - try { if case .modelPredictConfig(let v)? = _storage._dataConfig { - try visitor.visitSingularMessageField(value: v, fieldNumber: 18) - } }() - try { if let v = _storage._processingInfo { - try visitor.visitSingularMessageField(value: v, fieldNumber: 19) - } }() - if _storage._requestOrigin != .notSet { - try visitor.visitSingularEnumField(value: _storage._requestOrigin, fieldNumber: 20) - } + if !self.type.isEmpty { + try visitor.visitSingularStringField(value: self.type, fieldNumber: 1) + } + if self.value != 0 { + try visitor.visitSingularFloatField(value: self.value, fieldNumber: 2) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_DatasetVersion, rhs: Clarifai_Api_DatasetVersion) -> 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._modifiedAt != rhs_storage._modifiedAt {return false} - if _storage._appID != rhs_storage._appID {return false} - if _storage._userID != rhs_storage._userID {return false} - if _storage._datasetID != rhs_storage._datasetID {return false} - if _storage._dataConfig != rhs_storage._dataConfig {return false} - if _storage._status != rhs_storage._status {return false} - if _storage._description_p != rhs_storage._description_p {return false} - if _storage._processingInfo != rhs_storage._processingInfo {return false} - if _storage._metrics != rhs_storage._metrics {return false} - if _storage._exportInfo != rhs_storage._exportInfo {return false} - if _storage._metadata != rhs_storage._metadata {return false} - if _storage._visibility != rhs_storage._visibility {return false} - if _storage._embedModelVersionIds != rhs_storage._embedModelVersionIds {return false} - if _storage._requestOrigin != rhs_storage._requestOrigin {return false} - return true - } - if !storagesAreEqual {return false} - } + public static func ==(lhs: Clarifai_Api_GeoLimit, rhs: Clarifai_Api_GeoLimit) -> Bool { + if lhs.type != rhs.type {return false} + if lhs.value != rhs.value {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_AnnotationFilterConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".AnnotationFilterConfig" +extension Clarifai_Api_GeoBoxedPoint: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".GeoBoxedPoint" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "annotation_filter"), - 2: .standard(proto: "ignore_empty_inputs"), + 1: .standard(proto: "geo_point"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -17715,8 +16432,7 @@ extension Clarifai_Api_AnnotationFilterConfig: SwiftProtobuf.Message, SwiftProto // 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._annotationFilter) }() - case 2: try { try decoder.decodeSingularBoolField(value: &self.ignoreEmptyInputs) }() + case 1: try { try decoder.decodeSingularMessageField(value: &self._geoPoint) }() default: break } } @@ -17727,302 +16443,147 @@ extension Clarifai_Api_AnnotationFilterConfig: SwiftProtobuf.Message, SwiftProto // 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._annotationFilter { + try { if let v = self._geoPoint { try visitor.visitSingularMessageField(value: v, fieldNumber: 1) } }() - if self.ignoreEmptyInputs != false { - try visitor.visitSingularBoolField(value: self.ignoreEmptyInputs, fieldNumber: 2) - } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_AnnotationFilterConfig, rhs: Clarifai_Api_AnnotationFilterConfig) -> Bool { - if lhs._annotationFilter != rhs._annotationFilter {return false} - if lhs.ignoreEmptyInputs != rhs.ignoreEmptyInputs {return false} + public static func ==(lhs: Clarifai_Api_GeoBoxedPoint, rhs: Clarifai_Api_GeoBoxedPoint) -> Bool { + if lhs._geoPoint != rhs._geoPoint {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_ModelPredictConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".ModelPredictConfig" +extension Clarifai_Api_Geo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Geo" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "model"), + 1: .standard(proto: "geo_point"), + 2: .standard(proto: "geo_limit"), + 3: .standard(proto: "geo_box"), ] - fileprivate class _StorageClass { - var _model: Clarifai_Api_Model? = nil - - static let defaultInstance = _StorageClass() - - private init() {} - - init(copying source: _StorageClass) { - _model = source._model - } - } - - 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.decodeSingularMessageField(value: &_storage._model) }() - default: break - } + 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._geoPoint) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._geoLimit) }() + case 3: try { try decoder.decodeRepeatedMessageField(value: &self.geoBox) }() + 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 - try { if let v = _storage._model { - try visitor.visitSingularMessageField(value: v, fieldNumber: 1) - } }() + // 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._geoPoint { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } }() + try { if let v = self._geoLimit { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + if !self.geoBox.isEmpty { + try visitor.visitRepeatedMessageField(value: self.geoBox, fieldNumber: 3) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_ModelPredictConfig, rhs: Clarifai_Api_ModelPredictConfig) -> 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._model != rhs_storage._model {return false} - return true - } - if !storagesAreEqual {return false} - } + public static func ==(lhs: Clarifai_Api_Geo, rhs: Clarifai_Api_Geo) -> Bool { + if lhs._geoPoint != rhs._geoPoint {return false} + if lhs._geoLimit != rhs._geoLimit {return false} + if lhs.geoBox != rhs.geoBox {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_DatasetVersionMetrics: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".DatasetVersionMetrics" +extension Clarifai_Api_Image: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Image" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "inputs_count"), - 6: .standard(proto: "unlabeled_inputs_count"), - 8: .standard(proto: "inputs_with_metadata_count"), - 9: .standard(proto: "inputs_with_geo_count"), - 20: .standard(proto: "regions_count"), - 21: .standard(proto: "region_location_matrix"), - 22: .standard(proto: "bounding_boxes_count"), - 23: .standard(proto: "polygons_count"), - 24: .standard(proto: "points_count"), - 25: .standard(proto: "masks_count"), - 60: .standard(proto: "region_inputs_count"), - 61: .standard(proto: "region_frames_count"), - 30: .standard(proto: "frames_count"), - 70: .standard(proto: "frame_inputs_count"), - 40: .standard(proto: "embeddings_count"), - 50: .standard(proto: "positive_input_tags_count"), - 51: .standard(proto: "positive_region_tags_count"), - 52: .standard(proto: "positive_frame_tags_count"), + 1: .same(proto: "url"), + 2: .same(proto: "base64"), + 4: .standard(proto: "allow_duplicate_url"), + 5: .same(proto: "hosted"), + 6: .standard(proto: "image_info"), + 7: .standard(proto: "hosted_image_info"), + 8: .standard(proto: "decoded_bytes"), ] - fileprivate class _StorageClass { - var _inputsCount: SwiftProtobuf.Google_Protobuf_UInt64Value? = nil - var _unlabeledInputsCount: SwiftProtobuf.Google_Protobuf_UInt64Value? = nil - var _inputsWithMetadataCount: SwiftProtobuf.Google_Protobuf_UInt64Value? = nil - var _inputsWithGeoCount: SwiftProtobuf.Google_Protobuf_UInt64Value? = nil - var _regionsCount: SwiftProtobuf.Google_Protobuf_UInt64Value? = nil - var _regionLocationMatrix: MatrixUint64? = nil - var _boundingBoxesCount: SwiftProtobuf.Google_Protobuf_UInt64Value? = nil - var _polygonsCount: SwiftProtobuf.Google_Protobuf_UInt64Value? = nil - var _pointsCount: SwiftProtobuf.Google_Protobuf_UInt64Value? = nil - var _masksCount: SwiftProtobuf.Google_Protobuf_UInt64Value? = nil - var _regionInputsCount: SwiftProtobuf.Google_Protobuf_UInt64Value? = nil - var _regionFramesCount: SwiftProtobuf.Google_Protobuf_UInt64Value? = nil - var _framesCount: SwiftProtobuf.Google_Protobuf_UInt64Value? = nil - var _frameInputsCount: SwiftProtobuf.Google_Protobuf_UInt64Value? = nil - var _embeddingsCount: SwiftProtobuf.Google_Protobuf_UInt64Value? = nil - var _positiveInputTagsCount: SwiftProtobuf.Google_Protobuf_UInt64Value? = nil - var _positiveRegionTagsCount: SwiftProtobuf.Google_Protobuf_UInt64Value? = nil - var _positiveFrameTagsCount: SwiftProtobuf.Google_Protobuf_UInt64Value? = nil - - static let defaultInstance = _StorageClass() - - private init() {} - - init(copying source: _StorageClass) { - _inputsCount = source._inputsCount - _unlabeledInputsCount = source._unlabeledInputsCount - _inputsWithMetadataCount = source._inputsWithMetadataCount - _inputsWithGeoCount = source._inputsWithGeoCount - _regionsCount = source._regionsCount - _regionLocationMatrix = source._regionLocationMatrix - _boundingBoxesCount = source._boundingBoxesCount - _polygonsCount = source._polygonsCount - _pointsCount = source._pointsCount - _masksCount = source._masksCount - _regionInputsCount = source._regionInputsCount - _regionFramesCount = source._regionFramesCount - _framesCount = source._framesCount - _frameInputsCount = source._frameInputsCount - _embeddingsCount = source._embeddingsCount - _positiveInputTagsCount = source._positiveInputTagsCount - _positiveRegionTagsCount = source._positiveRegionTagsCount - _positiveFrameTagsCount = source._positiveFrameTagsCount - } - } - - 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.decodeSingularMessageField(value: &_storage._inputsCount) }() - case 6: try { try decoder.decodeSingularMessageField(value: &_storage._unlabeledInputsCount) }() - case 8: try { try decoder.decodeSingularMessageField(value: &_storage._inputsWithMetadataCount) }() - case 9: try { try decoder.decodeSingularMessageField(value: &_storage._inputsWithGeoCount) }() - case 20: try { try decoder.decodeSingularMessageField(value: &_storage._regionsCount) }() - case 21: try { try decoder.decodeSingularMessageField(value: &_storage._regionLocationMatrix) }() - case 22: try { try decoder.decodeSingularMessageField(value: &_storage._boundingBoxesCount) }() - case 23: try { try decoder.decodeSingularMessageField(value: &_storage._polygonsCount) }() - case 24: try { try decoder.decodeSingularMessageField(value: &_storage._pointsCount) }() - case 25: try { try decoder.decodeSingularMessageField(value: &_storage._masksCount) }() - case 30: try { try decoder.decodeSingularMessageField(value: &_storage._framesCount) }() - case 40: try { try decoder.decodeSingularMessageField(value: &_storage._embeddingsCount) }() - case 50: try { try decoder.decodeSingularMessageField(value: &_storage._positiveInputTagsCount) }() - case 51: try { try decoder.decodeSingularMessageField(value: &_storage._positiveRegionTagsCount) }() - case 52: try { try decoder.decodeSingularMessageField(value: &_storage._positiveFrameTagsCount) }() - case 60: try { try decoder.decodeSingularMessageField(value: &_storage._regionInputsCount) }() - case 61: try { try decoder.decodeSingularMessageField(value: &_storage._regionFramesCount) }() - case 70: try { try decoder.decodeSingularMessageField(value: &_storage._frameInputsCount) }() - default: break - } + 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.url) }() + case 2: try { try decoder.decodeSingularBytesField(value: &self.base64) }() + case 4: try { try decoder.decodeSingularBoolField(value: &self.allowDuplicateURL) }() + case 5: try { try decoder.decodeSingularMessageField(value: &self._hosted) }() + case 6: try { try decoder.decodeSingularMessageField(value: &self._imageInfo) }() + case 7: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMessageMap.self, value: &self.hostedImageInfo) }() + case 8: try { try decoder.decodeSingularBytesField(value: &self.decodedBytes) }() + 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 - try { if let v = _storage._inputsCount { - try visitor.visitSingularMessageField(value: v, fieldNumber: 1) - } }() - try { if let v = _storage._unlabeledInputsCount { - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) - } }() - try { if let v = _storage._inputsWithMetadataCount { - try visitor.visitSingularMessageField(value: v, fieldNumber: 8) - } }() - try { if let v = _storage._inputsWithGeoCount { - try visitor.visitSingularMessageField(value: v, fieldNumber: 9) - } }() - try { if let v = _storage._regionsCount { - try visitor.visitSingularMessageField(value: v, fieldNumber: 20) - } }() - try { if let v = _storage._regionLocationMatrix { - try visitor.visitSingularMessageField(value: v, fieldNumber: 21) - } }() - try { if let v = _storage._boundingBoxesCount { - try visitor.visitSingularMessageField(value: v, fieldNumber: 22) - } }() - try { if let v = _storage._polygonsCount { - try visitor.visitSingularMessageField(value: v, fieldNumber: 23) - } }() - try { if let v = _storage._pointsCount { - try visitor.visitSingularMessageField(value: v, fieldNumber: 24) - } }() - try { if let v = _storage._masksCount { - try visitor.visitSingularMessageField(value: v, fieldNumber: 25) - } }() - try { if let v = _storage._framesCount { - try visitor.visitSingularMessageField(value: v, fieldNumber: 30) - } }() - try { if let v = _storage._embeddingsCount { - try visitor.visitSingularMessageField(value: v, fieldNumber: 40) - } }() - try { if let v = _storage._positiveInputTagsCount { - try visitor.visitSingularMessageField(value: v, fieldNumber: 50) - } }() - try { if let v = _storage._positiveRegionTagsCount { - try visitor.visitSingularMessageField(value: v, fieldNumber: 51) - } }() - try { if let v = _storage._positiveFrameTagsCount { - try visitor.visitSingularMessageField(value: v, fieldNumber: 52) - } }() - try { if let v = _storage._regionInputsCount { - try visitor.visitSingularMessageField(value: v, fieldNumber: 60) - } }() - try { if let v = _storage._regionFramesCount { - try visitor.visitSingularMessageField(value: v, fieldNumber: 61) - } }() - try { if let v = _storage._frameInputsCount { - try visitor.visitSingularMessageField(value: v, fieldNumber: 70) - } }() + // 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.url.isEmpty { + try visitor.visitSingularStringField(value: self.url, fieldNumber: 1) } - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_DatasetVersionMetrics, rhs: Clarifai_Api_DatasetVersionMetrics) -> 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._inputsCount != rhs_storage._inputsCount {return false} - if _storage._unlabeledInputsCount != rhs_storage._unlabeledInputsCount {return false} - if _storage._inputsWithMetadataCount != rhs_storage._inputsWithMetadataCount {return false} - if _storage._inputsWithGeoCount != rhs_storage._inputsWithGeoCount {return false} - if _storage._regionsCount != rhs_storage._regionsCount {return false} - if _storage._regionLocationMatrix != rhs_storage._regionLocationMatrix {return false} - if _storage._boundingBoxesCount != rhs_storage._boundingBoxesCount {return false} - if _storage._polygonsCount != rhs_storage._polygonsCount {return false} - if _storage._pointsCount != rhs_storage._pointsCount {return false} - if _storage._masksCount != rhs_storage._masksCount {return false} - if _storage._regionInputsCount != rhs_storage._regionInputsCount {return false} - if _storage._regionFramesCount != rhs_storage._regionFramesCount {return false} - if _storage._framesCount != rhs_storage._framesCount {return false} - if _storage._frameInputsCount != rhs_storage._frameInputsCount {return false} - if _storage._embeddingsCount != rhs_storage._embeddingsCount {return false} - if _storage._positiveInputTagsCount != rhs_storage._positiveInputTagsCount {return false} - if _storage._positiveRegionTagsCount != rhs_storage._positiveRegionTagsCount {return false} - if _storage._positiveFrameTagsCount != rhs_storage._positiveFrameTagsCount {return false} - return true - } - if !storagesAreEqual {return false} + if !self.base64.isEmpty { + try visitor.visitSingularBytesField(value: self.base64, fieldNumber: 2) } + if self.allowDuplicateURL != false { + try visitor.visitSingularBoolField(value: self.allowDuplicateURL, fieldNumber: 4) + } + try { if let v = self._hosted { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } }() + try { if let v = self._imageInfo { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + } }() + if !self.hostedImageInfo.isEmpty { + try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMessageMap.self, value: self.hostedImageInfo, fieldNumber: 7) + } + if !self.decodedBytes.isEmpty { + try visitor.visitSingularBytesField(value: self.decodedBytes, fieldNumber: 8) + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Clarifai_Api_Image, rhs: Clarifai_Api_Image) -> Bool { + if lhs.url != rhs.url {return false} + if lhs.base64 != rhs.base64 {return false} + if lhs.allowDuplicateURL != rhs.allowDuplicateURL {return false} + if lhs._hosted != rhs._hosted {return false} + if lhs._imageInfo != rhs._imageInfo {return false} + if lhs.hostedImageInfo != rhs.hostedImageInfo {return false} + if lhs.decodedBytes != rhs.decodedBytes {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_DatasetVersionMetricsGroup: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".DatasetVersionMetricsGroup" +extension Clarifai_Api_ImageInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".ImageInfo" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "parent_path"), - 2: .same(proto: "type"), - 3: .same(proto: "value"), - 4: .same(proto: "metrics"), + 1: .same(proto: "width"), + 2: .same(proto: "height"), + 3: .same(proto: "format"), + 4: .standard(proto: "color_mode"), + 5: .same(proto: "mode"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -18031,51 +16592,53 @@ extension Clarifai_Api_DatasetVersionMetricsGroup: 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.decodeSingularStringField(value: &self.parentPath) }() - case 2: try { try decoder.decodeSingularEnumField(value: &self.type) }() - case 3: try { try decoder.decodeSingularMessageField(value: &self._value) }() - case 4: try { try decoder.decodeSingularMessageField(value: &self._metrics) }() + case 1: try { try decoder.decodeSingularInt32Field(value: &self.width) }() + case 2: try { try decoder.decodeSingularInt32Field(value: &self.height) }() + case 3: try { try decoder.decodeSingularStringField(value: &self.format) }() + case 4: try { try decoder.decodeSingularStringField(value: &self.colorMode) }() + case 5: try { try decoder.decodeSingularStringField(value: &self.mode) }() 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.parentPath.isEmpty { - try visitor.visitSingularStringField(value: self.parentPath, fieldNumber: 1) + if self.width != 0 { + try visitor.visitSingularInt32Field(value: self.width, fieldNumber: 1) } - if self.type != .notSet { - try visitor.visitSingularEnumField(value: self.type, fieldNumber: 2) + if self.height != 0 { + try visitor.visitSingularInt32Field(value: self.height, fieldNumber: 2) + } + if !self.format.isEmpty { + try visitor.visitSingularStringField(value: self.format, fieldNumber: 3) + } + if !self.colorMode.isEmpty { + try visitor.visitSingularStringField(value: self.colorMode, fieldNumber: 4) + } + if !self.mode.isEmpty { + try visitor.visitSingularStringField(value: self.mode, fieldNumber: 5) } - try { if let v = self._value { - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - } }() - try { if let v = self._metrics { - try visitor.visitSingularMessageField(value: v, fieldNumber: 4) - } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_DatasetVersionMetricsGroup, rhs: Clarifai_Api_DatasetVersionMetricsGroup) -> Bool { - if lhs.parentPath != rhs.parentPath {return false} - if lhs.type != rhs.type {return false} - if lhs._value != rhs._value {return false} - if lhs._metrics != rhs._metrics {return false} + public static func ==(lhs: Clarifai_Api_ImageInfo, rhs: Clarifai_Api_ImageInfo) -> Bool { + if lhs.width != rhs.width {return false} + if lhs.height != rhs.height {return false} + if lhs.format != rhs.format {return false} + if lhs.colorMode != rhs.colorMode {return false} + if lhs.mode != rhs.mode {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_DatasetVersionExportInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".DatasetVersionExportInfo" +extension Clarifai_Api_HostedURL: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".HostedURL" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "clarifai_data_protobuf"), - 3: .standard(proto: "clarifai_data_json"), - 2: .same(proto: "coco"), + 1: .same(proto: "prefix"), + 2: .same(proto: "suffix"), + 3: .same(proto: "sizes"), + 4: .same(proto: "crossorigin"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -18084,67 +16647,71 @@ 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: &self._clarifaiDataProtobuf) }() - case 2: try { try decoder.decodeSingularMessageField(value: &self._coco) }() - case 3: try { try decoder.decodeSingularMessageField(value: &self._clarifaiDataJson) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.prefix) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.suffix) }() + case 3: try { try decoder.decodeRepeatedStringField(value: &self.sizes) }() + case 4: try { try decoder.decodeSingularStringField(value: &self.crossorigin) }() 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) - } }() + if !self.prefix.isEmpty { + try visitor.visitSingularStringField(value: self.prefix, fieldNumber: 1) + } + if !self.suffix.isEmpty { + try visitor.visitSingularStringField(value: self.suffix, fieldNumber: 2) + } + if !self.sizes.isEmpty { + try visitor.visitRepeatedStringField(value: self.sizes, fieldNumber: 3) + } + if !self.crossorigin.isEmpty { + try visitor.visitSingularStringField(value: self.crossorigin, fieldNumber: 4) + } 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} + public static func ==(lhs: Clarifai_Api_HostedURL, rhs: Clarifai_Api_HostedURL) -> Bool { + if lhs.prefix != rhs.prefix {return false} + if lhs.suffix != rhs.suffix {return false} + if lhs.sizes != rhs.sizes {return false} + if lhs.crossorigin != rhs.crossorigin {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" +extension Clarifai_Api_Input: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Input" 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"), + 1: .same(proto: "id"), + 2: .same(proto: "data"), + 4: .standard(proto: "created_at"), + 5: .standard(proto: "modified_at"), + 6: .same(proto: "status"), + 7: .standard(proto: "dataset_ids"), ] fileprivate class _StorageClass { - var _format: Clarifai_Api_DatasetVersionExportFormat = .notSet + var _id: String = String() + var _data: Clarifai_Api_Data? = nil + var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _modifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil var _status: Clarifai_Api_Status_Status? = nil - var _url: String = String() - var _size: UInt64 = 0 - var _includeEmbeddings: Bool = false + var _datasetIds: [String] = [] static let defaultInstance = _StorageClass() private init() {} init(copying source: _StorageClass) { - _format = source._format + _id = source._id + _data = source._data + _createdAt = source._createdAt + _modifiedAt = source._modifiedAt _status = source._status - _url = source._url - _size = source._size - _includeEmbeddings = source._includeEmbeddings + _datasetIds = source._datasetIds } } @@ -18163,11 +16730,12 @@ extension Clarifai_Api_DatasetVersionExport: SwiftProtobuf.Message, SwiftProtobu // 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: &_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) }() + case 1: try { try decoder.decodeSingularStringField(value: &_storage._id) }() + case 2: try { try decoder.decodeSingularMessageField(value: &_storage._data) }() + case 4: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() + case 5: try { try decoder.decodeSingularMessageField(value: &_storage._modifiedAt) }() + case 6: try { try decoder.decodeSingularMessageField(value: &_storage._status) }() + case 7: try { try decoder.decodeRepeatedStringField(value: &_storage._datasetIds) }() default: break } } @@ -18180,84 +16748,52 @@ extension Clarifai_Api_DatasetVersionExport: SwiftProtobuf.Message, SwiftProtobu // 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._format != .notSet { - try visitor.visitSingularEnumField(value: _storage._format, fieldNumber: 1) + if !_storage._id.isEmpty { + try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) } - try { if let v = _storage._status { + try { if let v = _storage._data { try visitor.visitSingularMessageField(value: v, fieldNumber: 2) } }() - 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 { if let v = _storage._createdAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + } }() + try { if let v = _storage._modifiedAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } }() + try { if let v = _storage._status { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + } }() + if !_storage._datasetIds.isEmpty { + try visitor.visitRepeatedStringField(value: _storage._datasetIds, fieldNumber: 7) } } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_DatasetVersionExport, rhs: Clarifai_Api_DatasetVersionExport) -> Bool { + public static func ==(lhs: Clarifai_Api_Input, rhs: Clarifai_Api_Input) -> 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._format != rhs_storage._format {return false} + if _storage._id != rhs_storage._id {return false} + if _storage._data != rhs_storage._data {return false} + if _storage._createdAt != rhs_storage._createdAt {return false} + if _storage._modifiedAt != rhs_storage._modifiedAt {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} + if _storage._datasetIds != rhs_storage._datasetIds {return false} return true } - if !storagesAreEqual {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 = [ - 1: .standard(proto: "frame_interpolation_info"), - ] - - 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._frameInterpolationInfo) }() - 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._frameInterpolationInfo { - try visitor.visitSingularMessageField(value: v, fieldNumber: 1) - } }() - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_DatasetVersionProcessingInfo, rhs: Clarifai_Api_DatasetVersionProcessingInfo) -> Bool { - if lhs._frameInterpolationInfo != rhs._frameInterpolationInfo {return false} + if !storagesAreEqual {return false} + } if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_FrameInterpolationInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".FrameInterpolationInfo" +extension Clarifai_Api_InputBatch: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".InputBatch" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "sample_ms"), + 1: .same(proto: "inputs"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -18266,38 +16802,37 @@ extension Clarifai_Api_FrameInterpolationInfo: SwiftProtobuf.Message, SwiftProto // 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.decodeSingularUInt32Field(value: &self.sampleMs) }() + case 1: try { try decoder.decodeRepeatedMessageField(value: &self.inputs) }() default: break } } } public func traverse(visitor: inout V) throws { - if self.sampleMs != 0 { - try visitor.visitSingularUInt32Field(value: self.sampleMs, fieldNumber: 1) + if !self.inputs.isEmpty { + try visitor.visitRepeatedMessageField(value: self.inputs, fieldNumber: 1) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_FrameInterpolationInfo, rhs: Clarifai_Api_FrameInterpolationInfo) -> Bool { - if lhs.sampleMs != rhs.sampleMs {return false} + public static func ==(lhs: Clarifai_Api_InputBatch, rhs: Clarifai_Api_InputBatch) -> Bool { + if lhs.inputs != rhs.inputs {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_Key: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Key" +extension Clarifai_Api_InputCount: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".InputCount" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 8: .same(proto: "type"), - 2: .same(proto: "description"), - 3: .same(proto: "scopes"), - 7: .same(proto: "endpoints"), - 4: .same(proto: "apps"), - 5: .standard(proto: "created_at"), - 6: .standard(proto: "expires_at"), - 9: .standard(proto: "authorized_idp_ids"), + 1: .same(proto: "processed"), + 2: .standard(proto: "to_process"), + 3: .same(proto: "errors"), + 4: .same(proto: "processing"), + 5: .same(proto: "reindexed"), + 6: .standard(proto: "to_reindex"), + 7: .standard(proto: "reindex_errors"), + 8: .same(proto: "reindexing"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -18306,138 +16841,99 @@ extension Clarifai_Api_Key: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme // 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.id) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.description_p) }() - case 3: try { try decoder.decodeRepeatedStringField(value: &self.scopes) }() - case 4: try { try decoder.decodeRepeatedMessageField(value: &self.apps) }() - case 5: try { try decoder.decodeSingularMessageField(value: &self._createdAt) }() - case 6: try { try decoder.decodeSingularMessageField(value: &self._expiresAt) }() - case 7: try { try decoder.decodeRepeatedStringField(value: &self.endpoints) }() - case 8: try { try decoder.decodeSingularStringField(value: &self.type) }() - case 9: try { try decoder.decodeRepeatedStringField(value: &self.authorizedIdpIds) }() + case 1: try { try decoder.decodeSingularUInt32Field(value: &self.processed) }() + case 2: try { try decoder.decodeSingularUInt32Field(value: &self.toProcess) }() + case 3: try { try decoder.decodeSingularUInt32Field(value: &self.errors) }() + case 4: try { try decoder.decodeSingularUInt32Field(value: &self.processing) }() + case 5: try { try decoder.decodeSingularUInt32Field(value: &self.reindexed) }() + case 6: try { try decoder.decodeSingularUInt32Field(value: &self.toReindex) }() + case 7: try { try decoder.decodeSingularUInt32Field(value: &self.reindexErrors) }() + case 8: try { try decoder.decodeSingularUInt32Field(value: &self.reindexing) }() 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.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) + if self.processed != 0 { + try visitor.visitSingularUInt32Field(value: self.processed, fieldNumber: 1) } - if !self.description_p.isEmpty { - try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 2) + if self.toProcess != 0 { + try visitor.visitSingularUInt32Field(value: self.toProcess, fieldNumber: 2) } - if !self.scopes.isEmpty { - try visitor.visitRepeatedStringField(value: self.scopes, fieldNumber: 3) + if self.errors != 0 { + try visitor.visitSingularUInt32Field(value: self.errors, fieldNumber: 3) } - if !self.apps.isEmpty { - try visitor.visitRepeatedMessageField(value: self.apps, fieldNumber: 4) + if self.processing != 0 { + try visitor.visitSingularUInt32Field(value: self.processing, fieldNumber: 4) } - try { if let v = self._createdAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 5) - } }() - try { if let v = self._expiresAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) - } }() - if !self.endpoints.isEmpty { - try visitor.visitRepeatedStringField(value: self.endpoints, fieldNumber: 7) + if self.reindexed != 0 { + try visitor.visitSingularUInt32Field(value: self.reindexed, fieldNumber: 5) } - if !self.type.isEmpty { - try visitor.visitSingularStringField(value: self.type, fieldNumber: 8) + if self.toReindex != 0 { + try visitor.visitSingularUInt32Field(value: self.toReindex, fieldNumber: 6) } - if !self.authorizedIdpIds.isEmpty { - try visitor.visitRepeatedStringField(value: self.authorizedIdpIds, fieldNumber: 9) + if self.reindexErrors != 0 { + try visitor.visitSingularUInt32Field(value: self.reindexErrors, fieldNumber: 7) + } + if self.reindexing != 0 { + try visitor.visitSingularUInt32Field(value: self.reindexing, fieldNumber: 8) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_Key, rhs: Clarifai_Api_Key) -> Bool { - if lhs.id != rhs.id {return false} - if lhs.type != rhs.type {return false} - if lhs.description_p != rhs.description_p {return false} - if lhs.scopes != rhs.scopes {return false} - if lhs.endpoints != rhs.endpoints {return false} - if lhs.apps != rhs.apps {return false} - if lhs._createdAt != rhs._createdAt {return false} - if lhs._expiresAt != rhs._expiresAt {return false} - if lhs.authorizedIdpIds != rhs.authorizedIdpIds {return false} + public static func ==(lhs: Clarifai_Api_InputCount, rhs: Clarifai_Api_InputCount) -> Bool { + if lhs.processed != rhs.processed {return false} + if lhs.toProcess != rhs.toProcess {return false} + if lhs.errors != rhs.errors {return false} + if lhs.processing != rhs.processing {return false} + if lhs.reindexed != rhs.reindexed {return false} + if lhs.toReindex != rhs.toReindex {return false} + if lhs.reindexErrors != rhs.reindexErrors {return false} + if lhs.reindexing != rhs.reindexing {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_Model: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Model" +extension Clarifai_Api_Dataset: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Dataset" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ 1: .same(proto: "id"), - 2: .same(proto: "name"), - 3: .standard(proto: "created_at"), - 19: .standard(proto: "modified_at"), + 2: .standard(proto: "created_at"), + 3: .standard(proto: "modified_at"), 4: .standard(proto: "app_id"), - 5: .standard(proto: "output_info"), - 6: .standard(proto: "model_version"), - 7: .standard(proto: "display_name"), - 9: .standard(proto: "user_id"), - 30: .standard(proto: "default_eval_info"), - 14: .standard(proto: "model_type_id"), - 26: .same(proto: "task"), - 15: .same(proto: "visibility"), - 16: .same(proto: "description"), - 17: .same(proto: "metadata"), - 27: .same(proto: "presets"), - 18: .same(proto: "notes"), - 20: .same(proto: "toolkits"), - 21: .standard(proto: "use_cases"), - 25: .same(proto: "languages"), - 31: .standard(proto: "languages_full"), - 32: .standard(proto: "check_consents"), - 22: .standard(proto: "is_starred"), - 23: .standard(proto: "star_count"), - 29: .standard(proto: "workflow_recommended"), - 33: .standard(proto: "bookmark_origin"), - 34: .same(proto: "image"), - 35: .standard(proto: "license_type"), - 36: .same(proto: "source"), - 37: .same(proto: "creator"), - 38: .standard(proto: "version_count"), + 5: .standard(proto: "user_id"), + 7: .same(proto: "description"), + 8: .same(proto: "metadata"), + 9: .same(proto: "visibility"), + 12: .standard(proto: "default_annotation_filter"), + 16: .standard(proto: "default_processing_info"), + 11: .same(proto: "notes"), + 13: .same(proto: "version"), + 14: .standard(proto: "is_starred"), + 15: .standard(proto: "star_count"), + 17: .standard(proto: "bookmark_origin"), + 18: .same(proto: "image"), ] fileprivate class _StorageClass { var _id: String = String() - var _name: String = String() var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil var _modifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil var _appID: String = String() - var _outputInfo: Clarifai_Api_OutputInfo? = nil - var _modelVersion: Clarifai_Api_ModelVersion? = nil - var _displayName: String = String() var _userID: String = String() - var _defaultEvalInfo: Clarifai_Api_EvalInfo? = nil - var _modelTypeID: String = String() - var _task: String = String() - var _visibility: Clarifai_Api_Visibility? = nil var _description_p: String = String() var _metadata: SwiftProtobuf.Google_Protobuf_Struct? = nil - var _presets: SwiftProtobuf.Google_Protobuf_Struct? = nil + var _visibility: Clarifai_Api_Visibility? = nil + var _defaultAnnotationFilter: Clarifai_Api_AnnotationFilter? = nil + var _defaultProcessingInfo: Clarifai_Api_DatasetVersionProcessingInfo? = nil var _notes: String = String() - var _toolkits: [String] = [] - var _useCases: [String] = [] - var _languages: [String] = [] - var _languagesFull: [Clarifai_Api_FullTag] = [] - var _checkConsents: [String] = [] + var _version: Clarifai_Api_DatasetVersion? = nil var _isStarred: Bool = false var _starCount: Int32 = 0 - var _workflowRecommended: SwiftProtobuf.Google_Protobuf_BoolValue? = nil var _bookmarkOrigin: Clarifai_Api_BookmarkOrigin? = nil var _image: Clarifai_Api_Image? = nil - var _licenseType: Clarifai_Api_LicenseType = .unknownLicenseType - var _source: Clarifai_Api_Model.Source = .unknownSource - var _creator: String = String() - var _versionCount: Int32 = 0 static let defaultInstance = _StorageClass() @@ -18445,85 +16941,55 @@ extension Clarifai_Api_Model: SwiftProtobuf.Message, SwiftProtobuf._MessageImple init(copying source: _StorageClass) { _id = source._id - _name = source._name _createdAt = source._createdAt _modifiedAt = source._modifiedAt _appID = source._appID - _outputInfo = source._outputInfo - _modelVersion = source._modelVersion - _displayName = source._displayName _userID = source._userID - _defaultEvalInfo = source._defaultEvalInfo - _modelTypeID = source._modelTypeID - _task = source._task - _visibility = source._visibility _description_p = source._description_p _metadata = source._metadata - _presets = source._presets + _visibility = source._visibility + _defaultAnnotationFilter = source._defaultAnnotationFilter + _defaultProcessingInfo = source._defaultProcessingInfo _notes = source._notes - _toolkits = source._toolkits - _useCases = source._useCases - _languages = source._languages - _languagesFull = source._languagesFull - _checkConsents = source._checkConsents + _version = source._version _isStarred = source._isStarred _starCount = source._starCount - _workflowRecommended = source._workflowRecommended _bookmarkOrigin = source._bookmarkOrigin _image = source._image - _licenseType = source._licenseType - _source = source._source - _creator = source._creator - _versionCount = source._versionCount - } - } - - 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.decodeSingularStringField(value: &_storage._id) }() - case 2: try { try decoder.decodeSingularStringField(value: &_storage._name) }() - case 3: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() - case 4: try { try decoder.decodeSingularStringField(value: &_storage._appID) }() - case 5: try { try decoder.decodeSingularMessageField(value: &_storage._outputInfo) }() - case 6: try { try decoder.decodeSingularMessageField(value: &_storage._modelVersion) }() - case 7: try { try decoder.decodeSingularStringField(value: &_storage._displayName) }() - case 9: try { try decoder.decodeSingularStringField(value: &_storage._userID) }() - case 14: try { try decoder.decodeSingularStringField(value: &_storage._modelTypeID) }() - case 15: try { try decoder.decodeSingularMessageField(value: &_storage._visibility) }() - case 16: try { try decoder.decodeSingularStringField(value: &_storage._description_p) }() - case 17: try { try decoder.decodeSingularMessageField(value: &_storage._metadata) }() - case 18: try { try decoder.decodeSingularStringField(value: &_storage._notes) }() - case 19: try { try decoder.decodeSingularMessageField(value: &_storage._modifiedAt) }() - case 20: try { try decoder.decodeRepeatedStringField(value: &_storage._toolkits) }() - case 21: try { try decoder.decodeRepeatedStringField(value: &_storage._useCases) }() - case 22: try { try decoder.decodeSingularBoolField(value: &_storage._isStarred) }() - case 23: try { try decoder.decodeSingularInt32Field(value: &_storage._starCount) }() - case 25: try { try decoder.decodeRepeatedStringField(value: &_storage._languages) }() - case 26: try { try decoder.decodeSingularStringField(value: &_storage._task) }() - case 27: try { try decoder.decodeSingularMessageField(value: &_storage._presets) }() - case 29: try { try decoder.decodeSingularMessageField(value: &_storage._workflowRecommended) }() - case 30: try { try decoder.decodeSingularMessageField(value: &_storage._defaultEvalInfo) }() - case 31: try { try decoder.decodeRepeatedMessageField(value: &_storage._languagesFull) }() - case 32: try { try decoder.decodeRepeatedStringField(value: &_storage._checkConsents) }() - case 33: try { try decoder.decodeSingularMessageField(value: &_storage._bookmarkOrigin) }() - case 34: try { try decoder.decodeSingularMessageField(value: &_storage._image) }() - case 35: try { try decoder.decodeSingularEnumField(value: &_storage._licenseType) }() - case 36: try { try decoder.decodeSingularEnumField(value: &_storage._source) }() - case 37: try { try decoder.decodeSingularStringField(value: &_storage._creator) }() - case 38: try { try decoder.decodeSingularInt32Field(value: &_storage._versionCount) }() + + 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.decodeSingularStringField(value: &_storage._id) }() + case 2: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() + case 3: try { try decoder.decodeSingularMessageField(value: &_storage._modifiedAt) }() + case 4: try { try decoder.decodeSingularStringField(value: &_storage._appID) }() + case 5: try { try decoder.decodeSingularStringField(value: &_storage._userID) }() + case 7: try { try decoder.decodeSingularStringField(value: &_storage._description_p) }() + case 8: try { try decoder.decodeSingularMessageField(value: &_storage._metadata) }() + case 9: try { try decoder.decodeSingularMessageField(value: &_storage._visibility) }() + case 11: try { try decoder.decodeSingularStringField(value: &_storage._notes) }() + case 12: try { try decoder.decodeSingularMessageField(value: &_storage._defaultAnnotationFilter) }() + case 13: try { try decoder.decodeSingularMessageField(value: &_storage._version) }() + case 14: try { try decoder.decodeSingularBoolField(value: &_storage._isStarred) }() + case 15: try { try decoder.decodeSingularInt32Field(value: &_storage._starCount) }() + case 16: try { try decoder.decodeSingularMessageField(value: &_storage._defaultProcessingInfo) }() + case 17: try { try decoder.decodeSingularMessageField(value: &_storage._bookmarkOrigin) }() + case 18: try { try decoder.decodeSingularMessageField(value: &_storage._image) }() default: break } } @@ -18539,136 +17005,76 @@ extension Clarifai_Api_Model: SwiftProtobuf.Message, SwiftProtobuf._MessageImple if !_storage._id.isEmpty { try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) } - if !_storage._name.isEmpty { - try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 2) - } try { if let v = _storage._createdAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + try { if let v = _storage._modifiedAt { try visitor.visitSingularMessageField(value: v, fieldNumber: 3) } }() if !_storage._appID.isEmpty { try visitor.visitSingularStringField(value: _storage._appID, fieldNumber: 4) } - try { if let v = _storage._outputInfo { - try visitor.visitSingularMessageField(value: v, fieldNumber: 5) - } }() - try { if let v = _storage._modelVersion { - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) - } }() - if !_storage._displayName.isEmpty { - try visitor.visitSingularStringField(value: _storage._displayName, fieldNumber: 7) - } if !_storage._userID.isEmpty { - try visitor.visitSingularStringField(value: _storage._userID, fieldNumber: 9) - } - if !_storage._modelTypeID.isEmpty { - try visitor.visitSingularStringField(value: _storage._modelTypeID, fieldNumber: 14) + try visitor.visitSingularStringField(value: _storage._userID, fieldNumber: 5) } - try { if let v = _storage._visibility { - try visitor.visitSingularMessageField(value: v, fieldNumber: 15) - } }() if !_storage._description_p.isEmpty { - try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 16) + try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 7) } try { if let v = _storage._metadata { - try visitor.visitSingularMessageField(value: v, fieldNumber: 17) + try visitor.visitSingularMessageField(value: v, fieldNumber: 8) + } }() + try { if let v = _storage._visibility { + try visitor.visitSingularMessageField(value: v, fieldNumber: 9) } }() if !_storage._notes.isEmpty { - try visitor.visitSingularStringField(value: _storage._notes, fieldNumber: 18) + try visitor.visitSingularStringField(value: _storage._notes, fieldNumber: 11) } - try { if let v = _storage._modifiedAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 19) + try { if let v = _storage._defaultAnnotationFilter { + try visitor.visitSingularMessageField(value: v, fieldNumber: 12) + } }() + try { if let v = _storage._version { + try visitor.visitSingularMessageField(value: v, fieldNumber: 13) } }() - if !_storage._toolkits.isEmpty { - try visitor.visitRepeatedStringField(value: _storage._toolkits, fieldNumber: 20) - } - if !_storage._useCases.isEmpty { - try visitor.visitRepeatedStringField(value: _storage._useCases, fieldNumber: 21) - } if _storage._isStarred != false { - try visitor.visitSingularBoolField(value: _storage._isStarred, fieldNumber: 22) + try visitor.visitSingularBoolField(value: _storage._isStarred, fieldNumber: 14) } if _storage._starCount != 0 { - try visitor.visitSingularInt32Field(value: _storage._starCount, fieldNumber: 23) - } - if !_storage._languages.isEmpty { - try visitor.visitRepeatedStringField(value: _storage._languages, fieldNumber: 25) - } - if !_storage._task.isEmpty { - try visitor.visitSingularStringField(value: _storage._task, fieldNumber: 26) + try visitor.visitSingularInt32Field(value: _storage._starCount, fieldNumber: 15) } - try { if let v = _storage._presets { - try visitor.visitSingularMessageField(value: v, fieldNumber: 27) - } }() - try { if let v = _storage._workflowRecommended { - try visitor.visitSingularMessageField(value: v, fieldNumber: 29) - } }() - try { if let v = _storage._defaultEvalInfo { - try visitor.visitSingularMessageField(value: v, fieldNumber: 30) + try { if let v = _storage._defaultProcessingInfo { + try visitor.visitSingularMessageField(value: v, fieldNumber: 16) } }() - if !_storage._languagesFull.isEmpty { - try visitor.visitRepeatedMessageField(value: _storage._languagesFull, fieldNumber: 31) - } - if !_storage._checkConsents.isEmpty { - try visitor.visitRepeatedStringField(value: _storage._checkConsents, fieldNumber: 32) - } try { if let v = _storage._bookmarkOrigin { - try visitor.visitSingularMessageField(value: v, fieldNumber: 33) + try visitor.visitSingularMessageField(value: v, fieldNumber: 17) } }() try { if let v = _storage._image { - try visitor.visitSingularMessageField(value: v, fieldNumber: 34) + try visitor.visitSingularMessageField(value: v, fieldNumber: 18) } }() - if _storage._licenseType != .unknownLicenseType { - try visitor.visitSingularEnumField(value: _storage._licenseType, fieldNumber: 35) - } - if _storage._source != .unknownSource { - try visitor.visitSingularEnumField(value: _storage._source, fieldNumber: 36) - } - if !_storage._creator.isEmpty { - try visitor.visitSingularStringField(value: _storage._creator, fieldNumber: 37) - } - if _storage._versionCount != 0 { - try visitor.visitSingularInt32Field(value: _storage._versionCount, fieldNumber: 38) - } } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_Model, rhs: Clarifai_Api_Model) -> Bool { + public static func ==(lhs: Clarifai_Api_Dataset, rhs: Clarifai_Api_Dataset) -> 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._createdAt != rhs_storage._createdAt {return false} if _storage._modifiedAt != rhs_storage._modifiedAt {return false} if _storage._appID != rhs_storage._appID {return false} - if _storage._outputInfo != rhs_storage._outputInfo {return false} - if _storage._modelVersion != rhs_storage._modelVersion {return false} - if _storage._displayName != rhs_storage._displayName {return false} if _storage._userID != rhs_storage._userID {return false} - if _storage._defaultEvalInfo != rhs_storage._defaultEvalInfo {return false} - if _storage._modelTypeID != rhs_storage._modelTypeID {return false} - if _storage._task != rhs_storage._task {return false} - if _storage._visibility != rhs_storage._visibility {return false} if _storage._description_p != rhs_storage._description_p {return false} if _storage._metadata != rhs_storage._metadata {return false} - if _storage._presets != rhs_storage._presets {return false} + if _storage._visibility != rhs_storage._visibility {return false} + if _storage._defaultAnnotationFilter != rhs_storage._defaultAnnotationFilter {return false} + if _storage._defaultProcessingInfo != rhs_storage._defaultProcessingInfo {return false} if _storage._notes != rhs_storage._notes {return false} - if _storage._toolkits != rhs_storage._toolkits {return false} - if _storage._useCases != rhs_storage._useCases {return false} - if _storage._languages != rhs_storage._languages {return false} - if _storage._languagesFull != rhs_storage._languagesFull {return false} - if _storage._checkConsents != rhs_storage._checkConsents {return false} + if _storage._version != rhs_storage._version {return false} if _storage._isStarred != rhs_storage._isStarred {return false} if _storage._starCount != rhs_storage._starCount {return false} - if _storage._workflowRecommended != rhs_storage._workflowRecommended {return false} if _storage._bookmarkOrigin != rhs_storage._bookmarkOrigin {return false} if _storage._image != rhs_storage._image {return false} - if _storage._licenseType != rhs_storage._licenseType {return false} - if _storage._source != rhs_storage._source {return false} - if _storage._creator != rhs_storage._creator {return false} - if _storage._versionCount != rhs_storage._versionCount {return false} return true } if !storagesAreEqual {return false} @@ -18678,22 +17084,15 @@ extension Clarifai_Api_Model: SwiftProtobuf.Message, SwiftProtobuf._MessageImple } } -extension Clarifai_Api_Model.Source: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "UNKNOWN_SOURCE"), - 1: .same(proto: "HOSTED"), - 2: .same(proto: "WRAPPED"), - ] -} - -extension Clarifai_Api_ModelReference: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".ModelReference" +extension Clarifai_Api_AnnotationFilter: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".AnnotationFilter" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ 1: .same(proto: "id"), - 2: .standard(proto: "model_id"), - 3: .same(proto: "url"), - 4: .same(proto: "name"), - 5: .same(proto: "metadata"), + 2: .standard(proto: "created_at"), + 3: .standard(proto: "modified_at"), + 4: .standard(proto: "user_id"), + 5: .standard(proto: "app_id"), + 9: .same(proto: "search"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -18703,10 +17102,11 @@ extension Clarifai_Api_ModelReference: SwiftProtobuf.Message, SwiftProtobuf._Mes // enabled. https://github.com/apple/swift-protobuf/issues/1034 switch fieldNumber { case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.modelID) }() - case 3: try { try decoder.decodeSingularStringField(value: &self.url) }() - case 4: try { try decoder.decodeSingularStringField(value: &self.name) }() - case 5: try { try decoder.decodeSingularMessageField(value: &self._metadata) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._createdAt) }() + case 3: try { try decoder.decodeSingularMessageField(value: &self._modifiedAt) }() + case 4: try { try decoder.decodeSingularStringField(value: &self.userID) }() + case 5: try { try decoder.decodeSingularStringField(value: &self.appID) }() + case 9: try { try decoder.decodeSingularMessageField(value: &self._search) }() default: break } } @@ -18720,41 +17120,41 @@ extension Clarifai_Api_ModelReference: SwiftProtobuf.Message, SwiftProtobuf._Mes if !self.id.isEmpty { try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) } - if !self.modelID.isEmpty { - try visitor.visitSingularStringField(value: self.modelID, fieldNumber: 2) - } - if !self.url.isEmpty { - try visitor.visitSingularStringField(value: self.url, fieldNumber: 3) + try { if let v = self._createdAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + try { if let v = self._modifiedAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + } }() + if !self.userID.isEmpty { + try visitor.visitSingularStringField(value: self.userID, fieldNumber: 4) } - if !self.name.isEmpty { - try visitor.visitSingularStringField(value: self.name, fieldNumber: 4) + if !self.appID.isEmpty { + try visitor.visitSingularStringField(value: self.appID, fieldNumber: 5) } - try { if let v = self._metadata { - try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + try { if let v = self._search { + try visitor.visitSingularMessageField(value: v, fieldNumber: 9) } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_ModelReference, rhs: Clarifai_Api_ModelReference) -> Bool { + public static func ==(lhs: Clarifai_Api_AnnotationFilter, rhs: Clarifai_Api_AnnotationFilter) -> Bool { if lhs.id != rhs.id {return false} - if lhs.modelID != rhs.modelID {return false} - if lhs.url != rhs.url {return false} - if lhs.name != rhs.name {return false} - if lhs._metadata != rhs._metadata {return false} + if lhs._createdAt != rhs._createdAt {return false} + if lhs._modifiedAt != rhs._modifiedAt {return false} + if lhs.userID != rhs.userID {return false} + if lhs.appID != rhs.appID {return false} + if lhs._search != rhs._search {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_ModelVersionInputExample: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".ModelVersionInputExample" +extension Clarifai_Api_DatasetInput: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".DatasetInput" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .standard(proto: "model_id"), - 3: .standard(proto: "model_version_id"), - 4: .same(proto: "data"), - 5: .same(proto: "name"), - 6: .same(proto: "description"), + 1: .standard(proto: "created_at"), + 2: .same(proto: "input"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -18763,12 +17163,8 @@ extension Clarifai_Api_ModelVersionInputExample: 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.decodeSingularStringField(value: &self.id) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.modelID) }() - case 3: try { try decoder.decodeSingularStringField(value: &self.modelVersionID) }() - case 4: try { try decoder.decodeSingularMessageField(value: &self._data) }() - case 5: try { try decoder.decodeSingularStringField(value: &self.name) }() - case 6: try { try decoder.decodeSingularStringField(value: &self.description_p) }() + case 1: try { try decoder.decodeSingularMessageField(value: &self._createdAt) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._input) }() default: break } } @@ -18779,69 +17175,84 @@ extension Clarifai_Api_ModelVersionInputExample: 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 - if !self.id.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) - } - if !self.modelID.isEmpty { - try visitor.visitSingularStringField(value: self.modelID, fieldNumber: 2) - } - if !self.modelVersionID.isEmpty { - try visitor.visitSingularStringField(value: self.modelVersionID, fieldNumber: 3) - } - try { if let v = self._data { - try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + try { if let v = self._createdAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } }() + try { if let v = self._input { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) } }() - if !self.name.isEmpty { - try visitor.visitSingularStringField(value: self.name, fieldNumber: 5) - } - if !self.description_p.isEmpty { - try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 6) - } try unknownFields.traverse(visitor: &visitor) } - - public static func ==(lhs: Clarifai_Api_ModelVersionInputExample, rhs: Clarifai_Api_ModelVersionInputExample) -> Bool { - if lhs.id != rhs.id {return false} - if lhs.modelID != rhs.modelID {return false} - if lhs.modelVersionID != rhs.modelVersionID {return false} - if lhs._data != rhs._data {return false} - if lhs.name != rhs.name {return false} - if lhs.description_p != rhs.description_p {return false} + + public static func ==(lhs: Clarifai_Api_DatasetInput, rhs: Clarifai_Api_DatasetInput) -> Bool { + if lhs._createdAt != rhs._createdAt {return false} + if lhs._input != rhs._input {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_OutputInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".OutputInfo" +extension Clarifai_Api_DatasetVersion: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".DatasetVersion" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "data"), - 2: .standard(proto: "output_config"), - 3: .same(proto: "message"), - 6: .standard(proto: "fields_map"), - 7: .same(proto: "params"), - 8: .standard(proto: "params_specs"), + 1: .same(proto: "id"), + 2: .standard(proto: "created_at"), + 3: .standard(proto: "modified_at"), + 4: .standard(proto: "app_id"), + 5: .standard(proto: "user_id"), + 6: .standard(proto: "dataset_id"), + 15: .standard(proto: "annotation_filter_config"), + 18: .standard(proto: "model_predict_config"), + 8: .same(proto: "status"), + 10: .same(proto: "description"), + 19: .standard(proto: "processing_info"), + 16: .same(proto: "metrics"), + 17: .standard(proto: "export_info"), + 12: .same(proto: "metadata"), + 13: .same(proto: "visibility"), + 14: .standard(proto: "embed_model_version_ids"), + 20: .standard(proto: "request_origin"), ] fileprivate class _StorageClass { - var _data: Clarifai_Api_Data? = nil - var _outputConfig: Clarifai_Api_OutputConfig? = nil - var _message: String = String() - var _fieldsMap: SwiftProtobuf.Google_Protobuf_Struct? = nil - var _params: SwiftProtobuf.Google_Protobuf_Struct? = nil - var _paramsSpecs: [Clarifai_Api_ModelTypeField] = [] + var _id: String = String() + var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _modifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _appID: String = String() + var _userID: String = String() + var _datasetID: String = String() + var _dataConfig: Clarifai_Api_DatasetVersion.OneOf_DataConfig? + var _status: Clarifai_Api_Status_Status? = nil + var _description_p: String = String() + var _processingInfo: Clarifai_Api_DatasetVersionProcessingInfo? = nil + var _metrics: Dictionary = [:] + var _exportInfo: Clarifai_Api_DatasetVersionExportInfo? = nil + var _metadata: SwiftProtobuf.Google_Protobuf_Struct? = nil + var _visibility: Clarifai_Api_Visibility? = nil + var _embedModelVersionIds: [String] = [] + var _requestOrigin: Clarifai_Api_DatasetVersionRequestOrigin = .notSet static let defaultInstance = _StorageClass() private init() {} init(copying source: _StorageClass) { - _data = source._data - _outputConfig = source._outputConfig - _message = source._message - _fieldsMap = source._fieldsMap - _params = source._params - _paramsSpecs = source._paramsSpecs + _id = source._id + _createdAt = source._createdAt + _modifiedAt = source._modifiedAt + _appID = source._appID + _userID = source._userID + _datasetID = source._datasetID + _dataConfig = source._dataConfig + _status = source._status + _description_p = source._description_p + _processingInfo = source._processingInfo + _metrics = source._metrics + _exportInfo = source._exportInfo + _metadata = source._metadata + _visibility = source._visibility + _embedModelVersionIds = source._embedModelVersionIds + _requestOrigin = source._requestOrigin } } @@ -18860,12 +17271,47 @@ extension Clarifai_Api_OutputInfo: 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.decodeSingularMessageField(value: &_storage._data) }() - case 2: try { try decoder.decodeSingularMessageField(value: &_storage._outputConfig) }() - case 3: try { try decoder.decodeSingularStringField(value: &_storage._message) }() - case 6: try { try decoder.decodeSingularMessageField(value: &_storage._fieldsMap) }() - case 7: try { try decoder.decodeSingularMessageField(value: &_storage._params) }() - case 8: try { try decoder.decodeRepeatedMessageField(value: &_storage._paramsSpecs) }() + case 1: try { try decoder.decodeSingularStringField(value: &_storage._id) }() + case 2: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() + case 3: try { try decoder.decodeSingularMessageField(value: &_storage._modifiedAt) }() + case 4: try { try decoder.decodeSingularStringField(value: &_storage._appID) }() + case 5: try { try decoder.decodeSingularStringField(value: &_storage._userID) }() + case 6: try { try decoder.decodeSingularStringField(value: &_storage._datasetID) }() + case 8: try { try decoder.decodeSingularMessageField(value: &_storage._status) }() + case 10: try { try decoder.decodeSingularStringField(value: &_storage._description_p) }() + case 12: try { try decoder.decodeSingularMessageField(value: &_storage._metadata) }() + case 13: try { try decoder.decodeSingularMessageField(value: &_storage._visibility) }() + case 14: try { try decoder.decodeRepeatedStringField(value: &_storage._embedModelVersionIds) }() + case 15: try { + var v: Clarifai_Api_AnnotationFilterConfig? + var hadOneofValue = false + if let current = _storage._dataConfig { + hadOneofValue = true + if case .annotationFilterConfig(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + _storage._dataConfig = .annotationFilterConfig(v) + } + }() + case 16: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMessageMap.self, value: &_storage._metrics) }() + case 17: try { try decoder.decodeSingularMessageField(value: &_storage._exportInfo) }() + case 18: try { + var v: Clarifai_Api_ModelPredictConfig? + var hadOneofValue = false + if let current = _storage._dataConfig { + hadOneofValue = true + if case .modelPredictConfig(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + _storage._dataConfig = .modelPredictConfig(v) + } + }() + case 19: try { try decoder.decodeSingularMessageField(value: &_storage._processingInfo) }() + case 20: try { try decoder.decodeSingularEnumField(value: &_storage._requestOrigin) }() default: break } } @@ -18878,39 +17324,82 @@ extension Clarifai_Api_OutputInfo: SwiftProtobuf.Message, SwiftProtobuf._Message // 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._data { - try visitor.visitSingularMessageField(value: v, fieldNumber: 1) - } }() - try { if let v = _storage._outputConfig { + if !_storage._id.isEmpty { + try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) + } + try { if let v = _storage._createdAt { try visitor.visitSingularMessageField(value: v, fieldNumber: 2) } }() - if !_storage._message.isEmpty { - try visitor.visitSingularStringField(value: _storage._message, fieldNumber: 3) + try { if let v = _storage._modifiedAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + } }() + if !_storage._appID.isEmpty { + try visitor.visitSingularStringField(value: _storage._appID, fieldNumber: 4) } - try { if let v = _storage._fieldsMap { - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + if !_storage._userID.isEmpty { + try visitor.visitSingularStringField(value: _storage._userID, fieldNumber: 5) + } + if !_storage._datasetID.isEmpty { + try visitor.visitSingularStringField(value: _storage._datasetID, fieldNumber: 6) + } + try { if let v = _storage._status { + try visitor.visitSingularMessageField(value: v, fieldNumber: 8) } }() - try { if let v = _storage._params { - try visitor.visitSingularMessageField(value: v, fieldNumber: 7) + if !_storage._description_p.isEmpty { + try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 10) + } + try { if let v = _storage._metadata { + try visitor.visitSingularMessageField(value: v, fieldNumber: 12) } }() - if !_storage._paramsSpecs.isEmpty { - try visitor.visitRepeatedMessageField(value: _storage._paramsSpecs, fieldNumber: 8) + try { if let v = _storage._visibility { + try visitor.visitSingularMessageField(value: v, fieldNumber: 13) + } }() + if !_storage._embedModelVersionIds.isEmpty { + try visitor.visitRepeatedStringField(value: _storage._embedModelVersionIds, fieldNumber: 14) + } + try { if case .annotationFilterConfig(let v)? = _storage._dataConfig { + try visitor.visitSingularMessageField(value: v, fieldNumber: 15) + } }() + if !_storage._metrics.isEmpty { + try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMessageMap.self, value: _storage._metrics, fieldNumber: 16) + } + try { if let v = _storage._exportInfo { + try visitor.visitSingularMessageField(value: v, fieldNumber: 17) + } }() + try { if case .modelPredictConfig(let v)? = _storage._dataConfig { + try visitor.visitSingularMessageField(value: v, fieldNumber: 18) + } }() + try { if let v = _storage._processingInfo { + try visitor.visitSingularMessageField(value: v, fieldNumber: 19) + } }() + if _storage._requestOrigin != .notSet { + try visitor.visitSingularEnumField(value: _storage._requestOrigin, fieldNumber: 20) } } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_OutputInfo, rhs: Clarifai_Api_OutputInfo) -> Bool { + public static func ==(lhs: Clarifai_Api_DatasetVersion, rhs: Clarifai_Api_DatasetVersion) -> 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._data != rhs_storage._data {return false} - if _storage._outputConfig != rhs_storage._outputConfig {return false} - if _storage._message != rhs_storage._message {return false} - if _storage._fieldsMap != rhs_storage._fieldsMap {return false} - if _storage._params != rhs_storage._params {return false} - if _storage._paramsSpecs != rhs_storage._paramsSpecs {return false} + if _storage._id != rhs_storage._id {return false} + if _storage._createdAt != rhs_storage._createdAt {return false} + if _storage._modifiedAt != rhs_storage._modifiedAt {return false} + if _storage._appID != rhs_storage._appID {return false} + if _storage._userID != rhs_storage._userID {return false} + if _storage._datasetID != rhs_storage._datasetID {return false} + if _storage._dataConfig != rhs_storage._dataConfig {return false} + if _storage._status != rhs_storage._status {return false} + if _storage._description_p != rhs_storage._description_p {return false} + if _storage._processingInfo != rhs_storage._processingInfo {return false} + if _storage._metrics != rhs_storage._metrics {return false} + if _storage._exportInfo != rhs_storage._exportInfo {return false} + if _storage._metadata != rhs_storage._metadata {return false} + if _storage._visibility != rhs_storage._visibility {return false} + if _storage._embedModelVersionIds != rhs_storage._embedModelVersionIds {return false} + if _storage._requestOrigin != rhs_storage._requestOrigin {return false} return true } if !storagesAreEqual {return false} @@ -18920,27 +17409,63 @@ extension Clarifai_Api_OutputInfo: SwiftProtobuf.Message, SwiftProtobuf._Message } } -extension Clarifai_Api_InputInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".InputInfo" +extension Clarifai_Api_AnnotationFilterConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".AnnotationFilterConfig" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "fields_map"), - 2: .same(proto: "params"), - 3: .standard(proto: "base_embed_model"), + 1: .standard(proto: "annotation_filter"), + 2: .standard(proto: "ignore_empty_inputs"), ] - fileprivate class _StorageClass { - var _fieldsMap: SwiftProtobuf.Google_Protobuf_Struct? = nil - var _params: SwiftProtobuf.Google_Protobuf_Struct? = nil - var _baseEmbedModel: Clarifai_Api_Model? = nil + 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._annotationFilter) }() + case 2: try { try decoder.decodeSingularBoolField(value: &self.ignoreEmptyInputs) }() + 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._annotationFilter { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } }() + if self.ignoreEmptyInputs != false { + try visitor.visitSingularBoolField(value: self.ignoreEmptyInputs, fieldNumber: 2) + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Clarifai_Api_AnnotationFilterConfig, rhs: Clarifai_Api_AnnotationFilterConfig) -> Bool { + if lhs._annotationFilter != rhs._annotationFilter {return false} + if lhs.ignoreEmptyInputs != rhs.ignoreEmptyInputs {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Clarifai_Api_ModelPredictConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".ModelPredictConfig" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "model"), + ] + + fileprivate class _StorageClass { + var _model: Clarifai_Api_Model? = nil static let defaultInstance = _StorageClass() private init() {} init(copying source: _StorageClass) { - _fieldsMap = source._fieldsMap - _params = source._params - _baseEmbedModel = source._baseEmbedModel + _model = source._model } } @@ -18959,9 +17484,7 @@ extension Clarifai_Api_InputInfo: 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.decodeSingularMessageField(value: &_storage._fieldsMap) }() - case 2: try { try decoder.decodeSingularMessageField(value: &_storage._params) }() - case 3: try { try decoder.decodeSingularMessageField(value: &_storage._baseEmbedModel) }() + case 1: try { try decoder.decodeSingularMessageField(value: &_storage._model) }() default: break } } @@ -18974,27 +17497,19 @@ extension Clarifai_Api_InputInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageI // 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._fieldsMap { + try { if let v = _storage._model { try visitor.visitSingularMessageField(value: v, fieldNumber: 1) } }() - try { if let v = _storage._params { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - try { if let v = _storage._baseEmbedModel { - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - } }() } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_InputInfo, rhs: Clarifai_Api_InputInfo) -> Bool { + public static func ==(lhs: Clarifai_Api_ModelPredictConfig, rhs: Clarifai_Api_ModelPredictConfig) -> 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._fieldsMap != rhs_storage._fieldsMap {return false} - if _storage._params != rhs_storage._params {return false} - if _storage._baseEmbedModel != rhs_storage._baseEmbedModel {return false} + if _storage._model != rhs_storage._model {return false} return true } if !storagesAreEqual {return false} @@ -19004,27 +17519,72 @@ extension Clarifai_Api_InputInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageI } } -extension Clarifai_Api_TrainInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".TrainInfo" +extension Clarifai_Api_DatasetVersionMetrics: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".DatasetVersionMetrics" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "params"), - 2: .same(proto: "dataset"), - 3: .standard(proto: "resume_from_model"), + 1: .standard(proto: "inputs_count"), + 6: .standard(proto: "unlabeled_inputs_count"), + 8: .standard(proto: "inputs_with_metadata_count"), + 9: .standard(proto: "inputs_with_geo_count"), + 20: .standard(proto: "regions_count"), + 21: .standard(proto: "region_location_matrix"), + 22: .standard(proto: "bounding_boxes_count"), + 23: .standard(proto: "polygons_count"), + 24: .standard(proto: "points_count"), + 25: .standard(proto: "masks_count"), + 60: .standard(proto: "region_inputs_count"), + 61: .standard(proto: "region_frames_count"), + 30: .standard(proto: "frames_count"), + 70: .standard(proto: "frame_inputs_count"), + 40: .standard(proto: "embeddings_count"), + 50: .standard(proto: "positive_input_tags_count"), + 51: .standard(proto: "positive_region_tags_count"), + 52: .standard(proto: "positive_frame_tags_count"), ] fileprivate class _StorageClass { - var _params: SwiftProtobuf.Google_Protobuf_Struct? = nil - var _dataset: Clarifai_Api_Dataset? = nil - var _resumeFromModel: Clarifai_Api_Model? = nil + var _inputsCount: SwiftProtobuf.Google_Protobuf_UInt64Value? = nil + var _unlabeledInputsCount: SwiftProtobuf.Google_Protobuf_UInt64Value? = nil + var _inputsWithMetadataCount: SwiftProtobuf.Google_Protobuf_UInt64Value? = nil + var _inputsWithGeoCount: SwiftProtobuf.Google_Protobuf_UInt64Value? = nil + var _regionsCount: SwiftProtobuf.Google_Protobuf_UInt64Value? = nil + var _regionLocationMatrix: MatrixUint64? = nil + var _boundingBoxesCount: SwiftProtobuf.Google_Protobuf_UInt64Value? = nil + var _polygonsCount: SwiftProtobuf.Google_Protobuf_UInt64Value? = nil + var _pointsCount: SwiftProtobuf.Google_Protobuf_UInt64Value? = nil + var _masksCount: SwiftProtobuf.Google_Protobuf_UInt64Value? = nil + var _regionInputsCount: SwiftProtobuf.Google_Protobuf_UInt64Value? = nil + var _regionFramesCount: SwiftProtobuf.Google_Protobuf_UInt64Value? = nil + var _framesCount: SwiftProtobuf.Google_Protobuf_UInt64Value? = nil + var _frameInputsCount: SwiftProtobuf.Google_Protobuf_UInt64Value? = nil + var _embeddingsCount: SwiftProtobuf.Google_Protobuf_UInt64Value? = nil + var _positiveInputTagsCount: SwiftProtobuf.Google_Protobuf_UInt64Value? = nil + var _positiveRegionTagsCount: SwiftProtobuf.Google_Protobuf_UInt64Value? = nil + var _positiveFrameTagsCount: SwiftProtobuf.Google_Protobuf_UInt64Value? = nil static let defaultInstance = _StorageClass() private init() {} init(copying source: _StorageClass) { - _params = source._params - _dataset = source._dataset - _resumeFromModel = source._resumeFromModel + _inputsCount = source._inputsCount + _unlabeledInputsCount = source._unlabeledInputsCount + _inputsWithMetadataCount = source._inputsWithMetadataCount + _inputsWithGeoCount = source._inputsWithGeoCount + _regionsCount = source._regionsCount + _regionLocationMatrix = source._regionLocationMatrix + _boundingBoxesCount = source._boundingBoxesCount + _polygonsCount = source._polygonsCount + _pointsCount = source._pointsCount + _masksCount = source._masksCount + _regionInputsCount = source._regionInputsCount + _regionFramesCount = source._regionFramesCount + _framesCount = source._framesCount + _frameInputsCount = source._frameInputsCount + _embeddingsCount = source._embeddingsCount + _positiveInputTagsCount = source._positiveInputTagsCount + _positiveRegionTagsCount = source._positiveRegionTagsCount + _positiveFrameTagsCount = source._positiveFrameTagsCount } } @@ -19043,9 +17603,24 @@ extension Clarifai_Api_TrainInfo: 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.decodeSingularMessageField(value: &_storage._params) }() - case 2: try { try decoder.decodeSingularMessageField(value: &_storage._dataset) }() - case 3: try { try decoder.decodeSingularMessageField(value: &_storage._resumeFromModel) }() + case 1: try { try decoder.decodeSingularMessageField(value: &_storage._inputsCount) }() + case 6: try { try decoder.decodeSingularMessageField(value: &_storage._unlabeledInputsCount) }() + case 8: try { try decoder.decodeSingularMessageField(value: &_storage._inputsWithMetadataCount) }() + case 9: try { try decoder.decodeSingularMessageField(value: &_storage._inputsWithGeoCount) }() + case 20: try { try decoder.decodeSingularMessageField(value: &_storage._regionsCount) }() + case 21: try { try decoder.decodeSingularMessageField(value: &_storage._regionLocationMatrix) }() + case 22: try { try decoder.decodeSingularMessageField(value: &_storage._boundingBoxesCount) }() + case 23: try { try decoder.decodeSingularMessageField(value: &_storage._polygonsCount) }() + case 24: try { try decoder.decodeSingularMessageField(value: &_storage._pointsCount) }() + case 25: try { try decoder.decodeSingularMessageField(value: &_storage._masksCount) }() + case 30: try { try decoder.decodeSingularMessageField(value: &_storage._framesCount) }() + case 40: try { try decoder.decodeSingularMessageField(value: &_storage._embeddingsCount) }() + case 50: try { try decoder.decodeSingularMessageField(value: &_storage._positiveInputTagsCount) }() + case 51: try { try decoder.decodeSingularMessageField(value: &_storage._positiveRegionTagsCount) }() + case 52: try { try decoder.decodeSingularMessageField(value: &_storage._positiveFrameTagsCount) }() + case 60: try { try decoder.decodeSingularMessageField(value: &_storage._regionInputsCount) }() + case 61: try { try decoder.decodeSingularMessageField(value: &_storage._regionFramesCount) }() + case 70: try { try decoder.decodeSingularMessageField(value: &_storage._frameInputsCount) }() default: break } } @@ -19058,27 +17633,87 @@ extension Clarifai_Api_TrainInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageI // 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._params { + try { if let v = _storage._inputsCount { try visitor.visitSingularMessageField(value: v, fieldNumber: 1) } }() - try { if let v = _storage._dataset { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + try { if let v = _storage._unlabeledInputsCount { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) } }() - try { if let v = _storage._resumeFromModel { - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + try { if let v = _storage._inputsWithMetadataCount { + try visitor.visitSingularMessageField(value: v, fieldNumber: 8) + } }() + try { if let v = _storage._inputsWithGeoCount { + try visitor.visitSingularMessageField(value: v, fieldNumber: 9) + } }() + try { if let v = _storage._regionsCount { + try visitor.visitSingularMessageField(value: v, fieldNumber: 20) + } }() + try { if let v = _storage._regionLocationMatrix { + try visitor.visitSingularMessageField(value: v, fieldNumber: 21) + } }() + try { if let v = _storage._boundingBoxesCount { + try visitor.visitSingularMessageField(value: v, fieldNumber: 22) + } }() + try { if let v = _storage._polygonsCount { + try visitor.visitSingularMessageField(value: v, fieldNumber: 23) + } }() + try { if let v = _storage._pointsCount { + try visitor.visitSingularMessageField(value: v, fieldNumber: 24) + } }() + try { if let v = _storage._masksCount { + try visitor.visitSingularMessageField(value: v, fieldNumber: 25) + } }() + try { if let v = _storage._framesCount { + try visitor.visitSingularMessageField(value: v, fieldNumber: 30) + } }() + try { if let v = _storage._embeddingsCount { + try visitor.visitSingularMessageField(value: v, fieldNumber: 40) + } }() + try { if let v = _storage._positiveInputTagsCount { + try visitor.visitSingularMessageField(value: v, fieldNumber: 50) + } }() + try { if let v = _storage._positiveRegionTagsCount { + try visitor.visitSingularMessageField(value: v, fieldNumber: 51) + } }() + try { if let v = _storage._positiveFrameTagsCount { + try visitor.visitSingularMessageField(value: v, fieldNumber: 52) + } }() + try { if let v = _storage._regionInputsCount { + try visitor.visitSingularMessageField(value: v, fieldNumber: 60) + } }() + try { if let v = _storage._regionFramesCount { + try visitor.visitSingularMessageField(value: v, fieldNumber: 61) + } }() + try { if let v = _storage._frameInputsCount { + try visitor.visitSingularMessageField(value: v, fieldNumber: 70) } }() } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_TrainInfo, rhs: Clarifai_Api_TrainInfo) -> Bool { + public static func ==(lhs: Clarifai_Api_DatasetVersionMetrics, rhs: Clarifai_Api_DatasetVersionMetrics) -> 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._params != rhs_storage._params {return false} - if _storage._dataset != rhs_storage._dataset {return false} - if _storage._resumeFromModel != rhs_storage._resumeFromModel {return false} + if _storage._inputsCount != rhs_storage._inputsCount {return false} + if _storage._unlabeledInputsCount != rhs_storage._unlabeledInputsCount {return false} + if _storage._inputsWithMetadataCount != rhs_storage._inputsWithMetadataCount {return false} + if _storage._inputsWithGeoCount != rhs_storage._inputsWithGeoCount {return false} + if _storage._regionsCount != rhs_storage._regionsCount {return false} + if _storage._regionLocationMatrix != rhs_storage._regionLocationMatrix {return false} + if _storage._boundingBoxesCount != rhs_storage._boundingBoxesCount {return false} + if _storage._polygonsCount != rhs_storage._polygonsCount {return false} + if _storage._pointsCount != rhs_storage._pointsCount {return false} + if _storage._masksCount != rhs_storage._masksCount {return false} + if _storage._regionInputsCount != rhs_storage._regionInputsCount {return false} + if _storage._regionFramesCount != rhs_storage._regionFramesCount {return false} + if _storage._framesCount != rhs_storage._framesCount {return false} + if _storage._frameInputsCount != rhs_storage._frameInputsCount {return false} + if _storage._embeddingsCount != rhs_storage._embeddingsCount {return false} + if _storage._positiveInputTagsCount != rhs_storage._positiveInputTagsCount {return false} + if _storage._positiveRegionTagsCount != rhs_storage._positiveRegionTagsCount {return false} + if _storage._positiveFrameTagsCount != rhs_storage._positiveFrameTagsCount {return false} return true } if !storagesAreEqual {return false} @@ -19088,10 +17723,13 @@ extension Clarifai_Api_TrainInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageI } } -extension Clarifai_Api_EvalInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".EvalInfo" +extension Clarifai_Api_DatasetVersionMetricsGroup: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".DatasetVersionMetricsGroup" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "params"), + 1: .standard(proto: "parent_path"), + 2: .same(proto: "type"), + 3: .same(proto: "value"), + 4: .same(proto: "metrics"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -19100,7 +17738,10 @@ extension Clarifai_Api_EvalInfo: 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.decodeSingularMessageField(value: &self._params) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.parentPath) }() + case 2: try { try decoder.decodeSingularEnumField(value: &self.type) }() + case 3: try { try decoder.decodeSingularMessageField(value: &self._value) }() + case 4: try { try decoder.decodeSingularMessageField(value: &self._metrics) }() default: break } } @@ -19111,71 +17752,37 @@ extension Clarifai_Api_EvalInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageIm // 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._params { - try visitor.visitSingularMessageField(value: v, fieldNumber: 1) - } }() - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_EvalInfo, rhs: Clarifai_Api_EvalInfo) -> Bool { - if lhs._params != rhs._params {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Clarifai_Api_ImportInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".ImportInfo" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "params"), - ] - - 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._params) }() - default: break - } + if !self.parentPath.isEmpty { + try visitor.visitSingularStringField(value: self.parentPath, fieldNumber: 1) } - } - - 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._params { - try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + if self.type != .notSet { + try visitor.visitSingularEnumField(value: self.type, fieldNumber: 2) + } + try { if let v = self._value { + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + } }() + try { if let v = self._metrics { + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_ImportInfo, rhs: Clarifai_Api_ImportInfo) -> Bool { - if lhs._params != rhs._params {return false} + public static func ==(lhs: Clarifai_Api_DatasetVersionMetricsGroup, rhs: Clarifai_Api_DatasetVersionMetricsGroup) -> Bool { + if lhs.parentPath != rhs.parentPath {return false} + if lhs.type != rhs.type {return false} + if lhs._value != rhs._value {return false} + if lhs._metrics != rhs._metrics {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_OutputConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".OutputConfig" +extension Clarifai_Api_DatasetVersionExportInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".DatasetVersionExportInfo" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "concepts_mutually_exclusive"), - 3: .standard(proto: "existing_model_id"), - 4: .same(proto: "language"), - 5: .standard(proto: "hyper_parameters"), - 6: .standard(proto: "max_concepts"), - 7: .standard(proto: "min_value"), - 8: .standard(proto: "select_concepts"), - 9: .standard(proto: "training_timeout"), - 10: .standard(proto: "sample_ms"), - 13: .standard(proto: "hyper_params"), - 14: .standard(proto: "embed_model_version_id"), - 15: .standard(proto: "fail_on_missing_positive_examples"), - 17: .standard(proto: "model_metadata"), + 1: .standard(proto: "clarifai_data_protobuf"), + 3: .standard(proto: "clarifai_data_json"), + 2: .same(proto: "coco"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -19184,19 +17791,9 @@ extension Clarifai_Api_OutputConfig: SwiftProtobuf.Message, SwiftProtobuf._Messa // 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.decodeSingularBoolField(value: &self.conceptsMutuallyExclusive) }() - case 3: try { try decoder.decodeSingularStringField(value: &self.existingModelID) }() - case 4: try { try decoder.decodeSingularStringField(value: &self.language) }() - case 5: try { try decoder.decodeSingularStringField(value: &self.hyperParameters) }() - case 6: try { try decoder.decodeSingularUInt32Field(value: &self.maxConcepts) }() - case 7: try { try decoder.decodeSingularFloatField(value: &self.minValue) }() - case 8: try { try decoder.decodeRepeatedMessageField(value: &self.selectConcepts) }() - case 9: try { try decoder.decodeSingularUInt32Field(value: &self.trainingTimeout) }() - case 10: try { try decoder.decodeSingularUInt32Field(value: &self.sampleMs) }() - case 13: try { try decoder.decodeSingularMessageField(value: &self._hyperParams) }() - case 14: try { try decoder.decodeSingularStringField(value: &self.embedModelVersionID) }() - case 15: try { try decoder.decodeSingularBoolField(value: &self.failOnMissingPositiveExamples) }() - case 17: try { try decoder.decodeSingularMessageField(value: &self._modelMetadata) }() + 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 } } @@ -19207,178 +17804,131 @@ extension Clarifai_Api_OutputConfig: SwiftProtobuf.Message, SwiftProtobuf._Messa // 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.conceptsMutuallyExclusive != false { - try visitor.visitSingularBoolField(value: self.conceptsMutuallyExclusive, fieldNumber: 1) - } - if !self.existingModelID.isEmpty { - try visitor.visitSingularStringField(value: self.existingModelID, fieldNumber: 3) - } - if !self.language.isEmpty { - try visitor.visitSingularStringField(value: self.language, fieldNumber: 4) - } - if !self.hyperParameters.isEmpty { - try visitor.visitSingularStringField(value: self.hyperParameters, fieldNumber: 5) - } - if self.maxConcepts != 0 { - try visitor.visitSingularUInt32Field(value: self.maxConcepts, fieldNumber: 6) - } - if self.minValue != 0 { - try visitor.visitSingularFloatField(value: self.minValue, fieldNumber: 7) - } - if !self.selectConcepts.isEmpty { - try visitor.visitRepeatedMessageField(value: self.selectConcepts, fieldNumber: 8) - } - if self.trainingTimeout != 0 { - try visitor.visitSingularUInt32Field(value: self.trainingTimeout, fieldNumber: 9) - } - if self.sampleMs != 0 { - try visitor.visitSingularUInt32Field(value: self.sampleMs, fieldNumber: 10) - } - try { if let v = self._hyperParams { - try visitor.visitSingularMessageField(value: v, fieldNumber: 13) + try { if let v = self._clarifaiDataProtobuf { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) } }() - if !self.embedModelVersionID.isEmpty { - try visitor.visitSingularStringField(value: self.embedModelVersionID, fieldNumber: 14) - } - if self.failOnMissingPositiveExamples != false { - try visitor.visitSingularBoolField(value: self.failOnMissingPositiveExamples, fieldNumber: 15) - } - try { if let v = self._modelMetadata { - try visitor.visitSingularMessageField(value: v, fieldNumber: 17) + 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_OutputConfig, rhs: Clarifai_Api_OutputConfig) -> Bool { - if lhs.conceptsMutuallyExclusive != rhs.conceptsMutuallyExclusive {return false} - if lhs.existingModelID != rhs.existingModelID {return false} - if lhs.language != rhs.language {return false} - if lhs.hyperParameters != rhs.hyperParameters {return false} - if lhs.maxConcepts != rhs.maxConcepts {return false} - if lhs.minValue != rhs.minValue {return false} - if lhs.selectConcepts != rhs.selectConcepts {return false} - if lhs.trainingTimeout != rhs.trainingTimeout {return false} - if lhs.sampleMs != rhs.sampleMs {return false} - if lhs._hyperParams != rhs._hyperParams {return false} - if lhs.embedModelVersionID != rhs.embedModelVersionID {return false} - if lhs.failOnMissingPositiveExamples != rhs.failOnMissingPositiveExamples {return false} - if lhs._modelMetadata != rhs._modelMetadata {return false} + 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_ModelType: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".ModelType" +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: "id"), - 2: .same(proto: "title"), - 3: .same(proto: "description"), - 5: .standard(proto: "input_fields"), - 6: .standard(proto: "output_fields"), - 8: .same(proto: "trainable"), - 9: .same(proto: "creatable"), - 10: .standard(proto: "internal_only"), - 11: .standard(proto: "model_type_fields"), - 12: .standard(proto: "requires_sequential_frames"), - 16: .standard(proto: "expected_input_layers"), - 17: .standard(proto: "expected_output_layers"), - 18: .standard(proto: "evaluation_type"), + 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 _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) { + _format = source._format + _status = source._status + _url = source._url + _size = source._size + _includeEmbeddings = source._includeEmbeddings + } + } + + 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.id) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.title) }() - case 3: try { try decoder.decodeSingularStringField(value: &self.description_p) }() - case 5: try { try decoder.decodeRepeatedStringField(value: &self.inputFields) }() - case 6: try { try decoder.decodeRepeatedStringField(value: &self.outputFields) }() - case 8: try { try decoder.decodeSingularBoolField(value: &self.trainable) }() - case 9: try { try decoder.decodeSingularBoolField(value: &self.creatable) }() - case 10: try { try decoder.decodeSingularBoolField(value: &self.internalOnly) }() - case 11: try { try decoder.decodeRepeatedMessageField(value: &self.modelTypeFields) }() - case 12: try { try decoder.decodeSingularBoolField(value: &self.requiresSequentialFrames) }() - case 16: try { try decoder.decodeRepeatedMessageField(value: &self.expectedInputLayers) }() - case 17: try { try decoder.decodeRepeatedMessageField(value: &self.expectedOutputLayers) }() - case 18: try { try decoder.decodeSingularEnumField(value: &self.evaluationType) }() - 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.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 + } } } } public func traverse(visitor: inout V) throws { - if !self.id.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) - } - if !self.title.isEmpty { - try visitor.visitSingularStringField(value: self.title, fieldNumber: 2) - } - if !self.description_p.isEmpty { - try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 3) - } - if !self.inputFields.isEmpty { - try visitor.visitRepeatedStringField(value: self.inputFields, fieldNumber: 5) - } - if !self.outputFields.isEmpty { - try visitor.visitRepeatedStringField(value: self.outputFields, fieldNumber: 6) - } - if self.trainable != false { - try visitor.visitSingularBoolField(value: self.trainable, fieldNumber: 8) - } - if self.creatable != false { - try visitor.visitSingularBoolField(value: self.creatable, fieldNumber: 9) - } - if self.internalOnly != false { - try visitor.visitSingularBoolField(value: self.internalOnly, fieldNumber: 10) - } - if !self.modelTypeFields.isEmpty { - try visitor.visitRepeatedMessageField(value: self.modelTypeFields, fieldNumber: 11) - } - if self.requiresSequentialFrames != false { - try visitor.visitSingularBoolField(value: self.requiresSequentialFrames, fieldNumber: 12) - } - if !self.expectedInputLayers.isEmpty { - try visitor.visitRepeatedMessageField(value: self.expectedInputLayers, fieldNumber: 16) - } - if !self.expectedOutputLayers.isEmpty { - try visitor.visitRepeatedMessageField(value: self.expectedOutputLayers, fieldNumber: 17) - } - if self.evaluationType != .undefined { - try visitor.visitSingularEnumField(value: self.evaluationType, fieldNumber: 18) + 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._format != .notSet { + try visitor.visitSingularEnumField(value: _storage._format, fieldNumber: 1) + } + try { if let v = _storage._status { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + 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_ModelType, rhs: Clarifai_Api_ModelType) -> Bool { - if lhs.id != rhs.id {return false} - if lhs.title != rhs.title {return false} - if lhs.description_p != rhs.description_p {return false} - if lhs.inputFields != rhs.inputFields {return false} - if lhs.outputFields != rhs.outputFields {return false} - if lhs.trainable != rhs.trainable {return false} - if lhs.creatable != rhs.creatable {return false} - if lhs.internalOnly != rhs.internalOnly {return false} - if lhs.modelTypeFields != rhs.modelTypeFields {return false} - if lhs.requiresSequentialFrames != rhs.requiresSequentialFrames {return false} - if lhs.expectedInputLayers != rhs.expectedInputLayers {return false} - if lhs.expectedOutputLayers != rhs.expectedOutputLayers {return false} - if lhs.evaluationType != rhs.evaluationType {return false} + 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._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} + } if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_ModelLayerInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".ModelLayerInfo" +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 = [ - 1: .standard(proto: "data_field_name"), - 2: .same(proto: "shapes"), - 3: .same(proto: "description"), - 4: .standard(proto: "requires_label_filename"), + 1: .standard(proto: "frame_interpolation_info"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -19387,46 +17937,34 @@ extension Clarifai_Api_ModelLayerInfo: 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.decodeSingularStringField(value: &self.dataFieldName) }() - case 2: try { try decoder.decodeRepeatedMessageField(value: &self.shapes) }() - case 3: try { try decoder.decodeSingularStringField(value: &self.description_p) }() - case 4: try { try decoder.decodeSingularBoolField(value: &self.requiresLabelFilename) }() + case 1: try { try decoder.decodeSingularMessageField(value: &self._frameInterpolationInfo) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.dataFieldName.isEmpty { - try visitor.visitSingularStringField(value: self.dataFieldName, fieldNumber: 1) - } - if !self.shapes.isEmpty { - try visitor.visitRepeatedMessageField(value: self.shapes, fieldNumber: 2) - } - if !self.description_p.isEmpty { - try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 3) - } - if self.requiresLabelFilename != false { - try visitor.visitSingularBoolField(value: self.requiresLabelFilename, fieldNumber: 4) - } + // 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._frameInterpolationInfo { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_ModelLayerInfo, rhs: Clarifai_Api_ModelLayerInfo) -> Bool { - if lhs.dataFieldName != rhs.dataFieldName {return false} - if lhs.shapes != rhs.shapes {return false} - if lhs.description_p != rhs.description_p {return false} - if lhs.requiresLabelFilename != rhs.requiresLabelFilename {return false} + public static func ==(lhs: Clarifai_Api_DatasetVersionProcessingInfo, rhs: Clarifai_Api_DatasetVersionProcessingInfo) -> Bool { + if lhs._frameInterpolationInfo != rhs._frameInterpolationInfo {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_TritonCondaEnvInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".TritonCondaEnvInfo" +extension Clarifai_Api_FrameInterpolationInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".FrameInterpolationInfo" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "conda_pack_url"), - 2: .standard(proto: "conda_yaml_url"), + 1: .standard(proto: "sample_ms"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -19435,38 +17973,38 @@ extension Clarifai_Api_TritonCondaEnvInfo: SwiftProtobuf.Message, SwiftProtobuf. // 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.condaPackURL) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.condaYamlURL) }() + case 1: try { try decoder.decodeSingularUInt32Field(value: &self.sampleMs) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.condaPackURL.isEmpty { - try visitor.visitSingularStringField(value: self.condaPackURL, fieldNumber: 1) - } - if !self.condaYamlURL.isEmpty { - try visitor.visitSingularStringField(value: self.condaYamlURL, fieldNumber: 2) + if self.sampleMs != 0 { + try visitor.visitSingularUInt32Field(value: self.sampleMs, fieldNumber: 1) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_TritonCondaEnvInfo, rhs: Clarifai_Api_TritonCondaEnvInfo) -> Bool { - if lhs.condaPackURL != rhs.condaPackURL {return false} - if lhs.condaYamlURL != rhs.condaYamlURL {return false} + public static func ==(lhs: Clarifai_Api_FrameInterpolationInfo, rhs: Clarifai_Api_FrameInterpolationInfo) -> Bool { + if lhs.sampleMs != rhs.sampleMs {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_LayerShape: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".LayerShape" +extension Clarifai_Api_Key: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Key" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "dims"), - 2: .standard(proto: "max_dims"), - 3: .standard(proto: "data_type"), - 4: .same(proto: "description"), + 1: .same(proto: "id"), + 8: .same(proto: "type"), + 2: .same(proto: "description"), + 3: .same(proto: "scopes"), + 7: .same(proto: "endpoints"), + 4: .same(proto: "apps"), + 5: .standard(proto: "created_at"), + 6: .standard(proto: "expires_at"), + 9: .standard(proto: "authorized_idp_ids"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -19475,158 +18013,394 @@ extension Clarifai_Api_LayerShape: 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.decodeRepeatedInt32Field(value: &self.dims) }() - case 2: try { try decoder.decodeRepeatedInt32Field(value: &self.maxDims) }() - case 3: try { try decoder.decodeSingularEnumField(value: &self.dataType) }() - case 4: try { try decoder.decodeSingularStringField(value: &self.description_p) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.description_p) }() + case 3: try { try decoder.decodeRepeatedStringField(value: &self.scopes) }() + case 4: try { try decoder.decodeRepeatedMessageField(value: &self.apps) }() + case 5: try { try decoder.decodeSingularMessageField(value: &self._createdAt) }() + case 6: try { try decoder.decodeSingularMessageField(value: &self._expiresAt) }() + case 7: try { try decoder.decodeRepeatedStringField(value: &self.endpoints) }() + case 8: try { try decoder.decodeSingularStringField(value: &self.type) }() + case 9: try { try decoder.decodeRepeatedStringField(value: &self.authorizedIdpIds) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.dims.isEmpty { - try visitor.visitPackedInt32Field(value: self.dims, fieldNumber: 1) + // 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.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) } - if !self.maxDims.isEmpty { - try visitor.visitPackedInt32Field(value: self.maxDims, fieldNumber: 2) + if !self.description_p.isEmpty { + try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 2) } - if self.dataType != .undefined { - try visitor.visitSingularEnumField(value: self.dataType, fieldNumber: 3) + if !self.scopes.isEmpty { + try visitor.visitRepeatedStringField(value: self.scopes, fieldNumber: 3) } - if !self.description_p.isEmpty { - try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 4) + if !self.apps.isEmpty { + try visitor.visitRepeatedMessageField(value: self.apps, fieldNumber: 4) + } + try { if let v = self._createdAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } }() + try { if let v = self._expiresAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + } }() + if !self.endpoints.isEmpty { + try visitor.visitRepeatedStringField(value: self.endpoints, fieldNumber: 7) + } + if !self.type.isEmpty { + try visitor.visitSingularStringField(value: self.type, fieldNumber: 8) + } + if !self.authorizedIdpIds.isEmpty { + try visitor.visitRepeatedStringField(value: self.authorizedIdpIds, fieldNumber: 9) + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Clarifai_Api_Key, rhs: Clarifai_Api_Key) -> Bool { + if lhs.id != rhs.id {return false} + if lhs.type != rhs.type {return false} + if lhs.description_p != rhs.description_p {return false} + if lhs.scopes != rhs.scopes {return false} + if lhs.endpoints != rhs.endpoints {return false} + if lhs.apps != rhs.apps {return false} + if lhs._createdAt != rhs._createdAt {return false} + if lhs._expiresAt != rhs._expiresAt {return false} + if lhs.authorizedIdpIds != rhs.authorizedIdpIds {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Clarifai_Api_Model: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Model" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "id"), + 2: .same(proto: "name"), + 3: .standard(proto: "created_at"), + 19: .standard(proto: "modified_at"), + 4: .standard(proto: "app_id"), + 5: .standard(proto: "output_info"), + 6: .standard(proto: "model_version"), + 7: .standard(proto: "display_name"), + 9: .standard(proto: "user_id"), + 30: .standard(proto: "default_eval_info"), + 14: .standard(proto: "model_type_id"), + 26: .same(proto: "task"), + 15: .same(proto: "visibility"), + 16: .same(proto: "description"), + 17: .same(proto: "metadata"), + 27: .same(proto: "presets"), + 18: .same(proto: "notes"), + 20: .same(proto: "toolkits"), + 21: .standard(proto: "use_cases"), + 25: .same(proto: "languages"), + 31: .standard(proto: "languages_full"), + 32: .standard(proto: "check_consents"), + 22: .standard(proto: "is_starred"), + 23: .standard(proto: "star_count"), + 29: .standard(proto: "workflow_recommended"), + 33: .standard(proto: "bookmark_origin"), + 34: .same(proto: "image"), + 35: .standard(proto: "license_type"), + 36: .same(proto: "source"), + 37: .same(proto: "creator"), + 38: .standard(proto: "version_count"), + ] + + fileprivate class _StorageClass { + var _id: String = String() + var _name: String = String() + var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _modifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _appID: String = String() + var _outputInfo: Clarifai_Api_OutputInfo? = nil + var _modelVersion: Clarifai_Api_ModelVersion? = nil + var _displayName: String = String() + var _userID: String = String() + var _defaultEvalInfo: Clarifai_Api_EvalInfo? = nil + var _modelTypeID: String = String() + var _task: String = String() + var _visibility: Clarifai_Api_Visibility? = nil + var _description_p: String = String() + var _metadata: SwiftProtobuf.Google_Protobuf_Struct? = nil + var _presets: SwiftProtobuf.Google_Protobuf_Struct? = nil + var _notes: String = String() + var _toolkits: [String] = [] + var _useCases: [String] = [] + var _languages: [String] = [] + var _languagesFull: [Clarifai_Api_FullTag] = [] + var _checkConsents: [String] = [] + var _isStarred: Bool = false + var _starCount: Int32 = 0 + var _workflowRecommended: SwiftProtobuf.Google_Protobuf_BoolValue? = nil + var _bookmarkOrigin: Clarifai_Api_BookmarkOrigin? = nil + var _image: Clarifai_Api_Image? = nil + var _licenseType: Clarifai_Api_LicenseType = .unknownLicenseType + var _source: Clarifai_Api_Model.Source = .unknownSource + var _creator: String = String() + var _versionCount: Int32 = 0 + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _id = source._id + _name = source._name + _createdAt = source._createdAt + _modifiedAt = source._modifiedAt + _appID = source._appID + _outputInfo = source._outputInfo + _modelVersion = source._modelVersion + _displayName = source._displayName + _userID = source._userID + _defaultEvalInfo = source._defaultEvalInfo + _modelTypeID = source._modelTypeID + _task = source._task + _visibility = source._visibility + _description_p = source._description_p + _metadata = source._metadata + _presets = source._presets + _notes = source._notes + _toolkits = source._toolkits + _useCases = source._useCases + _languages = source._languages + _languagesFull = source._languagesFull + _checkConsents = source._checkConsents + _isStarred = source._isStarred + _starCount = source._starCount + _workflowRecommended = source._workflowRecommended + _bookmarkOrigin = source._bookmarkOrigin + _image = source._image + _licenseType = source._licenseType + _source = source._source + _creator = source._creator + _versionCount = source._versionCount } - try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_LayerShape, rhs: Clarifai_Api_LayerShape) -> Bool { - if lhs.dims != rhs.dims {return false} - if lhs.maxDims != rhs.maxDims {return false} - if lhs.dataType != rhs.dataType {return false} - if lhs.description_p != rhs.description_p {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true + fileprivate mutating func _uniqueStorage() -> _StorageClass { + if !isKnownUniquelyReferenced(&_storage) { + _storage = _StorageClass(copying: _storage) + } + return _storage } -} - -extension Clarifai_Api_ModelTypeField: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".ModelTypeField" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "path"), - 2: .standard(proto: "field_type"), - 3: .standard(proto: "default_value"), - 4: .same(proto: "description"), - 5: .same(proto: "placeholder"), - 6: .standard(proto: "model_type_enum_options"), - 7: .standard(proto: "internal_only"), - 8: .same(proto: "required"), - 9: .standard(proto: "model_type_range_info"), - ] 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.path) }() - case 2: try { try decoder.decodeSingularEnumField(value: &self.fieldType) }() - case 3: try { try decoder.decodeSingularMessageField(value: &self._defaultValue) }() - case 4: try { try decoder.decodeSingularStringField(value: &self.description_p) }() - case 5: try { try decoder.decodeSingularStringField(value: &self.placeholder) }() - case 6: try { try decoder.decodeRepeatedMessageField(value: &self.modelTypeEnumOptions) }() - case 7: try { try decoder.decodeSingularBoolField(value: &self.internalOnly) }() - case 8: try { try decoder.decodeSingularBoolField(value: &self.required) }() - case 9: try { try decoder.decodeSingularMessageField(value: &self._modelTypeRangeInfo) }() - 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.decodeSingularStringField(value: &_storage._id) }() + case 2: try { try decoder.decodeSingularStringField(value: &_storage._name) }() + case 3: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() + case 4: try { try decoder.decodeSingularStringField(value: &_storage._appID) }() + case 5: try { try decoder.decodeSingularMessageField(value: &_storage._outputInfo) }() + case 6: try { try decoder.decodeSingularMessageField(value: &_storage._modelVersion) }() + case 7: try { try decoder.decodeSingularStringField(value: &_storage._displayName) }() + case 9: try { try decoder.decodeSingularStringField(value: &_storage._userID) }() + case 14: try { try decoder.decodeSingularStringField(value: &_storage._modelTypeID) }() + case 15: try { try decoder.decodeSingularMessageField(value: &_storage._visibility) }() + case 16: try { try decoder.decodeSingularStringField(value: &_storage._description_p) }() + case 17: try { try decoder.decodeSingularMessageField(value: &_storage._metadata) }() + case 18: try { try decoder.decodeSingularStringField(value: &_storage._notes) }() + case 19: try { try decoder.decodeSingularMessageField(value: &_storage._modifiedAt) }() + case 20: try { try decoder.decodeRepeatedStringField(value: &_storage._toolkits) }() + case 21: try { try decoder.decodeRepeatedStringField(value: &_storage._useCases) }() + case 22: try { try decoder.decodeSingularBoolField(value: &_storage._isStarred) }() + case 23: try { try decoder.decodeSingularInt32Field(value: &_storage._starCount) }() + case 25: try { try decoder.decodeRepeatedStringField(value: &_storage._languages) }() + case 26: try { try decoder.decodeSingularStringField(value: &_storage._task) }() + case 27: try { try decoder.decodeSingularMessageField(value: &_storage._presets) }() + case 29: try { try decoder.decodeSingularMessageField(value: &_storage._workflowRecommended) }() + case 30: try { try decoder.decodeSingularMessageField(value: &_storage._defaultEvalInfo) }() + case 31: try { try decoder.decodeRepeatedMessageField(value: &_storage._languagesFull) }() + case 32: try { try decoder.decodeRepeatedStringField(value: &_storage._checkConsents) }() + case 33: try { try decoder.decodeSingularMessageField(value: &_storage._bookmarkOrigin) }() + case 34: try { try decoder.decodeSingularMessageField(value: &_storage._image) }() + case 35: try { try decoder.decodeSingularEnumField(value: &_storage._licenseType) }() + case 36: try { try decoder.decodeSingularEnumField(value: &_storage._source) }() + case 37: try { try decoder.decodeSingularStringField(value: &_storage._creator) }() + case 38: try { try decoder.decodeSingularInt32Field(value: &_storage._versionCount) }() + 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.path.isEmpty { - try visitor.visitSingularStringField(value: self.path, fieldNumber: 1) - } - if self.fieldType != .invalidModelTypeFieldType { - try visitor.visitSingularEnumField(value: self.fieldType, fieldNumber: 2) - } - try { if let v = self._defaultValue { - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - } }() - if !self.description_p.isEmpty { - try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 4) - } - if !self.placeholder.isEmpty { - try visitor.visitSingularStringField(value: self.placeholder, fieldNumber: 5) - } - if !self.modelTypeEnumOptions.isEmpty { - try visitor.visitRepeatedMessageField(value: self.modelTypeEnumOptions, fieldNumber: 6) - } - if self.internalOnly != false { - try visitor.visitSingularBoolField(value: self.internalOnly, fieldNumber: 7) - } - if self.required != false { - try visitor.visitSingularBoolField(value: self.required, fieldNumber: 8) + 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.isEmpty { + try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) + } + if !_storage._name.isEmpty { + try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 2) + } + try { if let v = _storage._createdAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + } }() + if !_storage._appID.isEmpty { + try visitor.visitSingularStringField(value: _storage._appID, fieldNumber: 4) + } + try { if let v = _storage._outputInfo { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } }() + try { if let v = _storage._modelVersion { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + } }() + if !_storage._displayName.isEmpty { + try visitor.visitSingularStringField(value: _storage._displayName, fieldNumber: 7) + } + if !_storage._userID.isEmpty { + try visitor.visitSingularStringField(value: _storage._userID, fieldNumber: 9) + } + if !_storage._modelTypeID.isEmpty { + try visitor.visitSingularStringField(value: _storage._modelTypeID, fieldNumber: 14) + } + try { if let v = _storage._visibility { + try visitor.visitSingularMessageField(value: v, fieldNumber: 15) + } }() + if !_storage._description_p.isEmpty { + try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 16) + } + try { if let v = _storage._metadata { + try visitor.visitSingularMessageField(value: v, fieldNumber: 17) + } }() + if !_storage._notes.isEmpty { + try visitor.visitSingularStringField(value: _storage._notes, fieldNumber: 18) + } + try { if let v = _storage._modifiedAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 19) + } }() + if !_storage._toolkits.isEmpty { + try visitor.visitRepeatedStringField(value: _storage._toolkits, fieldNumber: 20) + } + if !_storage._useCases.isEmpty { + try visitor.visitRepeatedStringField(value: _storage._useCases, fieldNumber: 21) + } + if _storage._isStarred != false { + try visitor.visitSingularBoolField(value: _storage._isStarred, fieldNumber: 22) + } + if _storage._starCount != 0 { + try visitor.visitSingularInt32Field(value: _storage._starCount, fieldNumber: 23) + } + if !_storage._languages.isEmpty { + try visitor.visitRepeatedStringField(value: _storage._languages, fieldNumber: 25) + } + if !_storage._task.isEmpty { + try visitor.visitSingularStringField(value: _storage._task, fieldNumber: 26) + } + try { if let v = _storage._presets { + try visitor.visitSingularMessageField(value: v, fieldNumber: 27) + } }() + try { if let v = _storage._workflowRecommended { + try visitor.visitSingularMessageField(value: v, fieldNumber: 29) + } }() + try { if let v = _storage._defaultEvalInfo { + try visitor.visitSingularMessageField(value: v, fieldNumber: 30) + } }() + if !_storage._languagesFull.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._languagesFull, fieldNumber: 31) + } + if !_storage._checkConsents.isEmpty { + try visitor.visitRepeatedStringField(value: _storage._checkConsents, fieldNumber: 32) + } + try { if let v = _storage._bookmarkOrigin { + try visitor.visitSingularMessageField(value: v, fieldNumber: 33) + } }() + try { if let v = _storage._image { + try visitor.visitSingularMessageField(value: v, fieldNumber: 34) + } }() + if _storage._licenseType != .unknownLicenseType { + try visitor.visitSingularEnumField(value: _storage._licenseType, fieldNumber: 35) + } + if _storage._source != .unknownSource { + try visitor.visitSingularEnumField(value: _storage._source, fieldNumber: 36) + } + if !_storage._creator.isEmpty { + try visitor.visitSingularStringField(value: _storage._creator, fieldNumber: 37) + } + if _storage._versionCount != 0 { + try visitor.visitSingularInt32Field(value: _storage._versionCount, fieldNumber: 38) + } } - try { if let v = self._modelTypeRangeInfo { - try visitor.visitSingularMessageField(value: v, fieldNumber: 9) - } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_ModelTypeField, rhs: Clarifai_Api_ModelTypeField) -> Bool { - if lhs.path != rhs.path {return false} - if lhs.fieldType != rhs.fieldType {return false} - if lhs._defaultValue != rhs._defaultValue {return false} - if lhs.description_p != rhs.description_p {return false} - if lhs.placeholder != rhs.placeholder {return false} - if lhs.modelTypeEnumOptions != rhs.modelTypeEnumOptions {return false} - if lhs.internalOnly != rhs.internalOnly {return false} - if lhs.required != rhs.required {return false} - if lhs._modelTypeRangeInfo != rhs._modelTypeRangeInfo {return false} + public static func ==(lhs: Clarifai_Api_Model, rhs: Clarifai_Api_Model) -> 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._createdAt != rhs_storage._createdAt {return false} + if _storage._modifiedAt != rhs_storage._modifiedAt {return false} + if _storage._appID != rhs_storage._appID {return false} + if _storage._outputInfo != rhs_storage._outputInfo {return false} + if _storage._modelVersion != rhs_storage._modelVersion {return false} + if _storage._displayName != rhs_storage._displayName {return false} + if _storage._userID != rhs_storage._userID {return false} + if _storage._defaultEvalInfo != rhs_storage._defaultEvalInfo {return false} + if _storage._modelTypeID != rhs_storage._modelTypeID {return false} + if _storage._task != rhs_storage._task {return false} + if _storage._visibility != rhs_storage._visibility {return false} + if _storage._description_p != rhs_storage._description_p {return false} + if _storage._metadata != rhs_storage._metadata {return false} + if _storage._presets != rhs_storage._presets {return false} + if _storage._notes != rhs_storage._notes {return false} + if _storage._toolkits != rhs_storage._toolkits {return false} + if _storage._useCases != rhs_storage._useCases {return false} + if _storage._languages != rhs_storage._languages {return false} + if _storage._languagesFull != rhs_storage._languagesFull {return false} + if _storage._checkConsents != rhs_storage._checkConsents {return false} + if _storage._isStarred != rhs_storage._isStarred {return false} + if _storage._starCount != rhs_storage._starCount {return false} + if _storage._workflowRecommended != rhs_storage._workflowRecommended {return false} + if _storage._bookmarkOrigin != rhs_storage._bookmarkOrigin {return false} + if _storage._image != rhs_storage._image {return false} + if _storage._licenseType != rhs_storage._licenseType {return false} + if _storage._source != rhs_storage._source {return false} + if _storage._creator != rhs_storage._creator {return false} + if _storage._versionCount != rhs_storage._versionCount {return false} + return true + } + if !storagesAreEqual {return false} + } if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_ModelTypeField.ModelTypeFieldType: SwiftProtobuf._ProtoNameProviding { +extension Clarifai_Api_Model.Source: SwiftProtobuf._ProtoNameProviding { public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "INVALID_MODEL_TYPE_FIELD_TYPE"), - 1: .same(proto: "BOOLEAN"), - 2: .same(proto: "STRING"), - 3: .same(proto: "NUMBER"), - 4: .same(proto: "ARRAY_OF_CONCEPTS"), - 5: .same(proto: "ARRAY_OF_CONCEPTS_WITH_THRESHOLD"), - 7: .same(proto: "RANGE"), - 8: .same(proto: "ENUM"), - 9: .same(proto: "COLLABORATORS"), - 10: .same(proto: "JSON"), - 11: .same(proto: "ARRAY_OF_NUMBERS"), - 12: .same(proto: "WORKFLOW_EMBED_MODELS"), - 13: .same(proto: "ARRAY_OF_STRINGS"), - 14: .same(proto: "RECURSIVE_ENUM"), - 15: .same(proto: "PYTHON_CODE"), - 16: .same(proto: "DATASET_ID"), - 17: .same(proto: "DATASET_VERSION_ID"), - 18: .same(proto: "ARRAY_OF_MODEL_CONCEPTS"), - 19: .same(proto: "DATASET"), - 20: .same(proto: "DATASET_VERSION"), - 21: .same(proto: "ENCRYPTED_STRING"), - 22: .same(proto: "CHECKPOINT_MODEL"), + 0: .same(proto: "UNKNOWN_SOURCE"), + 1: .same(proto: "HOSTED"), + 2: .same(proto: "WRAPPED"), ] } -extension Clarifai_Api_ModelTypeRangeInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".ModelTypeRangeInfo" +extension Clarifai_Api_ModelReference: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".ModelReference" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "min"), - 2: .same(proto: "max"), - 3: .same(proto: "step"), + 1: .same(proto: "id"), + 2: .standard(proto: "model_id"), + 3: .same(proto: "url"), + 4: .same(proto: "name"), + 5: .same(proto: "metadata"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -19635,45 +18409,59 @@ extension Clarifai_Api_ModelTypeRangeInfo: SwiftProtobuf.Message, SwiftProtobuf. // 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.decodeSingularFloatField(value: &self.min) }() - case 2: try { try decoder.decodeSingularFloatField(value: &self.max) }() - case 3: try { try decoder.decodeSingularFloatField(value: &self.step) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.modelID) }() + case 3: try { try decoder.decodeSingularStringField(value: &self.url) }() + case 4: try { try decoder.decodeSingularStringField(value: &self.name) }() + case 5: try { try decoder.decodeSingularMessageField(value: &self._metadata) }() default: break } } } public func traverse(visitor: inout V) throws { - if self.min != 0 { - try visitor.visitSingularFloatField(value: self.min, fieldNumber: 1) + // 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.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) } - if self.max != 0 { - try visitor.visitSingularFloatField(value: self.max, fieldNumber: 2) + if !self.modelID.isEmpty { + try visitor.visitSingularStringField(value: self.modelID, fieldNumber: 2) } - if self.step != 0 { - try visitor.visitSingularFloatField(value: self.step, fieldNumber: 3) + if !self.url.isEmpty { + try visitor.visitSingularStringField(value: self.url, fieldNumber: 3) } + if !self.name.isEmpty { + try visitor.visitSingularStringField(value: self.name, fieldNumber: 4) + } + try { if let v = self._metadata { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_ModelTypeRangeInfo, rhs: Clarifai_Api_ModelTypeRangeInfo) -> Bool { - if lhs.min != rhs.min {return false} - if lhs.max != rhs.max {return false} - if lhs.step != rhs.step {return false} + public static func ==(lhs: Clarifai_Api_ModelReference, rhs: Clarifai_Api_ModelReference) -> Bool { + if lhs.id != rhs.id {return false} + if lhs.modelID != rhs.modelID {return false} + if lhs.url != rhs.url {return false} + if lhs.name != rhs.name {return false} + if lhs._metadata != rhs._metadata {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_ModelTypeEnumOption: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".ModelTypeEnumOption" +extension Clarifai_Api_ModelVersionInputExample: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".ModelVersionInputExample" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ 1: .same(proto: "id"), - 5: .same(proto: "aliases"), - 2: .same(proto: "description"), - 3: .standard(proto: "model_type_fields"), - 4: .standard(proto: "internal_only"), - 6: .same(proto: "recommended"), + 2: .standard(proto: "model_id"), + 3: .standard(proto: "model_version_id"), + 4: .same(proto: "data"), + 5: .same(proto: "name"), + 6: .same(proto: "description"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -19683,204 +18471,267 @@ extension Clarifai_Api_ModelTypeEnumOption: SwiftProtobuf.Message, SwiftProtobuf // enabled. https://github.com/apple/swift-protobuf/issues/1034 switch fieldNumber { case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.description_p) }() - case 3: try { try decoder.decodeRepeatedMessageField(value: &self.modelTypeFields) }() - case 4: try { try decoder.decodeSingularBoolField(value: &self.internalOnly) }() - case 5: try { try decoder.decodeRepeatedMessageField(value: &self.aliases) }() - case 6: try { try decoder.decodeSingularBoolField(value: &self.recommended) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.modelID) }() + case 3: try { try decoder.decodeSingularStringField(value: &self.modelVersionID) }() + case 4: try { try decoder.decodeSingularMessageField(value: &self._data) }() + case 5: try { try decoder.decodeSingularStringField(value: &self.name) }() + case 6: try { try decoder.decodeSingularStringField(value: &self.description_p) }() 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.isEmpty { try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) } - if !self.description_p.isEmpty { - try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 2) - } - if !self.modelTypeFields.isEmpty { - try visitor.visitRepeatedMessageField(value: self.modelTypeFields, fieldNumber: 3) + if !self.modelID.isEmpty { + try visitor.visitSingularStringField(value: self.modelID, fieldNumber: 2) } - if self.internalOnly != false { - try visitor.visitSingularBoolField(value: self.internalOnly, fieldNumber: 4) + if !self.modelVersionID.isEmpty { + try visitor.visitSingularStringField(value: self.modelVersionID, fieldNumber: 3) } - if !self.aliases.isEmpty { - try visitor.visitRepeatedMessageField(value: self.aliases, fieldNumber: 5) + try { if let v = self._data { + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + } }() + if !self.name.isEmpty { + try visitor.visitSingularStringField(value: self.name, fieldNumber: 5) } - if self.recommended != false { - try visitor.visitSingularBoolField(value: self.recommended, fieldNumber: 6) + if !self.description_p.isEmpty { + try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 6) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_ModelTypeEnumOption, rhs: Clarifai_Api_ModelTypeEnumOption) -> Bool { + public static func ==(lhs: Clarifai_Api_ModelVersionInputExample, rhs: Clarifai_Api_ModelVersionInputExample) -> Bool { if lhs.id != rhs.id {return false} - if lhs.aliases != rhs.aliases {return false} + if lhs.modelID != rhs.modelID {return false} + if lhs.modelVersionID != rhs.modelVersionID {return false} + if lhs._data != rhs._data {return false} + if lhs.name != rhs.name {return false} if lhs.description_p != rhs.description_p {return false} - if lhs.modelTypeFields != rhs.modelTypeFields {return false} - if lhs.internalOnly != rhs.internalOnly {return false} - if lhs.recommended != rhs.recommended {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_ModelTypeEnumOptionAlias: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".ModelTypeEnumOptionAlias" +extension Clarifai_Api_OutputInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".OutputInfo" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "id_int"), - 2: .standard(proto: "wildcard_string"), + 1: .same(proto: "data"), + 2: .standard(proto: "output_config"), + 3: .same(proto: "message"), + 6: .standard(proto: "fields_map"), + 7: .same(proto: "params"), + 8: .standard(proto: "params_specs"), ] + fileprivate class _StorageClass { + var _data: Clarifai_Api_Data? = nil + var _outputConfig: Clarifai_Api_OutputConfig? = nil + var _message: String = String() + var _fieldsMap: SwiftProtobuf.Google_Protobuf_Struct? = nil + var _params: SwiftProtobuf.Google_Protobuf_Struct? = nil + var _paramsSpecs: [Clarifai_Api_ModelTypeField] = [] + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _data = source._data + _outputConfig = source._outputConfig + _message = source._message + _fieldsMap = source._fieldsMap + _params = source._params + _paramsSpecs = source._paramsSpecs + } + } + + 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.decodeSingularInt64Field(value: &self.idInt) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.wildcardString) }() - 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._data) }() + case 2: try { try decoder.decodeSingularMessageField(value: &_storage._outputConfig) }() + case 3: try { try decoder.decodeSingularStringField(value: &_storage._message) }() + case 6: try { try decoder.decodeSingularMessageField(value: &_storage._fieldsMap) }() + case 7: try { try decoder.decodeSingularMessageField(value: &_storage._params) }() + case 8: try { try decoder.decodeRepeatedMessageField(value: &_storage._paramsSpecs) }() + default: break + } } } } public func traverse(visitor: inout V) throws { - if self.idInt != 0 { - try visitor.visitSingularInt64Field(value: self.idInt, fieldNumber: 1) + 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._data { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } }() + try { if let v = _storage._outputConfig { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + if !_storage._message.isEmpty { + try visitor.visitSingularStringField(value: _storage._message, fieldNumber: 3) + } + try { if let v = _storage._fieldsMap { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + } }() + try { if let v = _storage._params { + try visitor.visitSingularMessageField(value: v, fieldNumber: 7) + } }() + if !_storage._paramsSpecs.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._paramsSpecs, fieldNumber: 8) + } } - if !self.wildcardString.isEmpty { - try visitor.visitSingularStringField(value: self.wildcardString, fieldNumber: 2) + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Clarifai_Api_OutputInfo, rhs: Clarifai_Api_OutputInfo) -> 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._data != rhs_storage._data {return false} + if _storage._outputConfig != rhs_storage._outputConfig {return false} + if _storage._message != rhs_storage._message {return false} + if _storage._fieldsMap != rhs_storage._fieldsMap {return false} + if _storage._params != rhs_storage._params {return false} + if _storage._paramsSpecs != rhs_storage._paramsSpecs {return false} + return true + } + if !storagesAreEqual {return false} } - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_ModelTypeEnumOptionAlias, rhs: Clarifai_Api_ModelTypeEnumOptionAlias) -> Bool { - if lhs.idInt != rhs.idInt {return false} - if lhs.wildcardString != rhs.wildcardString {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_ModelQuery: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".ModelQuery" +extension Clarifai_Api_InputInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".InputInfo" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "name"), - 3: .standard(proto: "model_type_id"), + 1: .standard(proto: "fields_map"), + 2: .same(proto: "params"), + 3: .standard(proto: "base_embed_model"), ] + fileprivate class _StorageClass { + var _fieldsMap: SwiftProtobuf.Google_Protobuf_Struct? = nil + var _params: SwiftProtobuf.Google_Protobuf_Struct? = nil + var _baseEmbedModel: Clarifai_Api_Model? = nil + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _fieldsMap = source._fieldsMap + _params = source._params + _baseEmbedModel = source._baseEmbedModel + } + } + + 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 3: try { try decoder.decodeSingularStringField(value: &self.modelTypeID) }() - 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._fieldsMap) }() + case 2: try { try decoder.decodeSingularMessageField(value: &_storage._params) }() + case 3: try { try decoder.decodeSingularMessageField(value: &_storage._baseEmbedModel) }() + default: break + } } } } public func traverse(visitor: inout V) throws { - if !self.name.isEmpty { - try visitor.visitSingularStringField(value: self.name, fieldNumber: 1) - } - if !self.modelTypeID.isEmpty { - try visitor.visitSingularStringField(value: self.modelTypeID, 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 + try { if let v = _storage._fieldsMap { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } }() + try { if let v = _storage._params { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + try { if let v = _storage._baseEmbedModel { + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + } }() } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_ModelQuery, rhs: Clarifai_Api_ModelQuery) -> Bool { - if lhs.name != rhs.name {return false} - if lhs.modelTypeID != rhs.modelTypeID {return false} + public static func ==(lhs: Clarifai_Api_InputInfo, rhs: Clarifai_Api_InputInfo) -> 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._fieldsMap != rhs_storage._fieldsMap {return false} + if _storage._params != rhs_storage._params {return false} + if _storage._baseEmbedModel != rhs_storage._baseEmbedModel {return false} + return true + } + if !storagesAreEqual {return false} + } if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_ModelVersion: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".ModelVersion" +extension Clarifai_Api_TrainInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".TrainInfo" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .standard(proto: "created_at"), - 3: .same(proto: "status"), - 4: .standard(proto: "active_concept_count"), - 5: .same(proto: "metrics"), - 6: .standard(proto: "total_input_count"), - 7: .standard(proto: "pretrained_model_config"), - 10: .standard(proto: "completed_at"), - 11: .same(proto: "description"), - 12: .same(proto: "visibility"), - 13: .standard(proto: "app_id"), - 14: .standard(proto: "user_id"), - 15: .standard(proto: "modified_at"), - 16: .same(proto: "metadata"), - 17: .same(proto: "license"), - 19: .standard(proto: "output_info"), - 20: .standard(proto: "input_info"), - 21: .standard(proto: "train_info"), - 22: .standard(proto: "import_info"), - 23: .standard(proto: "train_log"), - 24: .standard(proto: "inference_compute_info"), - 25: .standard(proto: "build_info"), + 1: .same(proto: "params"), + 2: .same(proto: "dataset"), + 3: .standard(proto: "resume_from_model"), ] fileprivate class _StorageClass { - var _id: String = String() - var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _status: Clarifai_Api_Status_Status? = nil - var _activeConceptCount: UInt32 = 0 - var _metrics: Clarifai_Api_EvalMetrics? = nil - var _totalInputCount: UInt32 = 0 - var _pretrainedModelConfig: Clarifai_Api_PretrainedModelConfig? = nil - var _completedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _description_p: String = String() - var _visibility: Clarifai_Api_Visibility? = nil - var _appID: String = String() - var _userID: String = String() - var _modifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _metadata: SwiftProtobuf.Google_Protobuf_Struct? = nil - var _license: String = String() - var _outputInfo: Clarifai_Api_OutputInfo? = nil - var _inputInfo: Clarifai_Api_InputInfo? = nil - var _trainInfo: Clarifai_Api_TrainInfo? = nil - var _importInfo: Clarifai_Api_ImportInfo? = nil - var _trainLog: String = String() - var _inferenceComputeInfo: Clarifai_Api_ComputeInfo? = nil - var _buildInfo: Clarifai_Api_BuildInfo? = nil + var _params: SwiftProtobuf.Google_Protobuf_Struct? = nil + var _dataset: Clarifai_Api_Dataset? = nil + var _resumeFromModel: Clarifai_Api_Model? = nil static let defaultInstance = _StorageClass() private init() {} init(copying source: _StorageClass) { - _id = source._id - _createdAt = source._createdAt - _status = source._status - _activeConceptCount = source._activeConceptCount - _metrics = source._metrics - _totalInputCount = source._totalInputCount - _pretrainedModelConfig = source._pretrainedModelConfig - _completedAt = source._completedAt - _description_p = source._description_p - _visibility = source._visibility - _appID = source._appID - _userID = source._userID - _modifiedAt = source._modifiedAt - _metadata = source._metadata - _license = source._license - _outputInfo = source._outputInfo - _inputInfo = source._inputInfo - _trainInfo = source._trainInfo - _importInfo = source._importInfo - _trainLog = source._trainLog - _inferenceComputeInfo = source._inferenceComputeInfo - _buildInfo = source._buildInfo + _params = source._params + _dataset = source._dataset + _resumeFromModel = source._resumeFromModel } } @@ -19899,28 +18750,9 @@ extension Clarifai_Api_ModelVersion: SwiftProtobuf.Message, SwiftProtobuf._Messa // 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: &_storage._id) }() - case 2: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() - case 3: try { try decoder.decodeSingularMessageField(value: &_storage._status) }() - case 4: try { try decoder.decodeSingularUInt32Field(value: &_storage._activeConceptCount) }() - case 5: try { try decoder.decodeSingularMessageField(value: &_storage._metrics) }() - case 6: try { try decoder.decodeSingularUInt32Field(value: &_storage._totalInputCount) }() - case 7: try { try decoder.decodeSingularMessageField(value: &_storage._pretrainedModelConfig) }() - case 10: try { try decoder.decodeSingularMessageField(value: &_storage._completedAt) }() - case 11: try { try decoder.decodeSingularStringField(value: &_storage._description_p) }() - case 12: try { try decoder.decodeSingularMessageField(value: &_storage._visibility) }() - case 13: try { try decoder.decodeSingularStringField(value: &_storage._appID) }() - case 14: try { try decoder.decodeSingularStringField(value: &_storage._userID) }() - case 15: try { try decoder.decodeSingularMessageField(value: &_storage._modifiedAt) }() - case 16: try { try decoder.decodeSingularMessageField(value: &_storage._metadata) }() - case 17: try { try decoder.decodeSingularStringField(value: &_storage._license) }() - case 19: try { try decoder.decodeSingularMessageField(value: &_storage._outputInfo) }() - case 20: try { try decoder.decodeSingularMessageField(value: &_storage._inputInfo) }() - case 21: try { try decoder.decodeSingularMessageField(value: &_storage._trainInfo) }() - case 22: try { try decoder.decodeSingularMessageField(value: &_storage._importInfo) }() - case 23: try { try decoder.decodeSingularStringField(value: &_storage._trainLog) }() - case 24: try { try decoder.decodeSingularMessageField(value: &_storage._inferenceComputeInfo) }() - case 25: try { try decoder.decodeSingularMessageField(value: &_storage._buildInfo) }() + case 1: try { try decoder.decodeSingularMessageField(value: &_storage._params) }() + case 2: try { try decoder.decodeSingularMessageField(value: &_storage._dataset) }() + case 3: try { try decoder.decodeSingularMessageField(value: &_storage._resumeFromModel) }() default: break } } @@ -19933,103 +18765,27 @@ extension Clarifai_Api_ModelVersion: SwiftProtobuf.Message, SwiftProtobuf._Messa // 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.isEmpty { - try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) - } - try { if let v = _storage._createdAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - try { if let v = _storage._status { - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - } }() - if _storage._activeConceptCount != 0 { - try visitor.visitSingularUInt32Field(value: _storage._activeConceptCount, fieldNumber: 4) - } - try { if let v = _storage._metrics { - try visitor.visitSingularMessageField(value: v, fieldNumber: 5) - } }() - if _storage._totalInputCount != 0 { - try visitor.visitSingularUInt32Field(value: _storage._totalInputCount, fieldNumber: 6) - } - try { if let v = _storage._pretrainedModelConfig { - try visitor.visitSingularMessageField(value: v, fieldNumber: 7) - } }() - try { if let v = _storage._completedAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 10) - } }() - if !_storage._description_p.isEmpty { - try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 11) - } - try { if let v = _storage._visibility { - try visitor.visitSingularMessageField(value: v, fieldNumber: 12) - } }() - if !_storage._appID.isEmpty { - try visitor.visitSingularStringField(value: _storage._appID, fieldNumber: 13) - } - if !_storage._userID.isEmpty { - try visitor.visitSingularStringField(value: _storage._userID, fieldNumber: 14) - } - try { if let v = _storage._modifiedAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 15) - } }() - try { if let v = _storage._metadata { - try visitor.visitSingularMessageField(value: v, fieldNumber: 16) - } }() - if !_storage._license.isEmpty { - try visitor.visitSingularStringField(value: _storage._license, fieldNumber: 17) - } - try { if let v = _storage._outputInfo { - try visitor.visitSingularMessageField(value: v, fieldNumber: 19) - } }() - try { if let v = _storage._inputInfo { - try visitor.visitSingularMessageField(value: v, fieldNumber: 20) - } }() - try { if let v = _storage._trainInfo { - try visitor.visitSingularMessageField(value: v, fieldNumber: 21) - } }() - try { if let v = _storage._importInfo { - try visitor.visitSingularMessageField(value: v, fieldNumber: 22) + try { if let v = _storage._params { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) } }() - if !_storage._trainLog.isEmpty { - try visitor.visitSingularStringField(value: _storage._trainLog, fieldNumber: 23) - } - try { if let v = _storage._inferenceComputeInfo { - try visitor.visitSingularMessageField(value: v, fieldNumber: 24) + try { if let v = _storage._dataset { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) } }() - try { if let v = _storage._buildInfo { - try visitor.visitSingularMessageField(value: v, fieldNumber: 25) + try { if let v = _storage._resumeFromModel { + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) } }() } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_ModelVersion, rhs: Clarifai_Api_ModelVersion) -> Bool { + public static func ==(lhs: Clarifai_Api_TrainInfo, rhs: Clarifai_Api_TrainInfo) -> 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._status != rhs_storage._status {return false} - if _storage._activeConceptCount != rhs_storage._activeConceptCount {return false} - if _storage._metrics != rhs_storage._metrics {return false} - if _storage._totalInputCount != rhs_storage._totalInputCount {return false} - if _storage._pretrainedModelConfig != rhs_storage._pretrainedModelConfig {return false} - if _storage._completedAt != rhs_storage._completedAt {return false} - if _storage._description_p != rhs_storage._description_p {return false} - if _storage._visibility != rhs_storage._visibility {return false} - if _storage._appID != rhs_storage._appID {return false} - if _storage._userID != rhs_storage._userID {return false} - if _storage._modifiedAt != rhs_storage._modifiedAt {return false} - if _storage._metadata != rhs_storage._metadata {return false} - if _storage._license != rhs_storage._license {return false} - if _storage._outputInfo != rhs_storage._outputInfo {return false} - if _storage._inputInfo != rhs_storage._inputInfo {return false} - if _storage._trainInfo != rhs_storage._trainInfo {return false} - if _storage._importInfo != rhs_storage._importInfo {return false} - if _storage._trainLog != rhs_storage._trainLog {return false} - if _storage._inferenceComputeInfo != rhs_storage._inferenceComputeInfo {return false} - if _storage._buildInfo != rhs_storage._buildInfo {return false} + if _storage._params != rhs_storage._params {return false} + if _storage._dataset != rhs_storage._dataset {return false} + if _storage._resumeFromModel != rhs_storage._resumeFromModel {return false} return true } if !storagesAreEqual {return false} @@ -20039,12 +18795,10 @@ extension Clarifai_Api_ModelVersion: SwiftProtobuf.Message, SwiftProtobuf._Messa } } -extension Clarifai_Api_BuildInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".BuildInfo" +extension Clarifai_Api_EvalInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".EvalInfo" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "docker_image_name"), - 2: .standard(proto: "docker_image_tag"), - 3: .standard(proto: "docker_image_digest"), + 1: .same(proto: "params"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -20053,42 +18807,34 @@ extension Clarifai_Api_BuildInfo: 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.decodeSingularStringField(value: &self.dockerImageName) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.dockerImageTag) }() - case 3: try { try decoder.decodeSingularStringField(value: &self.dockerImageDigest) }() + case 1: try { try decoder.decodeSingularMessageField(value: &self._params) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.dockerImageName.isEmpty { - try visitor.visitSingularStringField(value: self.dockerImageName, fieldNumber: 1) - } - if !self.dockerImageTag.isEmpty { - try visitor.visitSingularStringField(value: self.dockerImageTag, fieldNumber: 2) - } - if !self.dockerImageDigest.isEmpty { - try visitor.visitSingularStringField(value: self.dockerImageDigest, fieldNumber: 3) - } + // 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._params { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_BuildInfo, rhs: Clarifai_Api_BuildInfo) -> Bool { - if lhs.dockerImageName != rhs.dockerImageName {return false} - if lhs.dockerImageTag != rhs.dockerImageTag {return false} - if lhs.dockerImageDigest != rhs.dockerImageDigest {return false} + public static func ==(lhs: Clarifai_Api_EvalInfo, rhs: Clarifai_Api_EvalInfo) -> Bool { + if lhs._params != rhs._params {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_ModelVersionExport: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".ModelVersionExport" +extension Clarifai_Api_ImportInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".ImportInfo" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "status"), - 2: .same(proto: "url"), - 3: .same(proto: "size"), + 1: .same(proto: "params"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -20097,9 +18843,7 @@ extension Clarifai_Api_ModelVersionExport: SwiftProtobuf.Message, SwiftProtobuf. // 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.decodeSingularStringField(value: &self.url) }() - case 3: try { try decoder.decodeSingularInt64Field(value: &self.size) }() + case 1: try { try decoder.decodeSingularMessageField(value: &self._params) }() default: break } } @@ -20110,34 +18854,35 @@ extension Clarifai_Api_ModelVersionExport: SwiftProtobuf.Message, SwiftProtobuf. // 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 { if let v = self._params { try visitor.visitSingularMessageField(value: v, fieldNumber: 1) } }() - if !self.url.isEmpty { - try visitor.visitSingularStringField(value: self.url, fieldNumber: 2) - } - if self.size != 0 { - try visitor.visitSingularInt64Field(value: self.size, fieldNumber: 3) - } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_ModelVersionExport, rhs: Clarifai_Api_ModelVersionExport) -> Bool { - if lhs._status != rhs._status {return false} - if lhs.url != rhs.url {return false} - if lhs.size != rhs.size {return false} + public static func ==(lhs: Clarifai_Api_ImportInfo, rhs: Clarifai_Api_ImportInfo) -> Bool { + if lhs._params != rhs._params {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_PretrainedModelConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".PretrainedModelConfig" +extension Clarifai_Api_OutputConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".OutputConfig" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 3: .standard(proto: "input_fields_map"), - 4: .standard(proto: "output_fields_map"), - 6: .standard(proto: "model_zip_url"), - 8: .standard(proto: "local_dev"), + 1: .standard(proto: "concepts_mutually_exclusive"), + 3: .standard(proto: "existing_model_id"), + 4: .same(proto: "language"), + 5: .standard(proto: "hyper_parameters"), + 6: .standard(proto: "max_concepts"), + 7: .standard(proto: "min_value"), + 8: .standard(proto: "select_concepts"), + 9: .standard(proto: "training_timeout"), + 10: .standard(proto: "sample_ms"), + 13: .standard(proto: "hyper_params"), + 14: .standard(proto: "embed_model_version_id"), + 15: .standard(proto: "fail_on_missing_positive_examples"), + 17: .standard(proto: "model_metadata"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -20146,10 +18891,19 @@ extension Clarifai_Api_PretrainedModelConfig: SwiftProtobuf.Message, SwiftProtob // allocates stack space for every case branch when no optimizations are // enabled. https://github.com/apple/swift-protobuf/issues/1034 switch fieldNumber { - case 3: try { try decoder.decodeSingularMessageField(value: &self._inputFieldsMap) }() - case 4: try { try decoder.decodeSingularMessageField(value: &self._outputFieldsMap) }() - case 6: try { try decoder.decodeSingularStringField(value: &self.modelZipURL) }() - case 8: try { try decoder.decodeSingularBoolField(value: &self.localDev) }() + case 1: try { try decoder.decodeSingularBoolField(value: &self.conceptsMutuallyExclusive) }() + case 3: try { try decoder.decodeSingularStringField(value: &self.existingModelID) }() + case 4: try { try decoder.decodeSingularStringField(value: &self.language) }() + case 5: try { try decoder.decodeSingularStringField(value: &self.hyperParameters) }() + case 6: try { try decoder.decodeSingularUInt32Field(value: &self.maxConcepts) }() + case 7: try { try decoder.decodeSingularFloatField(value: &self.minValue) }() + case 8: try { try decoder.decodeRepeatedMessageField(value: &self.selectConcepts) }() + case 9: try { try decoder.decodeSingularUInt32Field(value: &self.trainingTimeout) }() + case 10: try { try decoder.decodeSingularUInt32Field(value: &self.sampleMs) }() + case 13: try { try decoder.decodeSingularMessageField(value: &self._hyperParams) }() + case 14: try { try decoder.decodeSingularStringField(value: &self.embedModelVersionID) }() + case 15: try { try decoder.decodeSingularBoolField(value: &self.failOnMissingPositiveExamples) }() + case 17: try { try decoder.decodeSingularMessageField(value: &self._modelMetadata) }() default: break } } @@ -20160,69 +18914,83 @@ extension Clarifai_Api_PretrainedModelConfig: SwiftProtobuf.Message, SwiftProtob // 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._inputFieldsMap { - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - } }() - try { if let v = self._outputFieldsMap { - try visitor.visitSingularMessageField(value: v, fieldNumber: 4) - } }() - if !self.modelZipURL.isEmpty { - try visitor.visitSingularStringField(value: self.modelZipURL, fieldNumber: 6) + if self.conceptsMutuallyExclusive != false { + try visitor.visitSingularBoolField(value: self.conceptsMutuallyExclusive, fieldNumber: 1) } - if self.localDev != false { - try visitor.visitSingularBoolField(value: self.localDev, fieldNumber: 8) + if !self.existingModelID.isEmpty { + try visitor.visitSingularStringField(value: self.existingModelID, fieldNumber: 3) } - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_PretrainedModelConfig, rhs: Clarifai_Api_PretrainedModelConfig) -> Bool { - if lhs._inputFieldsMap != rhs._inputFieldsMap {return false} - if lhs._outputFieldsMap != rhs._outputFieldsMap {return false} - if lhs.modelZipURL != rhs.modelZipURL {return false} - if lhs.localDev != rhs.localDev {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Clarifai_Api_TrainStats: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".TrainStats" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "loss_curve"), - ] - - 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.lossCurve) }() - default: break - } + if !self.language.isEmpty { + try visitor.visitSingularStringField(value: self.language, fieldNumber: 4) } - } - - public func traverse(visitor: inout V) throws { - if !self.lossCurve.isEmpty { - try visitor.visitRepeatedMessageField(value: self.lossCurve, fieldNumber: 1) + if !self.hyperParameters.isEmpty { + try visitor.visitSingularStringField(value: self.hyperParameters, fieldNumber: 5) + } + if self.maxConcepts != 0 { + try visitor.visitSingularUInt32Field(value: self.maxConcepts, fieldNumber: 6) } + if self.minValue != 0 { + try visitor.visitSingularFloatField(value: self.minValue, fieldNumber: 7) + } + if !self.selectConcepts.isEmpty { + try visitor.visitRepeatedMessageField(value: self.selectConcepts, fieldNumber: 8) + } + if self.trainingTimeout != 0 { + try visitor.visitSingularUInt32Field(value: self.trainingTimeout, fieldNumber: 9) + } + if self.sampleMs != 0 { + try visitor.visitSingularUInt32Field(value: self.sampleMs, fieldNumber: 10) + } + try { if let v = self._hyperParams { + try visitor.visitSingularMessageField(value: v, fieldNumber: 13) + } }() + if !self.embedModelVersionID.isEmpty { + try visitor.visitSingularStringField(value: self.embedModelVersionID, fieldNumber: 14) + } + if self.failOnMissingPositiveExamples != false { + try visitor.visitSingularBoolField(value: self.failOnMissingPositiveExamples, fieldNumber: 15) + } + try { if let v = self._modelMetadata { + try visitor.visitSingularMessageField(value: v, fieldNumber: 17) + } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_TrainStats, rhs: Clarifai_Api_TrainStats) -> Bool { - if lhs.lossCurve != rhs.lossCurve {return false} + public static func ==(lhs: Clarifai_Api_OutputConfig, rhs: Clarifai_Api_OutputConfig) -> Bool { + if lhs.conceptsMutuallyExclusive != rhs.conceptsMutuallyExclusive {return false} + if lhs.existingModelID != rhs.existingModelID {return false} + if lhs.language != rhs.language {return false} + if lhs.hyperParameters != rhs.hyperParameters {return false} + if lhs.maxConcepts != rhs.maxConcepts {return false} + if lhs.minValue != rhs.minValue {return false} + if lhs.selectConcepts != rhs.selectConcepts {return false} + if lhs.trainingTimeout != rhs.trainingTimeout {return false} + if lhs.sampleMs != rhs.sampleMs {return false} + if lhs._hyperParams != rhs._hyperParams {return false} + if lhs.embedModelVersionID != rhs.embedModelVersionID {return false} + if lhs.failOnMissingPositiveExamples != rhs.failOnMissingPositiveExamples {return false} + if lhs._modelMetadata != rhs._modelMetadata {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_LossCurveEntry: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".LossCurveEntry" +extension Clarifai_Api_ModelType: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".ModelType" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "epoch"), - 2: .standard(proto: "global_step"), - 3: .same(proto: "cost"), + 1: .same(proto: "id"), + 2: .same(proto: "title"), + 3: .same(proto: "description"), + 5: .standard(proto: "input_fields"), + 6: .standard(proto: "output_fields"), + 8: .same(proto: "trainable"), + 9: .same(proto: "creatable"), + 10: .standard(proto: "internal_only"), + 11: .standard(proto: "model_type_fields"), + 12: .standard(proto: "requires_sequential_frames"), + 16: .standard(proto: "expected_input_layers"), + 17: .standard(proto: "expected_output_layers"), + 18: .standard(proto: "evaluation_type"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -20230,43 +18998,94 @@ extension Clarifai_Api_LossCurveEntry: SwiftProtobuf.Message, SwiftProtobuf._Mes // 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.decodeSingularUInt32Field(value: &self.epoch) }() - case 2: try { try decoder.decodeSingularUInt32Field(value: &self.globalStep) }() - case 3: try { try decoder.decodeSingularFloatField(value: &self.cost) }() + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.title) }() + case 3: try { try decoder.decodeSingularStringField(value: &self.description_p) }() + case 5: try { try decoder.decodeRepeatedStringField(value: &self.inputFields) }() + case 6: try { try decoder.decodeRepeatedStringField(value: &self.outputFields) }() + case 8: try { try decoder.decodeSingularBoolField(value: &self.trainable) }() + case 9: try { try decoder.decodeSingularBoolField(value: &self.creatable) }() + case 10: try { try decoder.decodeSingularBoolField(value: &self.internalOnly) }() + case 11: try { try decoder.decodeRepeatedMessageField(value: &self.modelTypeFields) }() + case 12: try { try decoder.decodeSingularBoolField(value: &self.requiresSequentialFrames) }() + case 16: try { try decoder.decodeRepeatedMessageField(value: &self.expectedInputLayers) }() + case 17: try { try decoder.decodeRepeatedMessageField(value: &self.expectedOutputLayers) }() + case 18: try { try decoder.decodeSingularEnumField(value: &self.evaluationType) }() default: break } } } public func traverse(visitor: inout V) throws { - if self.epoch != 0 { - try visitor.visitSingularUInt32Field(value: self.epoch, fieldNumber: 1) + if !self.id.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) } - if self.globalStep != 0 { - try visitor.visitSingularUInt32Field(value: self.globalStep, fieldNumber: 2) + if !self.title.isEmpty { + try visitor.visitSingularStringField(value: self.title, fieldNumber: 2) } - if self.cost != 0 { - try visitor.visitSingularFloatField(value: self.cost, fieldNumber: 3) + if !self.description_p.isEmpty { + try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 3) + } + if !self.inputFields.isEmpty { + try visitor.visitRepeatedStringField(value: self.inputFields, fieldNumber: 5) + } + if !self.outputFields.isEmpty { + try visitor.visitRepeatedStringField(value: self.outputFields, fieldNumber: 6) + } + if self.trainable != false { + try visitor.visitSingularBoolField(value: self.trainable, fieldNumber: 8) + } + if self.creatable != false { + try visitor.visitSingularBoolField(value: self.creatable, fieldNumber: 9) + } + if self.internalOnly != false { + try visitor.visitSingularBoolField(value: self.internalOnly, fieldNumber: 10) + } + if !self.modelTypeFields.isEmpty { + try visitor.visitRepeatedMessageField(value: self.modelTypeFields, fieldNumber: 11) + } + if self.requiresSequentialFrames != false { + try visitor.visitSingularBoolField(value: self.requiresSequentialFrames, fieldNumber: 12) + } + if !self.expectedInputLayers.isEmpty { + try visitor.visitRepeatedMessageField(value: self.expectedInputLayers, fieldNumber: 16) + } + if !self.expectedOutputLayers.isEmpty { + try visitor.visitRepeatedMessageField(value: self.expectedOutputLayers, fieldNumber: 17) + } + if self.evaluationType != .undefined { + try visitor.visitSingularEnumField(value: self.evaluationType, fieldNumber: 18) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_LossCurveEntry, rhs: Clarifai_Api_LossCurveEntry) -> Bool { - if lhs.epoch != rhs.epoch {return false} - if lhs.globalStep != rhs.globalStep {return false} - if lhs.cost != rhs.cost {return false} + public static func ==(lhs: Clarifai_Api_ModelType, rhs: Clarifai_Api_ModelType) -> Bool { + if lhs.id != rhs.id {return false} + if lhs.title != rhs.title {return false} + if lhs.description_p != rhs.description_p {return false} + if lhs.inputFields != rhs.inputFields {return false} + if lhs.outputFields != rhs.outputFields {return false} + if lhs.trainable != rhs.trainable {return false} + if lhs.creatable != rhs.creatable {return false} + if lhs.internalOnly != rhs.internalOnly {return false} + if lhs.modelTypeFields != rhs.modelTypeFields {return false} + if lhs.requiresSequentialFrames != rhs.requiresSequentialFrames {return false} + if lhs.expectedInputLayers != rhs.expectedInputLayers {return false} + if lhs.expectedOutputLayers != rhs.expectedOutputLayers {return false} + if lhs.evaluationType != rhs.evaluationType {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_LabelCount: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".LabelCount" +extension Clarifai_Api_ModelLayerInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".ModelLayerInfo" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "concept_name"), - 2: .same(proto: "count"), - 3: .same(proto: "concept"), + 1: .standard(proto: "data_field_name"), + 2: .same(proto: "shapes"), + 3: .same(proto: "description"), + 4: .standard(proto: "requires_label_filename"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -20275,44 +19094,46 @@ extension Clarifai_Api_LabelCount: 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.decodeSingularStringField(value: &self.conceptName) }() - case 2: try { try decoder.decodeSingularUInt32Field(value: &self.count) }() - case 3: try { try decoder.decodeSingularMessageField(value: &self._concept) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.dataFieldName) }() + case 2: try { try decoder.decodeRepeatedMessageField(value: &self.shapes) }() + case 3: try { try decoder.decodeSingularStringField(value: &self.description_p) }() + case 4: try { try decoder.decodeSingularBoolField(value: &self.requiresLabelFilename) }() 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.conceptName.isEmpty { - try visitor.visitSingularStringField(value: self.conceptName, fieldNumber: 1) + if !self.dataFieldName.isEmpty { + try visitor.visitSingularStringField(value: self.dataFieldName, fieldNumber: 1) } - if self.count != 0 { - try visitor.visitSingularUInt32Field(value: self.count, fieldNumber: 2) + if !self.shapes.isEmpty { + try visitor.visitRepeatedMessageField(value: self.shapes, fieldNumber: 2) + } + if !self.description_p.isEmpty { + try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 3) + } + if self.requiresLabelFilename != false { + try visitor.visitSingularBoolField(value: self.requiresLabelFilename, fieldNumber: 4) } - try { if let v = self._concept { - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_LabelCount, rhs: Clarifai_Api_LabelCount) -> Bool { - if lhs.conceptName != rhs.conceptName {return false} - if lhs.count != rhs.count {return false} - if lhs._concept != rhs._concept {return false} + public static func ==(lhs: Clarifai_Api_ModelLayerInfo, rhs: Clarifai_Api_ModelLayerInfo) -> Bool { + if lhs.dataFieldName != rhs.dataFieldName {return false} + if lhs.shapes != rhs.shapes {return false} + if lhs.description_p != rhs.description_p {return false} + if lhs.requiresLabelFilename != rhs.requiresLabelFilename {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_LabelDistribution: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".LabelDistribution" +extension Clarifai_Api_TritonCondaEnvInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".TritonCondaEnvInfo" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "positive_label_counts"), + 1: .standard(proto: "conda_pack_url"), + 2: .standard(proto: "conda_yaml_url"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -20321,32 +19142,38 @@ extension Clarifai_Api_LabelDistribution: SwiftProtobuf.Message, SwiftProtobuf._ // 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.positiveLabelCounts) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.condaPackURL) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.condaYamlURL) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.positiveLabelCounts.isEmpty { - try visitor.visitRepeatedMessageField(value: self.positiveLabelCounts, fieldNumber: 1) + if !self.condaPackURL.isEmpty { + try visitor.visitSingularStringField(value: self.condaPackURL, fieldNumber: 1) + } + if !self.condaYamlURL.isEmpty { + try visitor.visitSingularStringField(value: self.condaYamlURL, fieldNumber: 2) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_LabelDistribution, rhs: Clarifai_Api_LabelDistribution) -> Bool { - if lhs.positiveLabelCounts != rhs.positiveLabelCounts {return false} + public static func ==(lhs: Clarifai_Api_TritonCondaEnvInfo, rhs: Clarifai_Api_TritonCondaEnvInfo) -> Bool { + if lhs.condaPackURL != rhs.condaPackURL {return false} + if lhs.condaYamlURL != rhs.condaYamlURL {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_CooccurrenceMatrixEntry: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".CooccurrenceMatrixEntry" +extension Clarifai_Api_LayerShape: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".LayerShape" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "row"), - 2: .same(proto: "col"), - 3: .same(proto: "count"), + 1: .same(proto: "dims"), + 2: .standard(proto: "max_dims"), + 3: .standard(proto: "data_type"), + 4: .same(proto: "description"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -20355,41 +19182,53 @@ extension Clarifai_Api_CooccurrenceMatrixEntry: SwiftProtobuf.Message, SwiftProt // 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.row) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.col) }() - case 3: try { try decoder.decodeSingularUInt32Field(value: &self.count) }() + case 1: try { try decoder.decodeRepeatedInt32Field(value: &self.dims) }() + case 2: try { try decoder.decodeRepeatedInt32Field(value: &self.maxDims) }() + case 3: try { try decoder.decodeSingularEnumField(value: &self.dataType) }() + case 4: try { try decoder.decodeSingularStringField(value: &self.description_p) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.row.isEmpty { - try visitor.visitSingularStringField(value: self.row, fieldNumber: 1) + if !self.dims.isEmpty { + try visitor.visitPackedInt32Field(value: self.dims, fieldNumber: 1) } - if !self.col.isEmpty { - try visitor.visitSingularStringField(value: self.col, fieldNumber: 2) + if !self.maxDims.isEmpty { + try visitor.visitPackedInt32Field(value: self.maxDims, fieldNumber: 2) } - if self.count != 0 { - try visitor.visitSingularUInt32Field(value: self.count, fieldNumber: 3) + if self.dataType != .undefined { + try visitor.visitSingularEnumField(value: self.dataType, fieldNumber: 3) + } + if !self.description_p.isEmpty { + try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 4) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_CooccurrenceMatrixEntry, rhs: Clarifai_Api_CooccurrenceMatrixEntry) -> Bool { - if lhs.row != rhs.row {return false} - if lhs.col != rhs.col {return false} - if lhs.count != rhs.count {return false} + public static func ==(lhs: Clarifai_Api_LayerShape, rhs: Clarifai_Api_LayerShape) -> Bool { + if lhs.dims != rhs.dims {return false} + if lhs.maxDims != rhs.maxDims {return false} + if lhs.dataType != rhs.dataType {return false} + if lhs.description_p != rhs.description_p {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_CooccurrenceMatrix: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".CooccurrenceMatrix" +extension Clarifai_Api_ModelTypeField: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".ModelTypeField" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "matrix"), - 2: .standard(proto: "concept_ids"), + 1: .same(proto: "path"), + 2: .standard(proto: "field_type"), + 3: .standard(proto: "default_value"), + 4: .same(proto: "description"), + 5: .same(proto: "placeholder"), + 6: .standard(proto: "model_type_enum_options"), + 7: .standard(proto: "internal_only"), + 8: .same(proto: "required"), + 9: .standard(proto: "model_type_range_info"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -20398,39 +19237,103 @@ extension Clarifai_Api_CooccurrenceMatrix: SwiftProtobuf.Message, SwiftProtobuf. // 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.matrix) }() - case 2: try { try decoder.decodeRepeatedStringField(value: &self.conceptIds) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.path) }() + case 2: try { try decoder.decodeSingularEnumField(value: &self.fieldType) }() + case 3: try { try decoder.decodeSingularMessageField(value: &self._defaultValue) }() + case 4: try { try decoder.decodeSingularStringField(value: &self.description_p) }() + case 5: try { try decoder.decodeSingularStringField(value: &self.placeholder) }() + case 6: try { try decoder.decodeRepeatedMessageField(value: &self.modelTypeEnumOptions) }() + case 7: try { try decoder.decodeSingularBoolField(value: &self.internalOnly) }() + case 8: try { try decoder.decodeSingularBoolField(value: &self.required) }() + case 9: try { try decoder.decodeSingularMessageField(value: &self._modelTypeRangeInfo) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.matrix.isEmpty { - try visitor.visitRepeatedMessageField(value: self.matrix, fieldNumber: 1) + // 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.path.isEmpty { + try visitor.visitSingularStringField(value: self.path, fieldNumber: 1) } - if !self.conceptIds.isEmpty { - try visitor.visitRepeatedStringField(value: self.conceptIds, fieldNumber: 2) + if self.fieldType != .invalidModelTypeFieldType { + try visitor.visitSingularEnumField(value: self.fieldType, fieldNumber: 2) } + try { if let v = self._defaultValue { + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + } }() + if !self.description_p.isEmpty { + try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 4) + } + if !self.placeholder.isEmpty { + try visitor.visitSingularStringField(value: self.placeholder, fieldNumber: 5) + } + if !self.modelTypeEnumOptions.isEmpty { + try visitor.visitRepeatedMessageField(value: self.modelTypeEnumOptions, fieldNumber: 6) + } + if self.internalOnly != false { + try visitor.visitSingularBoolField(value: self.internalOnly, fieldNumber: 7) + } + if self.required != false { + try visitor.visitSingularBoolField(value: self.required, fieldNumber: 8) + } + try { if let v = self._modelTypeRangeInfo { + try visitor.visitSingularMessageField(value: v, fieldNumber: 9) + } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_CooccurrenceMatrix, rhs: Clarifai_Api_CooccurrenceMatrix) -> Bool { - if lhs.matrix != rhs.matrix {return false} - if lhs.conceptIds != rhs.conceptIds {return false} + public static func ==(lhs: Clarifai_Api_ModelTypeField, rhs: Clarifai_Api_ModelTypeField) -> Bool { + if lhs.path != rhs.path {return false} + if lhs.fieldType != rhs.fieldType {return false} + if lhs._defaultValue != rhs._defaultValue {return false} + if lhs.description_p != rhs.description_p {return false} + if lhs.placeholder != rhs.placeholder {return false} + if lhs.modelTypeEnumOptions != rhs.modelTypeEnumOptions {return false} + if lhs.internalOnly != rhs.internalOnly {return false} + if lhs.required != rhs.required {return false} + if lhs._modelTypeRangeInfo != rhs._modelTypeRangeInfo {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_ConfusionMatrixEntry: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".ConfusionMatrixEntry" +extension Clarifai_Api_ModelTypeField.ModelTypeFieldType: SwiftProtobuf._ProtoNameProviding { public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "predicted"), - 2: .same(proto: "actual"), - 4: .same(proto: "value"), - 5: .standard(proto: "predicted_concept"), - 6: .standard(proto: "actual_concept"), + 0: .same(proto: "INVALID_MODEL_TYPE_FIELD_TYPE"), + 1: .same(proto: "BOOLEAN"), + 2: .same(proto: "STRING"), + 3: .same(proto: "NUMBER"), + 4: .same(proto: "ARRAY_OF_CONCEPTS"), + 5: .same(proto: "ARRAY_OF_CONCEPTS_WITH_THRESHOLD"), + 7: .same(proto: "RANGE"), + 8: .same(proto: "ENUM"), + 9: .same(proto: "COLLABORATORS"), + 10: .same(proto: "JSON"), + 11: .same(proto: "ARRAY_OF_NUMBERS"), + 12: .same(proto: "WORKFLOW_EMBED_MODELS"), + 13: .same(proto: "ARRAY_OF_STRINGS"), + 14: .same(proto: "RECURSIVE_ENUM"), + 15: .same(proto: "PYTHON_CODE"), + 16: .same(proto: "DATASET_ID"), + 17: .same(proto: "DATASET_VERSION_ID"), + 18: .same(proto: "ARRAY_OF_MODEL_CONCEPTS"), + 19: .same(proto: "DATASET"), + 20: .same(proto: "DATASET_VERSION"), + 21: .same(proto: "ENCRYPTED_STRING"), + 22: .same(proto: "CHECKPOINT_MODEL"), + ] +} + +extension Clarifai_Api_ModelTypeRangeInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".ModelTypeRangeInfo" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "min"), + 2: .same(proto: "max"), + 3: .same(proto: "step"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -20439,55 +19342,45 @@ extension Clarifai_Api_ConfusionMatrixEntry: SwiftProtobuf.Message, SwiftProtobu // 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.predicted) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.actual) }() - case 4: try { try decoder.decodeSingularFloatField(value: &self.value) }() - case 5: try { try decoder.decodeSingularMessageField(value: &self._predictedConcept) }() - case 6: try { try decoder.decodeSingularMessageField(value: &self._actualConcept) }() + case 1: try { try decoder.decodeSingularFloatField(value: &self.min) }() + case 2: try { try decoder.decodeSingularFloatField(value: &self.max) }() + case 3: try { try decoder.decodeSingularFloatField(value: &self.step) }() 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.predicted.isEmpty { - try visitor.visitSingularStringField(value: self.predicted, fieldNumber: 1) + if self.min != 0 { + try visitor.visitSingularFloatField(value: self.min, fieldNumber: 1) } - if !self.actual.isEmpty { - try visitor.visitSingularStringField(value: self.actual, fieldNumber: 2) + if self.max != 0 { + try visitor.visitSingularFloatField(value: self.max, fieldNumber: 2) } - if self.value != 0 { - try visitor.visitSingularFloatField(value: self.value, fieldNumber: 4) + if self.step != 0 { + try visitor.visitSingularFloatField(value: self.step, fieldNumber: 3) } - try { if let v = self._predictedConcept { - try visitor.visitSingularMessageField(value: v, fieldNumber: 5) - } }() - try { if let v = self._actualConcept { - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) - } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_ConfusionMatrixEntry, rhs: Clarifai_Api_ConfusionMatrixEntry) -> Bool { - if lhs.predicted != rhs.predicted {return false} - if lhs.actual != rhs.actual {return false} - if lhs.value != rhs.value {return false} - if lhs._predictedConcept != rhs._predictedConcept {return false} - if lhs._actualConcept != rhs._actualConcept {return false} + public static func ==(lhs: Clarifai_Api_ModelTypeRangeInfo, rhs: Clarifai_Api_ModelTypeRangeInfo) -> Bool { + if lhs.min != rhs.min {return false} + if lhs.max != rhs.max {return false} + if lhs.step != rhs.step {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_ConfusionMatrix: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".ConfusionMatrix" +extension Clarifai_Api_ModelTypeEnumOption: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".ModelTypeEnumOption" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "matrix"), - 2: .standard(proto: "concept_ids"), + 1: .same(proto: "id"), + 5: .same(proto: "aliases"), + 2: .same(proto: "description"), + 3: .standard(proto: "model_type_fields"), + 4: .standard(proto: "internal_only"), + 6: .same(proto: "recommended"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -20496,39 +19389,56 @@ extension Clarifai_Api_ConfusionMatrix: 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.matrix) }() - case 2: try { try decoder.decodeRepeatedStringField(value: &self.conceptIds) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.description_p) }() + case 3: try { try decoder.decodeRepeatedMessageField(value: &self.modelTypeFields) }() + case 4: try { try decoder.decodeSingularBoolField(value: &self.internalOnly) }() + case 5: try { try decoder.decodeRepeatedMessageField(value: &self.aliases) }() + case 6: try { try decoder.decodeSingularBoolField(value: &self.recommended) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.matrix.isEmpty { - try visitor.visitRepeatedMessageField(value: self.matrix, fieldNumber: 1) + if !self.id.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) } - if !self.conceptIds.isEmpty { - try visitor.visitRepeatedStringField(value: self.conceptIds, fieldNumber: 2) + if !self.description_p.isEmpty { + try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 2) + } + if !self.modelTypeFields.isEmpty { + try visitor.visitRepeatedMessageField(value: self.modelTypeFields, fieldNumber: 3) + } + if self.internalOnly != false { + try visitor.visitSingularBoolField(value: self.internalOnly, fieldNumber: 4) + } + if !self.aliases.isEmpty { + try visitor.visitRepeatedMessageField(value: self.aliases, fieldNumber: 5) + } + if self.recommended != false { + try visitor.visitSingularBoolField(value: self.recommended, fieldNumber: 6) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_ConfusionMatrix, rhs: Clarifai_Api_ConfusionMatrix) -> Bool { - if lhs.matrix != rhs.matrix {return false} - if lhs.conceptIds != rhs.conceptIds {return false} + public static func ==(lhs: Clarifai_Api_ModelTypeEnumOption, rhs: Clarifai_Api_ModelTypeEnumOption) -> Bool { + if lhs.id != rhs.id {return false} + if lhs.aliases != rhs.aliases {return false} + if lhs.description_p != rhs.description_p {return false} + if lhs.modelTypeFields != rhs.modelTypeFields {return false} + if lhs.internalOnly != rhs.internalOnly {return false} + if lhs.recommended != rhs.recommended {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_ROC: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".ROC" +extension Clarifai_Api_ModelTypeEnumOptionAlias: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".ModelTypeEnumOptionAlias" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "fpr"), - 2: .same(proto: "tpr"), - 3: .same(proto: "thresholds"), - 4: .standard(proto: "fpr_per_image"), - 5: .standard(proto: "fpr_per_object"), + 1: .standard(proto: "id_int"), + 2: .standard(proto: "wildcard_string"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -20537,52 +19447,36 @@ extension Clarifai_Api_ROC: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme // 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.decodeRepeatedFloatField(value: &self.fpr) }() - case 2: try { try decoder.decodeRepeatedFloatField(value: &self.tpr) }() - case 3: try { try decoder.decodeRepeatedFloatField(value: &self.thresholds) }() - case 4: try { try decoder.decodeRepeatedFloatField(value: &self.fprPerImage) }() - case 5: try { try decoder.decodeRepeatedFloatField(value: &self.fprPerObject) }() + case 1: try { try decoder.decodeSingularInt64Field(value: &self.idInt) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.wildcardString) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.fpr.isEmpty { - try visitor.visitPackedFloatField(value: self.fpr, fieldNumber: 1) - } - if !self.tpr.isEmpty { - try visitor.visitPackedFloatField(value: self.tpr, fieldNumber: 2) - } - if !self.thresholds.isEmpty { - try visitor.visitPackedFloatField(value: self.thresholds, fieldNumber: 3) - } - if !self.fprPerImage.isEmpty { - try visitor.visitPackedFloatField(value: self.fprPerImage, fieldNumber: 4) + if self.idInt != 0 { + try visitor.visitSingularInt64Field(value: self.idInt, fieldNumber: 1) } - if !self.fprPerObject.isEmpty { - try visitor.visitPackedFloatField(value: self.fprPerObject, fieldNumber: 5) + if !self.wildcardString.isEmpty { + try visitor.visitSingularStringField(value: self.wildcardString, fieldNumber: 2) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_ROC, rhs: Clarifai_Api_ROC) -> Bool { - if lhs.fpr != rhs.fpr {return false} - if lhs.tpr != rhs.tpr {return false} - if lhs.thresholds != rhs.thresholds {return false} - if lhs.fprPerImage != rhs.fprPerImage {return false} - if lhs.fprPerObject != rhs.fprPerObject {return false} + public static func ==(lhs: Clarifai_Api_ModelTypeEnumOptionAlias, rhs: Clarifai_Api_ModelTypeEnumOptionAlias) -> Bool { + if lhs.idInt != rhs.idInt {return false} + if lhs.wildcardString != rhs.wildcardString {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_PrecisionRecallCurve: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".PrecisionRecallCurve" +extension Clarifai_Api_ModelQuery: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".ModelQuery" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "recall"), - 2: .same(proto: "precision"), - 3: .same(proto: "thresholds"), + 1: .same(proto: "name"), + 3: .standard(proto: "model_type_id"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -20591,87 +19485,109 @@ extension Clarifai_Api_PrecisionRecallCurve: SwiftProtobuf.Message, SwiftProtobu // 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.decodeRepeatedFloatField(value: &self.recall) }() - case 2: try { try decoder.decodeRepeatedFloatField(value: &self.precision) }() - case 3: try { try decoder.decodeRepeatedFloatField(value: &self.thresholds) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.name) }() + case 3: try { try decoder.decodeSingularStringField(value: &self.modelTypeID) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.recall.isEmpty { - try visitor.visitPackedFloatField(value: self.recall, fieldNumber: 1) - } - if !self.precision.isEmpty { - try visitor.visitPackedFloatField(value: self.precision, fieldNumber: 2) + if !self.name.isEmpty { + try visitor.visitSingularStringField(value: self.name, fieldNumber: 1) } - if !self.thresholds.isEmpty { - try visitor.visitPackedFloatField(value: self.thresholds, fieldNumber: 3) + if !self.modelTypeID.isEmpty { + try visitor.visitSingularStringField(value: self.modelTypeID, fieldNumber: 3) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_PrecisionRecallCurve, rhs: Clarifai_Api_PrecisionRecallCurve) -> Bool { - if lhs.recall != rhs.recall {return false} - if lhs.precision != rhs.precision {return false} - if lhs.thresholds != rhs.thresholds {return false} + public static func ==(lhs: Clarifai_Api_ModelQuery, rhs: Clarifai_Api_ModelQuery) -> Bool { + if lhs.name != rhs.name {return false} + if lhs.modelTypeID != rhs.modelTypeID {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_BinaryMetrics: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".BinaryMetrics" +extension Clarifai_Api_ModelVersion: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".ModelVersion" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "num_pos"), - 2: .standard(proto: "num_neg"), - 3: .standard(proto: "num_tot"), - 4: .standard(proto: "roc_auc"), - 5: .same(proto: "f1"), - 6: .same(proto: "concept"), - 7: .standard(proto: "roc_curve"), - 8: .standard(proto: "precision_recall_curve"), - 9: .standard(proto: "avg_precision"), - 10: .standard(proto: "area_name"), - 11: .standard(proto: "area_min"), - 12: .standard(proto: "area_max"), - 13: .same(proto: "iou"), - ] - - fileprivate class _StorageClass { - var _numPos: UInt32 = 0 - var _numNeg: UInt32 = 0 - var _numTot: UInt32 = 0 - var _rocAuc: Float = 0 - var _f1: Float = 0 - var _concept: Clarifai_Api_Concept? = nil - var _rocCurve: Clarifai_Api_ROC? = nil - var _precisionRecallCurve: Clarifai_Api_PrecisionRecallCurve? = nil - var _avgPrecision: Float = 0 - var _areaName: String = String() - var _areaMin: Double = 0 - var _areaMax: Double = 0 - var _iou: Float = 0 + 1: .same(proto: "id"), + 2: .standard(proto: "created_at"), + 3: .same(proto: "status"), + 4: .standard(proto: "active_concept_count"), + 5: .same(proto: "metrics"), + 6: .standard(proto: "total_input_count"), + 7: .standard(proto: "pretrained_model_config"), + 10: .standard(proto: "completed_at"), + 11: .same(proto: "description"), + 12: .same(proto: "visibility"), + 13: .standard(proto: "app_id"), + 14: .standard(proto: "user_id"), + 15: .standard(proto: "modified_at"), + 16: .same(proto: "metadata"), + 17: .same(proto: "license"), + 19: .standard(proto: "output_info"), + 20: .standard(proto: "input_info"), + 21: .standard(proto: "train_info"), + 22: .standard(proto: "import_info"), + 23: .standard(proto: "train_log"), + 24: .standard(proto: "inference_compute_info"), + 25: .standard(proto: "build_info"), + ] + + fileprivate class _StorageClass { + var _id: String = String() + var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _status: Clarifai_Api_Status_Status? = nil + var _activeConceptCount: UInt32 = 0 + var _metrics: Clarifai_Api_EvalMetrics? = nil + var _totalInputCount: UInt32 = 0 + var _pretrainedModelConfig: Clarifai_Api_PretrainedModelConfig? = nil + var _completedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _description_p: String = String() + var _visibility: Clarifai_Api_Visibility? = nil + var _appID: String = String() + var _userID: String = String() + var _modifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _metadata: SwiftProtobuf.Google_Protobuf_Struct? = nil + var _license: String = String() + var _outputInfo: Clarifai_Api_OutputInfo? = nil + var _inputInfo: Clarifai_Api_InputInfo? = nil + var _trainInfo: Clarifai_Api_TrainInfo? = nil + var _importInfo: Clarifai_Api_ImportInfo? = nil + var _trainLog: String = String() + var _inferenceComputeInfo: Clarifai_Api_ComputeInfo? = nil + var _buildInfo: Clarifai_Api_BuildInfo? = nil static let defaultInstance = _StorageClass() private init() {} init(copying source: _StorageClass) { - _numPos = source._numPos - _numNeg = source._numNeg - _numTot = source._numTot - _rocAuc = source._rocAuc - _f1 = source._f1 - _concept = source._concept - _rocCurve = source._rocCurve - _precisionRecallCurve = source._precisionRecallCurve - _avgPrecision = source._avgPrecision - _areaName = source._areaName - _areaMin = source._areaMin - _areaMax = source._areaMax - _iou = source._iou + _id = source._id + _createdAt = source._createdAt + _status = source._status + _activeConceptCount = source._activeConceptCount + _metrics = source._metrics + _totalInputCount = source._totalInputCount + _pretrainedModelConfig = source._pretrainedModelConfig + _completedAt = source._completedAt + _description_p = source._description_p + _visibility = source._visibility + _appID = source._appID + _userID = source._userID + _modifiedAt = source._modifiedAt + _metadata = source._metadata + _license = source._license + _outputInfo = source._outputInfo + _inputInfo = source._inputInfo + _trainInfo = source._trainInfo + _importInfo = source._importInfo + _trainLog = source._trainLog + _inferenceComputeInfo = source._inferenceComputeInfo + _buildInfo = source._buildInfo } } @@ -20690,19 +19606,28 @@ extension Clarifai_Api_BinaryMetrics: SwiftProtobuf.Message, SwiftProtobuf._Mess // 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.decodeSingularUInt32Field(value: &_storage._numPos) }() - case 2: try { try decoder.decodeSingularUInt32Field(value: &_storage._numNeg) }() - case 3: try { try decoder.decodeSingularUInt32Field(value: &_storage._numTot) }() - case 4: try { try decoder.decodeSingularFloatField(value: &_storage._rocAuc) }() - case 5: try { try decoder.decodeSingularFloatField(value: &_storage._f1) }() - case 6: try { try decoder.decodeSingularMessageField(value: &_storage._concept) }() - case 7: try { try decoder.decodeSingularMessageField(value: &_storage._rocCurve) }() - case 8: try { try decoder.decodeSingularMessageField(value: &_storage._precisionRecallCurve) }() - case 9: try { try decoder.decodeSingularFloatField(value: &_storage._avgPrecision) }() - case 10: try { try decoder.decodeSingularStringField(value: &_storage._areaName) }() - case 11: try { try decoder.decodeSingularDoubleField(value: &_storage._areaMin) }() - case 12: try { try decoder.decodeSingularDoubleField(value: &_storage._areaMax) }() - case 13: try { try decoder.decodeSingularFloatField(value: &_storage._iou) }() + case 1: try { try decoder.decodeSingularStringField(value: &_storage._id) }() + case 2: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() + case 3: try { try decoder.decodeSingularMessageField(value: &_storage._status) }() + case 4: try { try decoder.decodeSingularUInt32Field(value: &_storage._activeConceptCount) }() + case 5: try { try decoder.decodeSingularMessageField(value: &_storage._metrics) }() + case 6: try { try decoder.decodeSingularUInt32Field(value: &_storage._totalInputCount) }() + case 7: try { try decoder.decodeSingularMessageField(value: &_storage._pretrainedModelConfig) }() + case 10: try { try decoder.decodeSingularMessageField(value: &_storage._completedAt) }() + case 11: try { try decoder.decodeSingularStringField(value: &_storage._description_p) }() + case 12: try { try decoder.decodeSingularMessageField(value: &_storage._visibility) }() + case 13: try { try decoder.decodeSingularStringField(value: &_storage._appID) }() + case 14: try { try decoder.decodeSingularStringField(value: &_storage._userID) }() + case 15: try { try decoder.decodeSingularMessageField(value: &_storage._modifiedAt) }() + case 16: try { try decoder.decodeSingularMessageField(value: &_storage._metadata) }() + case 17: try { try decoder.decodeSingularStringField(value: &_storage._license) }() + case 19: try { try decoder.decodeSingularMessageField(value: &_storage._outputInfo) }() + case 20: try { try decoder.decodeSingularMessageField(value: &_storage._inputInfo) }() + case 21: try { try decoder.decodeSingularMessageField(value: &_storage._trainInfo) }() + case 22: try { try decoder.decodeSingularMessageField(value: &_storage._importInfo) }() + case 23: try { try decoder.decodeSingularStringField(value: &_storage._trainLog) }() + case 24: try { try decoder.decodeSingularMessageField(value: &_storage._inferenceComputeInfo) }() + case 25: try { try decoder.decodeSingularMessageField(value: &_storage._buildInfo) }() default: break } } @@ -20715,67 +19640,103 @@ extension Clarifai_Api_BinaryMetrics: SwiftProtobuf.Message, SwiftProtobuf._Mess // 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._numPos != 0 { - try visitor.visitSingularUInt32Field(value: _storage._numPos, fieldNumber: 1) - } - if _storage._numNeg != 0 { - try visitor.visitSingularUInt32Field(value: _storage._numNeg, fieldNumber: 2) - } - if _storage._numTot != 0 { - try visitor.visitSingularUInt32Field(value: _storage._numTot, fieldNumber: 3) - } - if _storage._rocAuc != 0 { - try visitor.visitSingularFloatField(value: _storage._rocAuc, fieldNumber: 4) + if !_storage._id.isEmpty { + try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) } - if _storage._f1 != 0 { - try visitor.visitSingularFloatField(value: _storage._f1, fieldNumber: 5) + try { if let v = _storage._createdAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + try { if let v = _storage._status { + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + } }() + if _storage._activeConceptCount != 0 { + try visitor.visitSingularUInt32Field(value: _storage._activeConceptCount, fieldNumber: 4) } - try { if let v = _storage._concept { - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + try { if let v = _storage._metrics { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) } }() - try { if let v = _storage._rocCurve { + if _storage._totalInputCount != 0 { + try visitor.visitSingularUInt32Field(value: _storage._totalInputCount, fieldNumber: 6) + } + try { if let v = _storage._pretrainedModelConfig { try visitor.visitSingularMessageField(value: v, fieldNumber: 7) } }() - try { if let v = _storage._precisionRecallCurve { - try visitor.visitSingularMessageField(value: v, fieldNumber: 8) + try { if let v = _storage._completedAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 10) } }() - if _storage._avgPrecision != 0 { - try visitor.visitSingularFloatField(value: _storage._avgPrecision, fieldNumber: 9) + if !_storage._description_p.isEmpty { + try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 11) } - if !_storage._areaName.isEmpty { - try visitor.visitSingularStringField(value: _storage._areaName, fieldNumber: 10) + try { if let v = _storage._visibility { + try visitor.visitSingularMessageField(value: v, fieldNumber: 12) + } }() + if !_storage._appID.isEmpty { + try visitor.visitSingularStringField(value: _storage._appID, fieldNumber: 13) } - if _storage._areaMin != 0 { - try visitor.visitSingularDoubleField(value: _storage._areaMin, fieldNumber: 11) + if !_storage._userID.isEmpty { + try visitor.visitSingularStringField(value: _storage._userID, fieldNumber: 14) } - if _storage._areaMax != 0 { - try visitor.visitSingularDoubleField(value: _storage._areaMax, fieldNumber: 12) + try { if let v = _storage._modifiedAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 15) + } }() + try { if let v = _storage._metadata { + try visitor.visitSingularMessageField(value: v, fieldNumber: 16) + } }() + if !_storage._license.isEmpty { + try visitor.visitSingularStringField(value: _storage._license, fieldNumber: 17) } - if _storage._iou != 0 { - try visitor.visitSingularFloatField(value: _storage._iou, fieldNumber: 13) + try { if let v = _storage._outputInfo { + try visitor.visitSingularMessageField(value: v, fieldNumber: 19) + } }() + try { if let v = _storage._inputInfo { + try visitor.visitSingularMessageField(value: v, fieldNumber: 20) + } }() + try { if let v = _storage._trainInfo { + try visitor.visitSingularMessageField(value: v, fieldNumber: 21) + } }() + try { if let v = _storage._importInfo { + try visitor.visitSingularMessageField(value: v, fieldNumber: 22) + } }() + if !_storage._trainLog.isEmpty { + try visitor.visitSingularStringField(value: _storage._trainLog, fieldNumber: 23) } + try { if let v = _storage._inferenceComputeInfo { + try visitor.visitSingularMessageField(value: v, fieldNumber: 24) + } }() + try { if let v = _storage._buildInfo { + try visitor.visitSingularMessageField(value: v, fieldNumber: 25) + } }() } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_BinaryMetrics, rhs: Clarifai_Api_BinaryMetrics) -> Bool { + public static func ==(lhs: Clarifai_Api_ModelVersion, rhs: Clarifai_Api_ModelVersion) -> 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._numPos != rhs_storage._numPos {return false} - if _storage._numNeg != rhs_storage._numNeg {return false} - if _storage._numTot != rhs_storage._numTot {return false} - if _storage._rocAuc != rhs_storage._rocAuc {return false} - if _storage._f1 != rhs_storage._f1 {return false} - if _storage._concept != rhs_storage._concept {return false} - if _storage._rocCurve != rhs_storage._rocCurve {return false} - if _storage._precisionRecallCurve != rhs_storage._precisionRecallCurve {return false} - if _storage._avgPrecision != rhs_storage._avgPrecision {return false} - if _storage._areaName != rhs_storage._areaName {return false} - if _storage._areaMin != rhs_storage._areaMin {return false} - if _storage._areaMax != rhs_storage._areaMax {return false} - if _storage._iou != rhs_storage._iou {return false} + if _storage._id != rhs_storage._id {return false} + if _storage._createdAt != rhs_storage._createdAt {return false} + if _storage._status != rhs_storage._status {return false} + if _storage._activeConceptCount != rhs_storage._activeConceptCount {return false} + if _storage._metrics != rhs_storage._metrics {return false} + if _storage._totalInputCount != rhs_storage._totalInputCount {return false} + if _storage._pretrainedModelConfig != rhs_storage._pretrainedModelConfig {return false} + if _storage._completedAt != rhs_storage._completedAt {return false} + if _storage._description_p != rhs_storage._description_p {return false} + if _storage._visibility != rhs_storage._visibility {return false} + if _storage._appID != rhs_storage._appID {return false} + if _storage._userID != rhs_storage._userID {return false} + if _storage._modifiedAt != rhs_storage._modifiedAt {return false} + if _storage._metadata != rhs_storage._metadata {return false} + if _storage._license != rhs_storage._license {return false} + if _storage._outputInfo != rhs_storage._outputInfo {return false} + if _storage._inputInfo != rhs_storage._inputInfo {return false} + if _storage._trainInfo != rhs_storage._trainInfo {return false} + if _storage._importInfo != rhs_storage._importInfo {return false} + if _storage._trainLog != rhs_storage._trainLog {return false} + if _storage._inferenceComputeInfo != rhs_storage._inferenceComputeInfo {return false} + if _storage._buildInfo != rhs_storage._buildInfo {return false} return true } if !storagesAreEqual {return false} @@ -20785,15 +19746,56 @@ extension Clarifai_Api_BinaryMetrics: SwiftProtobuf.Message, SwiftProtobuf._Mess } } -extension Clarifai_Api_TrackerMetrics: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".TrackerMetrics" +extension Clarifai_Api_BuildInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".BuildInfo" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "docker_image_name"), + 2: .standard(proto: "docker_image_tag"), + 3: .standard(proto: "docker_image_digest"), + ] + + 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.dockerImageName) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.dockerImageTag) }() + case 3: try { try decoder.decodeSingularStringField(value: &self.dockerImageDigest) }() + default: break + } + } + } + + public func traverse(visitor: inout V) throws { + if !self.dockerImageName.isEmpty { + try visitor.visitSingularStringField(value: self.dockerImageName, fieldNumber: 1) + } + if !self.dockerImageTag.isEmpty { + try visitor.visitSingularStringField(value: self.dockerImageTag, fieldNumber: 2) + } + if !self.dockerImageDigest.isEmpty { + try visitor.visitSingularStringField(value: self.dockerImageDigest, fieldNumber: 3) + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Clarifai_Api_BuildInfo, rhs: Clarifai_Api_BuildInfo) -> Bool { + if lhs.dockerImageName != rhs.dockerImageName {return false} + if lhs.dockerImageTag != rhs.dockerImageTag {return false} + if lhs.dockerImageDigest != rhs.dockerImageDigest {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Clarifai_Api_ModelVersionExport: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".ModelVersionExport" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "mot_mota"), - 2: .standard(proto: "mot_num_switches"), - 3: .standard(proto: "morse_frag"), - 4: .standard(proto: "avg_precision"), - 5: .same(proto: "aiid"), - 6: .standard(proto: "unique_switch_rate"), + 1: .same(proto: "status"), + 2: .same(proto: "url"), + 3: .same(proto: "size"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -20802,60 +19804,47 @@ extension Clarifai_Api_TrackerMetrics: 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.decodeSingularFloatField(value: &self.motMota) }() - case 2: try { try decoder.decodeSingularInt32Field(value: &self.motNumSwitches) }() - case 3: try { try decoder.decodeSingularFloatField(value: &self.morseFrag) }() - case 4: try { try decoder.decodeSingularFloatField(value: &self.avgPrecision) }() - case 5: try { try decoder.decodeSingularStringField(value: &self.aiid) }() - case 6: try { try decoder.decodeSingularFloatField(value: &self.uniqueSwitchRate) }() + case 1: try { try decoder.decodeSingularMessageField(value: &self._status) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.url) }() + case 3: try { try decoder.decodeSingularInt64Field(value: &self.size) }() default: break } } } public func traverse(visitor: inout V) throws { - if self.motMota != 0 { - try visitor.visitSingularFloatField(value: self.motMota, fieldNumber: 1) - } - if self.motNumSwitches != 0 { - try visitor.visitSingularInt32Field(value: self.motNumSwitches, fieldNumber: 2) - } - if self.morseFrag != 0 { - try visitor.visitSingularFloatField(value: self.morseFrag, fieldNumber: 3) - } - if self.avgPrecision != 0 { - try visitor.visitSingularFloatField(value: self.avgPrecision, fieldNumber: 4) - } - if !self.aiid.isEmpty { - try visitor.visitSingularStringField(value: self.aiid, fieldNumber: 5) + // 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.url.isEmpty { + try visitor.visitSingularStringField(value: self.url, fieldNumber: 2) } - if self.uniqueSwitchRate != 0 { - try visitor.visitSingularFloatField(value: self.uniqueSwitchRate, fieldNumber: 6) + if self.size != 0 { + try visitor.visitSingularInt64Field(value: self.size, fieldNumber: 3) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_TrackerMetrics, rhs: Clarifai_Api_TrackerMetrics) -> Bool { - if lhs.motMota != rhs.motMota {return false} - if lhs.motNumSwitches != rhs.motNumSwitches {return false} - if lhs.morseFrag != rhs.morseFrag {return false} - if lhs.avgPrecision != rhs.avgPrecision {return false} - if lhs.aiid != rhs.aiid {return false} - if lhs.uniqueSwitchRate != rhs.uniqueSwitchRate {return false} + public static func ==(lhs: Clarifai_Api_ModelVersionExport, rhs: Clarifai_Api_ModelVersionExport) -> Bool { + if lhs._status != rhs._status {return false} + if lhs.url != rhs.url {return false} + if lhs.size != rhs.size {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_EvalTestSetEntry: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".EvalTestSetEntry" +extension Clarifai_Api_PretrainedModelConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".PretrainedModelConfig" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 6: .same(proto: "input"), - 3: .standard(proto: "predicted_concepts"), - 4: .standard(proto: "ground_truth_concepts"), - 5: .same(proto: "annotation"), - 7: .standard(proto: "predicted_annotation"), - 8: .standard(proto: "ground_truth_annotation"), + 3: .standard(proto: "input_fields_map"), + 4: .standard(proto: "output_fields_map"), + 6: .standard(proto: "model_zip_url"), + 8: .standard(proto: "local_dev"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -20864,12 +19853,10 @@ extension Clarifai_Api_EvalTestSetEntry: SwiftProtobuf.Message, SwiftProtobuf._M // allocates stack space for every case branch when no optimizations are // enabled. https://github.com/apple/swift-protobuf/issues/1034 switch fieldNumber { - case 3: try { try decoder.decodeRepeatedMessageField(value: &self.predictedConcepts) }() - case 4: try { try decoder.decodeRepeatedMessageField(value: &self.groundTruthConcepts) }() - case 5: try { try decoder.decodeSingularMessageField(value: &self._annotation) }() - case 6: try { try decoder.decodeSingularMessageField(value: &self._input) }() - case 7: try { try decoder.decodeSingularMessageField(value: &self._predictedAnnotation) }() - case 8: try { try decoder.decodeSingularMessageField(value: &self._groundTruthAnnotation) }() + case 3: try { try decoder.decodeSingularMessageField(value: &self._inputFieldsMap) }() + case 4: try { try decoder.decodeSingularMessageField(value: &self._outputFieldsMap) }() + case 6: try { try decoder.decodeSingularStringField(value: &self.modelZipURL) }() + case 8: try { try decoder.decodeSingularBoolField(value: &self.localDev) }() default: break } } @@ -20880,48 +19867,35 @@ extension Clarifai_Api_EvalTestSetEntry: SwiftProtobuf.Message, SwiftProtobuf._M // 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.predictedConcepts.isEmpty { - try visitor.visitRepeatedMessageField(value: self.predictedConcepts, fieldNumber: 3) - } - if !self.groundTruthConcepts.isEmpty { - try visitor.visitRepeatedMessageField(value: self.groundTruthConcepts, fieldNumber: 4) - } - try { if let v = self._annotation { - try visitor.visitSingularMessageField(value: v, fieldNumber: 5) - } }() - try { if let v = self._input { - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) - } }() - try { if let v = self._predictedAnnotation { - try visitor.visitSingularMessageField(value: v, fieldNumber: 7) + try { if let v = self._inputFieldsMap { + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) } }() - try { if let v = self._groundTruthAnnotation { - try visitor.visitSingularMessageField(value: v, fieldNumber: 8) + try { if let v = self._outputFieldsMap { + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) } }() + if !self.modelZipURL.isEmpty { + try visitor.visitSingularStringField(value: self.modelZipURL, fieldNumber: 6) + } + if self.localDev != false { + try visitor.visitSingularBoolField(value: self.localDev, fieldNumber: 8) + } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_EvalTestSetEntry, rhs: Clarifai_Api_EvalTestSetEntry) -> Bool { - if lhs._input != rhs._input {return false} - if lhs.predictedConcepts != rhs.predictedConcepts {return false} - if lhs.groundTruthConcepts != rhs.groundTruthConcepts {return false} - if lhs._annotation != rhs._annotation {return false} - if lhs._predictedAnnotation != rhs._predictedAnnotation {return false} - if lhs._groundTruthAnnotation != rhs._groundTruthAnnotation {return false} + public static func ==(lhs: Clarifai_Api_PretrainedModelConfig, rhs: Clarifai_Api_PretrainedModelConfig) -> Bool { + if lhs._inputFieldsMap != rhs._inputFieldsMap {return false} + if lhs._outputFieldsMap != rhs._outputFieldsMap {return false} + if lhs.modelZipURL != rhs.modelZipURL {return false} + if lhs.localDev != rhs.localDev {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_LOPQEvalResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".LOPQEvalResult" +extension Clarifai_Api_TrainStats: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".TrainStats" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "k"), - 2: .standard(proto: "recall_vs_brute_force"), - 3: .standard(proto: "kendall_tau_vs_brute_force"), - 4: .standard(proto: "most_frequent_code_percent"), - 5: .standard(proto: "lopq_ndcg"), - 6: .standard(proto: "brute_force_ndcg"), + 1: .standard(proto: "loss_curve"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -20930,65 +19904,122 @@ extension Clarifai_Api_LOPQEvalResult: 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.decodeSingularInt32Field(value: &self.k) }() - case 2: try { try decoder.decodeSingularFloatField(value: &self.recallVsBruteForce) }() - case 3: try { try decoder.decodeSingularFloatField(value: &self.kendallTauVsBruteForce) }() - case 4: try { try decoder.decodeSingularFloatField(value: &self.mostFrequentCodePercent) }() - case 5: try { try decoder.decodeSingularFloatField(value: &self.lopqNdcg) }() - case 6: try { try decoder.decodeSingularFloatField(value: &self.bruteForceNdcg) }() + case 1: try { try decoder.decodeRepeatedMessageField(value: &self.lossCurve) }() default: break } } } public func traverse(visitor: inout V) throws { - if self.k != 0 { - try visitor.visitSingularInt32Field(value: self.k, fieldNumber: 1) - } - if self.recallVsBruteForce != 0 { - try visitor.visitSingularFloatField(value: self.recallVsBruteForce, fieldNumber: 2) + if !self.lossCurve.isEmpty { + try visitor.visitRepeatedMessageField(value: self.lossCurve, fieldNumber: 1) } - if self.kendallTauVsBruteForce != 0 { - try visitor.visitSingularFloatField(value: self.kendallTauVsBruteForce, fieldNumber: 3) + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Clarifai_Api_TrainStats, rhs: Clarifai_Api_TrainStats) -> Bool { + if lhs.lossCurve != rhs.lossCurve {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Clarifai_Api_LossCurveEntry: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".LossCurveEntry" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "epoch"), + 2: .standard(proto: "global_step"), + 3: .same(proto: "cost"), + ] + + 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.decodeSingularUInt32Field(value: &self.epoch) }() + case 2: try { try decoder.decodeSingularUInt32Field(value: &self.globalStep) }() + case 3: try { try decoder.decodeSingularFloatField(value: &self.cost) }() + default: break + } } - if self.mostFrequentCodePercent != 0 { - try visitor.visitSingularFloatField(value: self.mostFrequentCodePercent, fieldNumber: 4) + } + + public func traverse(visitor: inout V) throws { + if self.epoch != 0 { + try visitor.visitSingularUInt32Field(value: self.epoch, fieldNumber: 1) } - if self.lopqNdcg != 0 { - try visitor.visitSingularFloatField(value: self.lopqNdcg, fieldNumber: 5) + if self.globalStep != 0 { + try visitor.visitSingularUInt32Field(value: self.globalStep, fieldNumber: 2) } - if self.bruteForceNdcg != 0 { - try visitor.visitSingularFloatField(value: self.bruteForceNdcg, fieldNumber: 6) + if self.cost != 0 { + try visitor.visitSingularFloatField(value: self.cost, fieldNumber: 3) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_LOPQEvalResult, rhs: Clarifai_Api_LOPQEvalResult) -> Bool { - if lhs.k != rhs.k {return false} - if lhs.recallVsBruteForce != rhs.recallVsBruteForce {return false} - if lhs.kendallTauVsBruteForce != rhs.kendallTauVsBruteForce {return false} - if lhs.mostFrequentCodePercent != rhs.mostFrequentCodePercent {return false} - if lhs.lopqNdcg != rhs.lopqNdcg {return false} - if lhs.bruteForceNdcg != rhs.bruteForceNdcg {return false} + public static func ==(lhs: Clarifai_Api_LossCurveEntry, rhs: Clarifai_Api_LossCurveEntry) -> Bool { + if lhs.epoch != rhs.epoch {return false} + if lhs.globalStep != rhs.globalStep {return false} + if lhs.cost != rhs.cost {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Clarifai_Api_LabelCount: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".LabelCount" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "concept_name"), + 2: .same(proto: "count"), + 3: .same(proto: "concept"), + ] + + 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.conceptName) }() + case 2: try { try decoder.decodeSingularUInt32Field(value: &self.count) }() + case 3: try { try decoder.decodeSingularMessageField(value: &self._concept) }() + 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.conceptName.isEmpty { + try visitor.visitSingularStringField(value: self.conceptName, fieldNumber: 1) + } + if self.count != 0 { + try visitor.visitSingularUInt32Field(value: self.count, fieldNumber: 2) + } + try { if let v = self._concept { + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + } }() + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Clarifai_Api_LabelCount, rhs: Clarifai_Api_LabelCount) -> Bool { + if lhs.conceptName != rhs.conceptName {return false} + if lhs.count != rhs.count {return false} + if lhs._concept != rhs._concept {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_MetricsSummary: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".MetricsSummary" +extension Clarifai_Api_LabelDistribution: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".LabelDistribution" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "top1_accuracy"), - 2: .standard(proto: "top5_accuracy"), - 3: .standard(proto: "macro_avg_roc_auc"), - 4: .standard(proto: "macro_std_roc_auc"), - 5: .standard(proto: "macro_avg_f1_score"), - 6: .standard(proto: "macro_std_f1_score"), - 7: .standard(proto: "macro_avg_precision"), - 8: .standard(proto: "macro_avg_recall"), - 10: .standard(proto: "mean_avg_precision_iou_50"), - 11: .standard(proto: "mean_avg_precision_iou_range"), - 9: .standard(proto: "lopq_metrics"), + 1: .standard(proto: "positive_label_counts"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -20997,284 +20028,116 @@ extension Clarifai_Api_MetricsSummary: 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.decodeSingularFloatField(value: &self.top1Accuracy) }() - case 2: try { try decoder.decodeSingularFloatField(value: &self.top5Accuracy) }() - case 3: try { try decoder.decodeSingularFloatField(value: &self.macroAvgRocAuc) }() - case 4: try { try decoder.decodeSingularFloatField(value: &self.macroStdRocAuc) }() - case 5: try { try decoder.decodeSingularFloatField(value: &self.macroAvgF1Score) }() - case 6: try { try decoder.decodeSingularFloatField(value: &self.macroStdF1Score) }() - case 7: try { try decoder.decodeSingularFloatField(value: &self.macroAvgPrecision) }() - case 8: try { try decoder.decodeSingularFloatField(value: &self.macroAvgRecall) }() - case 9: try { try decoder.decodeRepeatedMessageField(value: &self.lopqMetrics) }() - case 10: try { try decoder.decodeSingularFloatField(value: &self.meanAvgPrecisionIou50) }() - case 11: try { try decoder.decodeSingularFloatField(value: &self.meanAvgPrecisionIouRange) }() + case 1: try { try decoder.decodeRepeatedMessageField(value: &self.positiveLabelCounts) }() default: break } } } public func traverse(visitor: inout V) throws { - if self.top1Accuracy != 0 { - try visitor.visitSingularFloatField(value: self.top1Accuracy, fieldNumber: 1) - } - if self.top5Accuracy != 0 { - try visitor.visitSingularFloatField(value: self.top5Accuracy, fieldNumber: 2) - } - if self.macroAvgRocAuc != 0 { - try visitor.visitSingularFloatField(value: self.macroAvgRocAuc, fieldNumber: 3) - } - if self.macroStdRocAuc != 0 { - try visitor.visitSingularFloatField(value: self.macroStdRocAuc, fieldNumber: 4) - } - if self.macroAvgF1Score != 0 { - try visitor.visitSingularFloatField(value: self.macroAvgF1Score, fieldNumber: 5) - } - if self.macroStdF1Score != 0 { - try visitor.visitSingularFloatField(value: self.macroStdF1Score, fieldNumber: 6) - } - if self.macroAvgPrecision != 0 { - try visitor.visitSingularFloatField(value: self.macroAvgPrecision, fieldNumber: 7) - } - if self.macroAvgRecall != 0 { - try visitor.visitSingularFloatField(value: self.macroAvgRecall, fieldNumber: 8) - } - if !self.lopqMetrics.isEmpty { - try visitor.visitRepeatedMessageField(value: self.lopqMetrics, fieldNumber: 9) - } - if self.meanAvgPrecisionIou50 != 0 { - try visitor.visitSingularFloatField(value: self.meanAvgPrecisionIou50, fieldNumber: 10) - } - if self.meanAvgPrecisionIouRange != 0 { - try visitor.visitSingularFloatField(value: self.meanAvgPrecisionIouRange, fieldNumber: 11) + if !self.positiveLabelCounts.isEmpty { + try visitor.visitRepeatedMessageField(value: self.positiveLabelCounts, fieldNumber: 1) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_MetricsSummary, rhs: Clarifai_Api_MetricsSummary) -> Bool { - if lhs.top1Accuracy != rhs.top1Accuracy {return false} - if lhs.top5Accuracy != rhs.top5Accuracy {return false} - if lhs.macroAvgRocAuc != rhs.macroAvgRocAuc {return false} - if lhs.macroStdRocAuc != rhs.macroStdRocAuc {return false} - if lhs.macroAvgF1Score != rhs.macroAvgF1Score {return false} - if lhs.macroStdF1Score != rhs.macroStdF1Score {return false} - if lhs.macroAvgPrecision != rhs.macroAvgPrecision {return false} - if lhs.macroAvgRecall != rhs.macroAvgRecall {return false} - if lhs.meanAvgPrecisionIou50 != rhs.meanAvgPrecisionIou50 {return false} - if lhs.meanAvgPrecisionIouRange != rhs.meanAvgPrecisionIouRange {return false} - if lhs.lopqMetrics != rhs.lopqMetrics {return false} + public static func ==(lhs: Clarifai_Api_LabelDistribution, rhs: Clarifai_Api_LabelDistribution) -> Bool { + if lhs.positiveLabelCounts != rhs.positiveLabelCounts {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_EvalMetrics: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".EvalMetrics" +extension Clarifai_Api_CooccurrenceMatrixEntry: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".CooccurrenceMatrixEntry" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "status"), - 15: .standard(proto: "user_id"), - 16: .standard(proto: "app_id"), - 10: .same(proto: "id"), - 13: .same(proto: "model"), - 14: .standard(proto: "ground_truth_dataset"), - 18: .standard(proto: "predictions_dataset"), - 2: .same(proto: "summary"), - 3: .standard(proto: "confusion_matrix"), - 4: .standard(proto: "cooccurrence_matrix"), - 5: .standard(proto: "label_counts"), - 6: .standard(proto: "binary_metrics"), - 7: .standard(proto: "test_set"), - 8: .standard(proto: "metrics_by_area"), - 9: .standard(proto: "metrics_by_class"), - 11: .standard(proto: "tracker_metrics"), - 12: .standard(proto: "eval_info"), - 17: .standard(proto: "extended_metrics"), + 1: .same(proto: "row"), + 2: .same(proto: "col"), + 3: .same(proto: "count"), ] - fileprivate class _StorageClass { - var _status: Clarifai_Api_Status_Status? = nil - var _userID: String = String() - var _appID: String = String() - var _id: String = String() - var _model: Clarifai_Api_Model? = nil - var _groundTruthDataset: Clarifai_Api_Dataset? = nil - var _predictionsDataset: Clarifai_Api_Dataset? = nil - var _summary: Clarifai_Api_MetricsSummary? = nil - var _confusionMatrix: Clarifai_Api_ConfusionMatrix? = nil - var _cooccurrenceMatrix: Clarifai_Api_CooccurrenceMatrix? = nil - var _labelCounts: Clarifai_Api_LabelDistribution? = nil - var _binaryMetrics: [Clarifai_Api_BinaryMetrics] = [] - var _testSet: [Clarifai_Api_EvalTestSetEntry] = [] - var _metricsByArea: [Clarifai_Api_BinaryMetrics] = [] - var _metricsByClass: [Clarifai_Api_BinaryMetrics] = [] - var _trackerMetrics: [Clarifai_Api_TrackerMetrics] = [] - var _evalInfo: Clarifai_Api_EvalInfo? = nil - var _extendedMetrics: Clarifai_Api_ExtendedMetrics? = nil - - static let defaultInstance = _StorageClass() - - private init() {} - - init(copying source: _StorageClass) { - _status = source._status - _userID = source._userID - _appID = source._appID - _id = source._id - _model = source._model - _groundTruthDataset = source._groundTruthDataset - _predictionsDataset = source._predictionsDataset - _summary = source._summary - _confusionMatrix = source._confusionMatrix - _cooccurrenceMatrix = source._cooccurrenceMatrix - _labelCounts = source._labelCounts - _binaryMetrics = source._binaryMetrics - _testSet = source._testSet - _metricsByArea = source._metricsByArea - _metricsByClass = source._metricsByClass - _trackerMetrics = source._trackerMetrics - _evalInfo = source._evalInfo - _extendedMetrics = source._extendedMetrics - } - } - - 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.decodeSingularMessageField(value: &_storage._status) }() - case 2: try { try decoder.decodeSingularMessageField(value: &_storage._summary) }() - case 3: try { try decoder.decodeSingularMessageField(value: &_storage._confusionMatrix) }() - case 4: try { try decoder.decodeSingularMessageField(value: &_storage._cooccurrenceMatrix) }() - case 5: try { try decoder.decodeSingularMessageField(value: &_storage._labelCounts) }() - case 6: try { try decoder.decodeRepeatedMessageField(value: &_storage._binaryMetrics) }() - case 7: try { try decoder.decodeRepeatedMessageField(value: &_storage._testSet) }() - case 8: try { try decoder.decodeRepeatedMessageField(value: &_storage._metricsByArea) }() - case 9: try { try decoder.decodeRepeatedMessageField(value: &_storage._metricsByClass) }() - case 10: try { try decoder.decodeSingularStringField(value: &_storage._id) }() - case 11: try { try decoder.decodeRepeatedMessageField(value: &_storage._trackerMetrics) }() - case 12: try { try decoder.decodeSingularMessageField(value: &_storage._evalInfo) }() - case 13: try { try decoder.decodeSingularMessageField(value: &_storage._model) }() - case 14: try { try decoder.decodeSingularMessageField(value: &_storage._groundTruthDataset) }() - case 15: try { try decoder.decodeSingularStringField(value: &_storage._userID) }() - case 16: try { try decoder.decodeSingularStringField(value: &_storage._appID) }() - case 17: try { try decoder.decodeSingularMessageField(value: &_storage._extendedMetrics) }() - case 18: try { try decoder.decodeSingularMessageField(value: &_storage._predictionsDataset) }() - default: break - } + 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.row) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.col) }() + case 3: try { try decoder.decodeSingularUInt32Field(value: &self.count) }() + 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 - try { if let v = _storage._status { - try visitor.visitSingularMessageField(value: v, fieldNumber: 1) - } }() - try { if let v = _storage._summary { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - try { if let v = _storage._confusionMatrix { - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - } }() - try { if let v = _storage._cooccurrenceMatrix { - try visitor.visitSingularMessageField(value: v, fieldNumber: 4) - } }() - try { if let v = _storage._labelCounts { - try visitor.visitSingularMessageField(value: v, fieldNumber: 5) - } }() - if !_storage._binaryMetrics.isEmpty { - try visitor.visitRepeatedMessageField(value: _storage._binaryMetrics, fieldNumber: 6) - } - if !_storage._testSet.isEmpty { - try visitor.visitRepeatedMessageField(value: _storage._testSet, fieldNumber: 7) - } - if !_storage._metricsByArea.isEmpty { - try visitor.visitRepeatedMessageField(value: _storage._metricsByArea, fieldNumber: 8) - } - if !_storage._metricsByClass.isEmpty { - try visitor.visitRepeatedMessageField(value: _storage._metricsByClass, fieldNumber: 9) - } - if !_storage._id.isEmpty { - try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 10) - } - if !_storage._trackerMetrics.isEmpty { - try visitor.visitRepeatedMessageField(value: _storage._trackerMetrics, fieldNumber: 11) - } - try { if let v = _storage._evalInfo { - try visitor.visitSingularMessageField(value: v, fieldNumber: 12) - } }() - try { if let v = _storage._model { - try visitor.visitSingularMessageField(value: v, fieldNumber: 13) - } }() - try { if let v = _storage._groundTruthDataset { - try visitor.visitSingularMessageField(value: v, fieldNumber: 14) - } }() - if !_storage._userID.isEmpty { - try visitor.visitSingularStringField(value: _storage._userID, fieldNumber: 15) - } - if !_storage._appID.isEmpty { - try visitor.visitSingularStringField(value: _storage._appID, fieldNumber: 16) - } - try { if let v = _storage._extendedMetrics { - try visitor.visitSingularMessageField(value: v, fieldNumber: 17) - } }() - try { if let v = _storage._predictionsDataset { - try visitor.visitSingularMessageField(value: v, fieldNumber: 18) - } }() + + public func traverse(visitor: inout V) throws { + if !self.row.isEmpty { + try visitor.visitSingularStringField(value: self.row, fieldNumber: 1) + } + if !self.col.isEmpty { + try visitor.visitSingularStringField(value: self.col, fieldNumber: 2) + } + if self.count != 0 { + try visitor.visitSingularUInt32Field(value: self.count, fieldNumber: 3) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_EvalMetrics, rhs: Clarifai_Api_EvalMetrics) -> 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._status != rhs_storage._status {return false} - if _storage._userID != rhs_storage._userID {return false} - if _storage._appID != rhs_storage._appID {return false} - if _storage._id != rhs_storage._id {return false} - if _storage._model != rhs_storage._model {return false} - if _storage._groundTruthDataset != rhs_storage._groundTruthDataset {return false} - if _storage._predictionsDataset != rhs_storage._predictionsDataset {return false} - if _storage._summary != rhs_storage._summary {return false} - if _storage._confusionMatrix != rhs_storage._confusionMatrix {return false} - if _storage._cooccurrenceMatrix != rhs_storage._cooccurrenceMatrix {return false} - if _storage._labelCounts != rhs_storage._labelCounts {return false} - if _storage._binaryMetrics != rhs_storage._binaryMetrics {return false} - if _storage._testSet != rhs_storage._testSet {return false} - if _storage._metricsByArea != rhs_storage._metricsByArea {return false} - if _storage._metricsByClass != rhs_storage._metricsByClass {return false} - if _storage._trackerMetrics != rhs_storage._trackerMetrics {return false} - if _storage._evalInfo != rhs_storage._evalInfo {return false} - if _storage._extendedMetrics != rhs_storage._extendedMetrics {return false} - return true + public static func ==(lhs: Clarifai_Api_CooccurrenceMatrixEntry, rhs: Clarifai_Api_CooccurrenceMatrixEntry) -> Bool { + if lhs.row != rhs.row {return false} + if lhs.col != rhs.col {return false} + if lhs.count != rhs.count {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Clarifai_Api_CooccurrenceMatrix: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".CooccurrenceMatrix" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "matrix"), + 2: .standard(proto: "concept_ids"), + ] + + 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.matrix) }() + case 2: try { try decoder.decodeRepeatedStringField(value: &self.conceptIds) }() + default: break } - if !storagesAreEqual {return false} } + } + + public func traverse(visitor: inout V) throws { + if !self.matrix.isEmpty { + try visitor.visitRepeatedMessageField(value: self.matrix, fieldNumber: 1) + } + if !self.conceptIds.isEmpty { + try visitor.visitRepeatedStringField(value: self.conceptIds, fieldNumber: 2) + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Clarifai_Api_CooccurrenceMatrix, rhs: Clarifai_Api_CooccurrenceMatrix) -> Bool { + if lhs.matrix != rhs.matrix {return false} + if lhs.conceptIds != rhs.conceptIds {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_ExtendedMetrics: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".ExtendedMetrics" +extension Clarifai_Api_ConfusionMatrixEntry: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".ConfusionMatrixEntry" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "user_metrics"), + 1: .same(proto: "predicted"), + 2: .same(proto: "actual"), + 4: .same(proto: "value"), + 5: .standard(proto: "predicted_concept"), + 6: .standard(proto: "actual_concept"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -21283,7 +20146,11 @@ extension Clarifai_Api_ExtendedMetrics: 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.decodeSingularMessageField(value: &self._userMetrics) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.predicted) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.actual) }() + case 4: try { try decoder.decodeSingularFloatField(value: &self.value) }() + case 5: try { try decoder.decodeSingularMessageField(value: &self._predictedConcept) }() + case 6: try { try decoder.decodeSingularMessageField(value: &self._actualConcept) }() default: break } } @@ -21294,29 +20161,40 @@ extension Clarifai_Api_ExtendedMetrics: SwiftProtobuf.Message, SwiftProtobuf._Me // 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._userMetrics { - try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + if !self.predicted.isEmpty { + try visitor.visitSingularStringField(value: self.predicted, fieldNumber: 1) + } + if !self.actual.isEmpty { + try visitor.visitSingularStringField(value: self.actual, fieldNumber: 2) + } + if self.value != 0 { + try visitor.visitSingularFloatField(value: self.value, fieldNumber: 4) + } + try { if let v = self._predictedConcept { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } }() + try { if let v = self._actualConcept { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_ExtendedMetrics, rhs: Clarifai_Api_ExtendedMetrics) -> Bool { - if lhs._userMetrics != rhs._userMetrics {return false} + public static func ==(lhs: Clarifai_Api_ConfusionMatrixEntry, rhs: Clarifai_Api_ConfusionMatrixEntry) -> Bool { + if lhs.predicted != rhs.predicted {return false} + if lhs.actual != rhs.actual {return false} + if lhs.value != rhs.value {return false} + if lhs._predictedConcept != rhs._predictedConcept {return false} + if lhs._actualConcept != rhs._actualConcept {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_FieldsValue: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".FieldsValue" +extension Clarifai_Api_ConfusionMatrix: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".ConfusionMatrix" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "confusion_matrix"), - 2: .standard(proto: "cooccurrence_matrix"), - 3: .standard(proto: "label_counts"), - 4: .standard(proto: "binary_metrics"), - 5: .standard(proto: "test_set"), - 6: .standard(proto: "metrics_by_area"), - 7: .standard(proto: "metrics_by_class"), + 1: .same(proto: "matrix"), + 2: .standard(proto: "concept_ids"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -21325,86 +20203,182 @@ extension Clarifai_Api_FieldsValue: SwiftProtobuf.Message, SwiftProtobuf._Messag // 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.decodeSingularBoolField(value: &self.confusionMatrix) }() - case 2: try { try decoder.decodeSingularBoolField(value: &self.cooccurrenceMatrix) }() - case 3: try { try decoder.decodeSingularBoolField(value: &self.labelCounts) }() - case 4: try { try decoder.decodeSingularBoolField(value: &self.binaryMetrics) }() - case 5: try { try decoder.decodeSingularBoolField(value: &self.testSet) }() - case 6: try { try decoder.decodeSingularBoolField(value: &self.metricsByArea) }() - case 7: try { try decoder.decodeSingularBoolField(value: &self.metricsByClass) }() + case 1: try { try decoder.decodeRepeatedMessageField(value: &self.matrix) }() + case 2: try { try decoder.decodeRepeatedStringField(value: &self.conceptIds) }() default: break } } } public func traverse(visitor: inout V) throws { - if self.confusionMatrix != false { - try visitor.visitSingularBoolField(value: self.confusionMatrix, fieldNumber: 1) + if !self.matrix.isEmpty { + try visitor.visitRepeatedMessageField(value: self.matrix, fieldNumber: 1) } - if self.cooccurrenceMatrix != false { - try visitor.visitSingularBoolField(value: self.cooccurrenceMatrix, fieldNumber: 2) + if !self.conceptIds.isEmpty { + try visitor.visitRepeatedStringField(value: self.conceptIds, fieldNumber: 2) } - if self.labelCounts != false { - try visitor.visitSingularBoolField(value: self.labelCounts, fieldNumber: 3) + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Clarifai_Api_ConfusionMatrix, rhs: Clarifai_Api_ConfusionMatrix) -> Bool { + if lhs.matrix != rhs.matrix {return false} + if lhs.conceptIds != rhs.conceptIds {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Clarifai_Api_ROC: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".ROC" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "fpr"), + 2: .same(proto: "tpr"), + 3: .same(proto: "thresholds"), + 4: .standard(proto: "fpr_per_image"), + 5: .standard(proto: "fpr_per_object"), + ] + + 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.decodeRepeatedFloatField(value: &self.fpr) }() + case 2: try { try decoder.decodeRepeatedFloatField(value: &self.tpr) }() + case 3: try { try decoder.decodeRepeatedFloatField(value: &self.thresholds) }() + case 4: try { try decoder.decodeRepeatedFloatField(value: &self.fprPerImage) }() + case 5: try { try decoder.decodeRepeatedFloatField(value: &self.fprPerObject) }() + default: break + } } - if self.binaryMetrics != false { - try visitor.visitSingularBoolField(value: self.binaryMetrics, fieldNumber: 4) + } + + public func traverse(visitor: inout V) throws { + if !self.fpr.isEmpty { + try visitor.visitPackedFloatField(value: self.fpr, fieldNumber: 1) } - if self.testSet != false { - try visitor.visitSingularBoolField(value: self.testSet, fieldNumber: 5) + if !self.tpr.isEmpty { + try visitor.visitPackedFloatField(value: self.tpr, fieldNumber: 2) } - if self.metricsByArea != false { - try visitor.visitSingularBoolField(value: self.metricsByArea, fieldNumber: 6) + if !self.thresholds.isEmpty { + try visitor.visitPackedFloatField(value: self.thresholds, fieldNumber: 3) } - if self.metricsByClass != false { - try visitor.visitSingularBoolField(value: self.metricsByClass, fieldNumber: 7) + if !self.fprPerImage.isEmpty { + try visitor.visitPackedFloatField(value: self.fprPerImage, fieldNumber: 4) + } + if !self.fprPerObject.isEmpty { + try visitor.visitPackedFloatField(value: self.fprPerObject, fieldNumber: 5) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_FieldsValue, rhs: Clarifai_Api_FieldsValue) -> Bool { - if lhs.confusionMatrix != rhs.confusionMatrix {return false} - if lhs.cooccurrenceMatrix != rhs.cooccurrenceMatrix {return false} - if lhs.labelCounts != rhs.labelCounts {return false} - if lhs.binaryMetrics != rhs.binaryMetrics {return false} - if lhs.testSet != rhs.testSet {return false} - if lhs.metricsByArea != rhs.metricsByArea {return false} - if lhs.metricsByClass != rhs.metricsByClass {return false} + public static func ==(lhs: Clarifai_Api_ROC, rhs: Clarifai_Api_ROC) -> Bool { + if lhs.fpr != rhs.fpr {return false} + if lhs.tpr != rhs.tpr {return false} + if lhs.thresholds != rhs.thresholds {return false} + if lhs.fprPerImage != rhs.fprPerImage {return false} + if lhs.fprPerObject != rhs.fprPerObject {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Clarifai_Api_PrecisionRecallCurve: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".PrecisionRecallCurve" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "recall"), + 2: .same(proto: "precision"), + 3: .same(proto: "thresholds"), + ] + + 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.decodeRepeatedFloatField(value: &self.recall) }() + case 2: try { try decoder.decodeRepeatedFloatField(value: &self.precision) }() + case 3: try { try decoder.decodeRepeatedFloatField(value: &self.thresholds) }() + default: break + } + } + } + + public func traverse(visitor: inout V) throws { + if !self.recall.isEmpty { + try visitor.visitPackedFloatField(value: self.recall, fieldNumber: 1) + } + if !self.precision.isEmpty { + try visitor.visitPackedFloatField(value: self.precision, fieldNumber: 2) + } + if !self.thresholds.isEmpty { + try visitor.visitPackedFloatField(value: self.thresholds, fieldNumber: 3) + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Clarifai_Api_PrecisionRecallCurve, rhs: Clarifai_Api_PrecisionRecallCurve) -> Bool { + if lhs.recall != rhs.recall {return false} + if lhs.precision != rhs.precision {return false} + if lhs.thresholds != rhs.thresholds {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_Output: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Output" +extension Clarifai_Api_BinaryMetrics: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".BinaryMetrics" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .same(proto: "status"), - 3: .standard(proto: "created_at"), - 4: .same(proto: "model"), - 5: .same(proto: "input"), - 6: .same(proto: "data"), + 1: .standard(proto: "num_pos"), + 2: .standard(proto: "num_neg"), + 3: .standard(proto: "num_tot"), + 4: .standard(proto: "roc_auc"), + 5: .same(proto: "f1"), + 6: .same(proto: "concept"), + 7: .standard(proto: "roc_curve"), + 8: .standard(proto: "precision_recall_curve"), + 9: .standard(proto: "avg_precision"), + 10: .standard(proto: "area_name"), + 11: .standard(proto: "area_min"), + 12: .standard(proto: "area_max"), + 13: .same(proto: "iou"), ] fileprivate class _StorageClass { - var _id: String = String() - var _status: Clarifai_Api_Status_Status? = nil - var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _model: Clarifai_Api_Model? = nil - var _input: Clarifai_Api_Input? = nil - var _data: Clarifai_Api_Data? = nil + var _numPos: UInt32 = 0 + var _numNeg: UInt32 = 0 + var _numTot: UInt32 = 0 + var _rocAuc: Float = 0 + var _f1: Float = 0 + var _concept: Clarifai_Api_Concept? = nil + var _rocCurve: Clarifai_Api_ROC? = nil + var _precisionRecallCurve: Clarifai_Api_PrecisionRecallCurve? = nil + var _avgPrecision: Float = 0 + var _areaName: String = String() + var _areaMin: Double = 0 + var _areaMax: Double = 0 + var _iou: Float = 0 static let defaultInstance = _StorageClass() private init() {} init(copying source: _StorageClass) { - _id = source._id - _status = source._status - _createdAt = source._createdAt - _model = source._model - _input = source._input - _data = source._data + _numPos = source._numPos + _numNeg = source._numNeg + _numTot = source._numTot + _rocAuc = source._rocAuc + _f1 = source._f1 + _concept = source._concept + _rocCurve = source._rocCurve + _precisionRecallCurve = source._precisionRecallCurve + _avgPrecision = source._avgPrecision + _areaName = source._areaName + _areaMin = source._areaMin + _areaMax = source._areaMax + _iou = source._iou } } @@ -21423,12 +20397,19 @@ extension Clarifai_Api_Output: 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.decodeSingularStringField(value: &_storage._id) }() - case 2: try { try decoder.decodeSingularMessageField(value: &_storage._status) }() - case 3: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() - case 4: try { try decoder.decodeSingularMessageField(value: &_storage._model) }() - case 5: try { try decoder.decodeSingularMessageField(value: &_storage._input) }() - case 6: try { try decoder.decodeSingularMessageField(value: &_storage._data) }() + case 1: try { try decoder.decodeSingularUInt32Field(value: &_storage._numPos) }() + case 2: try { try decoder.decodeSingularUInt32Field(value: &_storage._numNeg) }() + case 3: try { try decoder.decodeSingularUInt32Field(value: &_storage._numTot) }() + case 4: try { try decoder.decodeSingularFloatField(value: &_storage._rocAuc) }() + case 5: try { try decoder.decodeSingularFloatField(value: &_storage._f1) }() + case 6: try { try decoder.decodeSingularMessageField(value: &_storage._concept) }() + case 7: try { try decoder.decodeSingularMessageField(value: &_storage._rocCurve) }() + case 8: try { try decoder.decodeSingularMessageField(value: &_storage._precisionRecallCurve) }() + case 9: try { try decoder.decodeSingularFloatField(value: &_storage._avgPrecision) }() + case 10: try { try decoder.decodeSingularStringField(value: &_storage._areaName) }() + case 11: try { try decoder.decodeSingularDoubleField(value: &_storage._areaMin) }() + case 12: try { try decoder.decodeSingularDoubleField(value: &_storage._areaMax) }() + case 13: try { try decoder.decodeSingularFloatField(value: &_storage._iou) }() default: break } } @@ -21441,39 +20422,67 @@ extension Clarifai_Api_Output: SwiftProtobuf.Message, SwiftProtobuf._MessageImpl // 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.isEmpty { - try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) + if _storage._numPos != 0 { + try visitor.visitSingularUInt32Field(value: _storage._numPos, fieldNumber: 1) } - try { if let v = _storage._status { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - try { if let v = _storage._createdAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - } }() - try { if let v = _storage._model { - try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + if _storage._numNeg != 0 { + try visitor.visitSingularUInt32Field(value: _storage._numNeg, fieldNumber: 2) + } + if _storage._numTot != 0 { + try visitor.visitSingularUInt32Field(value: _storage._numTot, fieldNumber: 3) + } + if _storage._rocAuc != 0 { + try visitor.visitSingularFloatField(value: _storage._rocAuc, fieldNumber: 4) + } + if _storage._f1 != 0 { + try visitor.visitSingularFloatField(value: _storage._f1, fieldNumber: 5) + } + try { if let v = _storage._concept { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) } }() - try { if let v = _storage._input { - try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + try { if let v = _storage._rocCurve { + try visitor.visitSingularMessageField(value: v, fieldNumber: 7) } }() - try { if let v = _storage._data { - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + try { if let v = _storage._precisionRecallCurve { + try visitor.visitSingularMessageField(value: v, fieldNumber: 8) } }() + if _storage._avgPrecision != 0 { + try visitor.visitSingularFloatField(value: _storage._avgPrecision, fieldNumber: 9) + } + if !_storage._areaName.isEmpty { + try visitor.visitSingularStringField(value: _storage._areaName, fieldNumber: 10) + } + if _storage._areaMin != 0 { + try visitor.visitSingularDoubleField(value: _storage._areaMin, fieldNumber: 11) + } + if _storage._areaMax != 0 { + try visitor.visitSingularDoubleField(value: _storage._areaMax, fieldNumber: 12) + } + if _storage._iou != 0 { + try visitor.visitSingularFloatField(value: _storage._iou, fieldNumber: 13) + } } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_Output, rhs: Clarifai_Api_Output) -> Bool { + public static func ==(lhs: Clarifai_Api_BinaryMetrics, rhs: Clarifai_Api_BinaryMetrics) -> 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._status != rhs_storage._status {return false} - if _storage._createdAt != rhs_storage._createdAt {return false} - if _storage._model != rhs_storage._model {return false} - if _storage._input != rhs_storage._input {return false} - if _storage._data != rhs_storage._data {return false} + if _storage._numPos != rhs_storage._numPos {return false} + if _storage._numNeg != rhs_storage._numNeg {return false} + if _storage._numTot != rhs_storage._numTot {return false} + if _storage._rocAuc != rhs_storage._rocAuc {return false} + if _storage._f1 != rhs_storage._f1 {return false} + if _storage._concept != rhs_storage._concept {return false} + if _storage._rocCurve != rhs_storage._rocCurve {return false} + if _storage._precisionRecallCurve != rhs_storage._precisionRecallCurve {return false} + if _storage._avgPrecision != rhs_storage._avgPrecision {return false} + if _storage._areaName != rhs_storage._areaName {return false} + if _storage._areaMin != rhs_storage._areaMin {return false} + if _storage._areaMax != rhs_storage._areaMax {return false} + if _storage._iou != rhs_storage._iou {return false} return true } if !storagesAreEqual {return false} @@ -21483,11 +20492,15 @@ extension Clarifai_Api_Output: SwiftProtobuf.Message, SwiftProtobuf._MessageImpl } } -extension Clarifai_Api_ScopeDeps: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".ScopeDeps" +extension Clarifai_Api_TrackerMetrics: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".TrackerMetrics" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "scope"), - 2: .standard(proto: "depending_scopes"), + 1: .standard(proto: "mot_mota"), + 2: .standard(proto: "mot_num_switches"), + 3: .standard(proto: "morse_frag"), + 4: .standard(proto: "avg_precision"), + 5: .same(proto: "aiid"), + 6: .standard(proto: "unique_switch_rate"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -21496,36 +20509,126 @@ extension Clarifai_Api_ScopeDeps: 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.decodeSingularStringField(value: &self.scope) }() - case 2: try { try decoder.decodeRepeatedStringField(value: &self.dependingScopes) }() + case 1: try { try decoder.decodeSingularFloatField(value: &self.motMota) }() + case 2: try { try decoder.decodeSingularInt32Field(value: &self.motNumSwitches) }() + case 3: try { try decoder.decodeSingularFloatField(value: &self.morseFrag) }() + case 4: try { try decoder.decodeSingularFloatField(value: &self.avgPrecision) }() + case 5: try { try decoder.decodeSingularStringField(value: &self.aiid) }() + case 6: try { try decoder.decodeSingularFloatField(value: &self.uniqueSwitchRate) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.scope.isEmpty { - try visitor.visitSingularStringField(value: self.scope, fieldNumber: 1) + if self.motMota != 0 { + try visitor.visitSingularFloatField(value: self.motMota, fieldNumber: 1) } - if !self.dependingScopes.isEmpty { - try visitor.visitRepeatedStringField(value: self.dependingScopes, fieldNumber: 2) + if self.motNumSwitches != 0 { + try visitor.visitSingularInt32Field(value: self.motNumSwitches, fieldNumber: 2) + } + if self.morseFrag != 0 { + try visitor.visitSingularFloatField(value: self.morseFrag, fieldNumber: 3) + } + if self.avgPrecision != 0 { + try visitor.visitSingularFloatField(value: self.avgPrecision, fieldNumber: 4) + } + if !self.aiid.isEmpty { + try visitor.visitSingularStringField(value: self.aiid, fieldNumber: 5) } + if self.uniqueSwitchRate != 0 { + try visitor.visitSingularFloatField(value: self.uniqueSwitchRate, fieldNumber: 6) + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Clarifai_Api_TrackerMetrics, rhs: Clarifai_Api_TrackerMetrics) -> Bool { + if lhs.motMota != rhs.motMota {return false} + if lhs.motNumSwitches != rhs.motNumSwitches {return false} + if lhs.morseFrag != rhs.morseFrag {return false} + if lhs.avgPrecision != rhs.avgPrecision {return false} + if lhs.aiid != rhs.aiid {return false} + if lhs.uniqueSwitchRate != rhs.uniqueSwitchRate {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Clarifai_Api_EvalTestSetEntry: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".EvalTestSetEntry" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 6: .same(proto: "input"), + 3: .standard(proto: "predicted_concepts"), + 4: .standard(proto: "ground_truth_concepts"), + 5: .same(proto: "annotation"), + 7: .standard(proto: "predicted_annotation"), + 8: .standard(proto: "ground_truth_annotation"), + ] + + 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 3: try { try decoder.decodeRepeatedMessageField(value: &self.predictedConcepts) }() + case 4: try { try decoder.decodeRepeatedMessageField(value: &self.groundTruthConcepts) }() + case 5: try { try decoder.decodeSingularMessageField(value: &self._annotation) }() + case 6: try { try decoder.decodeSingularMessageField(value: &self._input) }() + case 7: try { try decoder.decodeSingularMessageField(value: &self._predictedAnnotation) }() + case 8: try { try decoder.decodeSingularMessageField(value: &self._groundTruthAnnotation) }() + 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.predictedConcepts.isEmpty { + try visitor.visitRepeatedMessageField(value: self.predictedConcepts, fieldNumber: 3) + } + if !self.groundTruthConcepts.isEmpty { + try visitor.visitRepeatedMessageField(value: self.groundTruthConcepts, fieldNumber: 4) + } + try { if let v = self._annotation { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } }() + try { if let v = self._input { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + } }() + try { if let v = self._predictedAnnotation { + try visitor.visitSingularMessageField(value: v, fieldNumber: 7) + } }() + try { if let v = self._groundTruthAnnotation { + try visitor.visitSingularMessageField(value: v, fieldNumber: 8) + } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_ScopeDeps, rhs: Clarifai_Api_ScopeDeps) -> Bool { - if lhs.scope != rhs.scope {return false} - if lhs.dependingScopes != rhs.dependingScopes {return false} + public static func ==(lhs: Clarifai_Api_EvalTestSetEntry, rhs: Clarifai_Api_EvalTestSetEntry) -> Bool { + if lhs._input != rhs._input {return false} + if lhs.predictedConcepts != rhs.predictedConcepts {return false} + if lhs.groundTruthConcepts != rhs.groundTruthConcepts {return false} + if lhs._annotation != rhs._annotation {return false} + if lhs._predictedAnnotation != rhs._predictedAnnotation {return false} + if lhs._groundTruthAnnotation != rhs._groundTruthAnnotation {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_EndpointDeps: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".EndpointDeps" +extension Clarifai_Api_LOPQEvalResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".LOPQEvalResult" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "endpoint"), - 2: .standard(proto: "depending_scopes"), + 1: .same(proto: "k"), + 2: .standard(proto: "recall_vs_brute_force"), + 3: .standard(proto: "kendall_tau_vs_brute_force"), + 4: .standard(proto: "most_frequent_code_percent"), + 5: .standard(proto: "lopq_ndcg"), + 6: .standard(proto: "brute_force_ndcg"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -21534,39 +20637,65 @@ extension Clarifai_Api_EndpointDeps: SwiftProtobuf.Message, SwiftProtobuf._Messa // 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.endpoint) }() - case 2: try { try decoder.decodeRepeatedStringField(value: &self.dependingScopes) }() + case 1: try { try decoder.decodeSingularInt32Field(value: &self.k) }() + case 2: try { try decoder.decodeSingularFloatField(value: &self.recallVsBruteForce) }() + case 3: try { try decoder.decodeSingularFloatField(value: &self.kendallTauVsBruteForce) }() + case 4: try { try decoder.decodeSingularFloatField(value: &self.mostFrequentCodePercent) }() + case 5: try { try decoder.decodeSingularFloatField(value: &self.lopqNdcg) }() + case 6: try { try decoder.decodeSingularFloatField(value: &self.bruteForceNdcg) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.endpoint.isEmpty { - try visitor.visitSingularStringField(value: self.endpoint, fieldNumber: 1) + if self.k != 0 { + try visitor.visitSingularInt32Field(value: self.k, fieldNumber: 1) } - if !self.dependingScopes.isEmpty { - try visitor.visitRepeatedStringField(value: self.dependingScopes, fieldNumber: 2) + if self.recallVsBruteForce != 0 { + try visitor.visitSingularFloatField(value: self.recallVsBruteForce, fieldNumber: 2) + } + if self.kendallTauVsBruteForce != 0 { + try visitor.visitSingularFloatField(value: self.kendallTauVsBruteForce, fieldNumber: 3) + } + if self.mostFrequentCodePercent != 0 { + try visitor.visitSingularFloatField(value: self.mostFrequentCodePercent, fieldNumber: 4) + } + if self.lopqNdcg != 0 { + try visitor.visitSingularFloatField(value: self.lopqNdcg, fieldNumber: 5) + } + if self.bruteForceNdcg != 0 { + try visitor.visitSingularFloatField(value: self.bruteForceNdcg, fieldNumber: 6) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_EndpointDeps, rhs: Clarifai_Api_EndpointDeps) -> Bool { - if lhs.endpoint != rhs.endpoint {return false} - if lhs.dependingScopes != rhs.dependingScopes {return false} + public static func ==(lhs: Clarifai_Api_LOPQEvalResult, rhs: Clarifai_Api_LOPQEvalResult) -> Bool { + if lhs.k != rhs.k {return false} + if lhs.recallVsBruteForce != rhs.recallVsBruteForce {return false} + if lhs.kendallTauVsBruteForce != rhs.kendallTauVsBruteForce {return false} + if lhs.mostFrequentCodePercent != rhs.mostFrequentCodePercent {return false} + if lhs.lopqNdcg != rhs.lopqNdcg {return false} + if lhs.bruteForceNdcg != rhs.bruteForceNdcg {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_Hit: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Hit" +extension Clarifai_Api_MetricsSummary: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".MetricsSummary" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "score"), - 2: .same(proto: "input"), - 3: .same(proto: "annotation"), - 4: .standard(proto: "user_id"), - 5: .standard(proto: "app_id"), + 1: .standard(proto: "top1_accuracy"), + 2: .standard(proto: "top5_accuracy"), + 3: .standard(proto: "macro_avg_roc_auc"), + 4: .standard(proto: "macro_std_roc_auc"), + 5: .standard(proto: "macro_avg_f1_score"), + 6: .standard(proto: "macro_std_f1_score"), + 7: .standard(proto: "macro_avg_precision"), + 8: .standard(proto: "macro_avg_recall"), + 10: .standard(proto: "mean_avg_precision_iou_50"), + 11: .standard(proto: "mean_avg_precision_iou_range"), + 9: .standard(proto: "lopq_metrics"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -21575,89 +20704,284 @@ extension Clarifai_Api_Hit: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme // 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.decodeSingularFloatField(value: &self.score) }() - case 2: try { try decoder.decodeSingularMessageField(value: &self._input) }() - case 3: try { try decoder.decodeSingularMessageField(value: &self._annotation) }() - case 4: try { try decoder.decodeSingularStringField(value: &self.userID) }() - case 5: try { try decoder.decodeSingularStringField(value: &self.appID) }() + case 1: try { try decoder.decodeSingularFloatField(value: &self.top1Accuracy) }() + case 2: try { try decoder.decodeSingularFloatField(value: &self.top5Accuracy) }() + case 3: try { try decoder.decodeSingularFloatField(value: &self.macroAvgRocAuc) }() + case 4: try { try decoder.decodeSingularFloatField(value: &self.macroStdRocAuc) }() + case 5: try { try decoder.decodeSingularFloatField(value: &self.macroAvgF1Score) }() + case 6: try { try decoder.decodeSingularFloatField(value: &self.macroStdF1Score) }() + case 7: try { try decoder.decodeSingularFloatField(value: &self.macroAvgPrecision) }() + case 8: try { try decoder.decodeSingularFloatField(value: &self.macroAvgRecall) }() + case 9: try { try decoder.decodeRepeatedMessageField(value: &self.lopqMetrics) }() + case 10: try { try decoder.decodeSingularFloatField(value: &self.meanAvgPrecisionIou50) }() + case 11: try { try decoder.decodeSingularFloatField(value: &self.meanAvgPrecisionIouRange) }() 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.score != 0 { - try visitor.visitSingularFloatField(value: self.score, fieldNumber: 1) + if self.top1Accuracy != 0 { + try visitor.visitSingularFloatField(value: self.top1Accuracy, fieldNumber: 1) } - try { if let v = self._input { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - try { if let v = self._annotation { - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - } }() - if !self.userID.isEmpty { - try visitor.visitSingularStringField(value: self.userID, fieldNumber: 4) + if self.top5Accuracy != 0 { + try visitor.visitSingularFloatField(value: self.top5Accuracy, fieldNumber: 2) } - if !self.appID.isEmpty { - try visitor.visitSingularStringField(value: self.appID, fieldNumber: 5) + if self.macroAvgRocAuc != 0 { + try visitor.visitSingularFloatField(value: self.macroAvgRocAuc, fieldNumber: 3) + } + if self.macroStdRocAuc != 0 { + try visitor.visitSingularFloatField(value: self.macroStdRocAuc, fieldNumber: 4) + } + if self.macroAvgF1Score != 0 { + try visitor.visitSingularFloatField(value: self.macroAvgF1Score, fieldNumber: 5) + } + if self.macroStdF1Score != 0 { + try visitor.visitSingularFloatField(value: self.macroStdF1Score, fieldNumber: 6) + } + if self.macroAvgPrecision != 0 { + try visitor.visitSingularFloatField(value: self.macroAvgPrecision, fieldNumber: 7) + } + if self.macroAvgRecall != 0 { + try visitor.visitSingularFloatField(value: self.macroAvgRecall, fieldNumber: 8) + } + if !self.lopqMetrics.isEmpty { + try visitor.visitRepeatedMessageField(value: self.lopqMetrics, fieldNumber: 9) + } + if self.meanAvgPrecisionIou50 != 0 { + try visitor.visitSingularFloatField(value: self.meanAvgPrecisionIou50, fieldNumber: 10) + } + if self.meanAvgPrecisionIouRange != 0 { + try visitor.visitSingularFloatField(value: self.meanAvgPrecisionIouRange, fieldNumber: 11) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_Hit, rhs: Clarifai_Api_Hit) -> Bool { - if lhs.score != rhs.score {return false} - if lhs._input != rhs._input {return false} - if lhs._annotation != rhs._annotation {return false} - if lhs.userID != rhs.userID {return false} - if lhs.appID != rhs.appID {return false} + public static func ==(lhs: Clarifai_Api_MetricsSummary, rhs: Clarifai_Api_MetricsSummary) -> Bool { + if lhs.top1Accuracy != rhs.top1Accuracy {return false} + if lhs.top5Accuracy != rhs.top5Accuracy {return false} + if lhs.macroAvgRocAuc != rhs.macroAvgRocAuc {return false} + if lhs.macroStdRocAuc != rhs.macroStdRocAuc {return false} + if lhs.macroAvgF1Score != rhs.macroAvgF1Score {return false} + if lhs.macroStdF1Score != rhs.macroStdF1Score {return false} + if lhs.macroAvgPrecision != rhs.macroAvgPrecision {return false} + if lhs.macroAvgRecall != rhs.macroAvgRecall {return false} + if lhs.meanAvgPrecisionIou50 != rhs.meanAvgPrecisionIou50 {return false} + if lhs.meanAvgPrecisionIouRange != rhs.meanAvgPrecisionIouRange {return false} + if lhs.lopqMetrics != rhs.lopqMetrics {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_HitCount: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".HitCount" +extension Clarifai_Api_EvalMetrics: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".EvalMetrics" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "estimated_total"), + 1: .same(proto: "status"), + 15: .standard(proto: "user_id"), + 16: .standard(proto: "app_id"), + 10: .same(proto: "id"), + 13: .same(proto: "model"), + 14: .standard(proto: "ground_truth_dataset"), + 18: .standard(proto: "predictions_dataset"), + 2: .same(proto: "summary"), + 3: .standard(proto: "confusion_matrix"), + 4: .standard(proto: "cooccurrence_matrix"), + 5: .standard(proto: "label_counts"), + 6: .standard(proto: "binary_metrics"), + 7: .standard(proto: "test_set"), + 8: .standard(proto: "metrics_by_area"), + 9: .standard(proto: "metrics_by_class"), + 11: .standard(proto: "tracker_metrics"), + 12: .standard(proto: "eval_info"), + 17: .standard(proto: "extended_metrics"), ] + fileprivate class _StorageClass { + var _status: Clarifai_Api_Status_Status? = nil + var _userID: String = String() + var _appID: String = String() + var _id: String = String() + var _model: Clarifai_Api_Model? = nil + var _groundTruthDataset: Clarifai_Api_Dataset? = nil + var _predictionsDataset: Clarifai_Api_Dataset? = nil + var _summary: Clarifai_Api_MetricsSummary? = nil + var _confusionMatrix: Clarifai_Api_ConfusionMatrix? = nil + var _cooccurrenceMatrix: Clarifai_Api_CooccurrenceMatrix? = nil + var _labelCounts: Clarifai_Api_LabelDistribution? = nil + var _binaryMetrics: [Clarifai_Api_BinaryMetrics] = [] + var _testSet: [Clarifai_Api_EvalTestSetEntry] = [] + var _metricsByArea: [Clarifai_Api_BinaryMetrics] = [] + var _metricsByClass: [Clarifai_Api_BinaryMetrics] = [] + var _trackerMetrics: [Clarifai_Api_TrackerMetrics] = [] + var _evalInfo: Clarifai_Api_EvalInfo? = nil + var _extendedMetrics: Clarifai_Api_ExtendedMetrics? = nil + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _status = source._status + _userID = source._userID + _appID = source._appID + _id = source._id + _model = source._model + _groundTruthDataset = source._groundTruthDataset + _predictionsDataset = source._predictionsDataset + _summary = source._summary + _confusionMatrix = source._confusionMatrix + _cooccurrenceMatrix = source._cooccurrenceMatrix + _labelCounts = source._labelCounts + _binaryMetrics = source._binaryMetrics + _testSet = source._testSet + _metricsByArea = source._metricsByArea + _metricsByClass = source._metricsByClass + _trackerMetrics = source._trackerMetrics + _evalInfo = source._evalInfo + _extendedMetrics = source._extendedMetrics + } + } + + 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.estimatedTotal) }() - 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.decodeSingularMessageField(value: &_storage._summary) }() + case 3: try { try decoder.decodeSingularMessageField(value: &_storage._confusionMatrix) }() + case 4: try { try decoder.decodeSingularMessageField(value: &_storage._cooccurrenceMatrix) }() + case 5: try { try decoder.decodeSingularMessageField(value: &_storage._labelCounts) }() + case 6: try { try decoder.decodeRepeatedMessageField(value: &_storage._binaryMetrics) }() + case 7: try { try decoder.decodeRepeatedMessageField(value: &_storage._testSet) }() + case 8: try { try decoder.decodeRepeatedMessageField(value: &_storage._metricsByArea) }() + case 9: try { try decoder.decodeRepeatedMessageField(value: &_storage._metricsByClass) }() + case 10: try { try decoder.decodeSingularStringField(value: &_storage._id) }() + case 11: try { try decoder.decodeRepeatedMessageField(value: &_storage._trackerMetrics) }() + case 12: try { try decoder.decodeSingularMessageField(value: &_storage._evalInfo) }() + case 13: try { try decoder.decodeSingularMessageField(value: &_storage._model) }() + case 14: try { try decoder.decodeSingularMessageField(value: &_storage._groundTruthDataset) }() + case 15: try { try decoder.decodeSingularStringField(value: &_storage._userID) }() + case 16: try { try decoder.decodeSingularStringField(value: &_storage._appID) }() + case 17: try { try decoder.decodeSingularMessageField(value: &_storage._extendedMetrics) }() + case 18: try { try decoder.decodeSingularMessageField(value: &_storage._predictionsDataset) }() + default: break + } } } } public func traverse(visitor: inout V) throws { - if self.estimatedTotal != 0 { - try visitor.visitSingularUInt64Field(value: self.estimatedTotal, fieldNumber: 1) + 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) + } }() + try { if let v = _storage._summary { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + try { if let v = _storage._confusionMatrix { + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + } }() + try { if let v = _storage._cooccurrenceMatrix { + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + } }() + try { if let v = _storage._labelCounts { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } }() + if !_storage._binaryMetrics.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._binaryMetrics, fieldNumber: 6) + } + if !_storage._testSet.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._testSet, fieldNumber: 7) + } + if !_storage._metricsByArea.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._metricsByArea, fieldNumber: 8) + } + if !_storage._metricsByClass.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._metricsByClass, fieldNumber: 9) + } + if !_storage._id.isEmpty { + try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 10) + } + if !_storage._trackerMetrics.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._trackerMetrics, fieldNumber: 11) + } + try { if let v = _storage._evalInfo { + try visitor.visitSingularMessageField(value: v, fieldNumber: 12) + } }() + try { if let v = _storage._model { + try visitor.visitSingularMessageField(value: v, fieldNumber: 13) + } }() + try { if let v = _storage._groundTruthDataset { + try visitor.visitSingularMessageField(value: v, fieldNumber: 14) + } }() + if !_storage._userID.isEmpty { + try visitor.visitSingularStringField(value: _storage._userID, fieldNumber: 15) + } + if !_storage._appID.isEmpty { + try visitor.visitSingularStringField(value: _storage._appID, fieldNumber: 16) + } + try { if let v = _storage._extendedMetrics { + try visitor.visitSingularMessageField(value: v, fieldNumber: 17) + } }() + try { if let v = _storage._predictionsDataset { + try visitor.visitSingularMessageField(value: v, fieldNumber: 18) + } }() } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_HitCount, rhs: Clarifai_Api_HitCount) -> Bool { - if lhs.estimatedTotal != rhs.estimatedTotal {return false} + public static func ==(lhs: Clarifai_Api_EvalMetrics, rhs: Clarifai_Api_EvalMetrics) -> 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._status != rhs_storage._status {return false} + if _storage._userID != rhs_storage._userID {return false} + if _storage._appID != rhs_storage._appID {return false} + if _storage._id != rhs_storage._id {return false} + if _storage._model != rhs_storage._model {return false} + if _storage._groundTruthDataset != rhs_storage._groundTruthDataset {return false} + if _storage._predictionsDataset != rhs_storage._predictionsDataset {return false} + if _storage._summary != rhs_storage._summary {return false} + if _storage._confusionMatrix != rhs_storage._confusionMatrix {return false} + if _storage._cooccurrenceMatrix != rhs_storage._cooccurrenceMatrix {return false} + if _storage._labelCounts != rhs_storage._labelCounts {return false} + if _storage._binaryMetrics != rhs_storage._binaryMetrics {return false} + if _storage._testSet != rhs_storage._testSet {return false} + if _storage._metricsByArea != rhs_storage._metricsByArea {return false} + if _storage._metricsByClass != rhs_storage._metricsByClass {return false} + if _storage._trackerMetrics != rhs_storage._trackerMetrics {return false} + if _storage._evalInfo != rhs_storage._evalInfo {return false} + if _storage._extendedMetrics != rhs_storage._extendedMetrics {return false} + return true + } + if !storagesAreEqual {return false} + } if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_And: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".And" +extension Clarifai_Api_ExtendedMetrics: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".ExtendedMetrics" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "input"), - 2: .same(proto: "output"), - 3: .same(proto: "negate"), - 4: .same(proto: "annotation"), + 1: .standard(proto: "user_metrics"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -21666,10 +20990,7 @@ extension Clarifai_Api_And: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme // 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._input) }() - case 2: try { try decoder.decodeSingularMessageField(value: &self._output) }() - case 3: try { try decoder.decodeSingularBoolField(value: &self.negate) }() - case 4: try { try decoder.decodeSingularMessageField(value: &self._annotation) }() + case 1: try { try decoder.decodeSingularMessageField(value: &self._userMetrics) }() default: break } } @@ -21680,38 +21001,29 @@ extension Clarifai_Api_And: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme // 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._input { + try { if let v = self._userMetrics { try visitor.visitSingularMessageField(value: v, fieldNumber: 1) } }() - try { if let v = self._output { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - if self.negate != false { - try visitor.visitSingularBoolField(value: self.negate, fieldNumber: 3) - } - try { if let v = self._annotation { - try visitor.visitSingularMessageField(value: v, fieldNumber: 4) - } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_And, rhs: Clarifai_Api_And) -> Bool { - if lhs._input != rhs._input {return false} - if lhs._output != rhs._output {return false} - if lhs.negate != rhs.negate {return false} - if lhs._annotation != rhs._annotation {return false} + public static func ==(lhs: Clarifai_Api_ExtendedMetrics, rhs: Clarifai_Api_ExtendedMetrics) -> Bool { + if lhs._userMetrics != rhs._userMetrics {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_Query: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Query" +extension Clarifai_Api_FieldsValue: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".FieldsValue" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "ands"), - 2: .same(proto: "language"), - 3: .same(proto: "filters"), - 4: .same(proto: "ranks"), + 1: .standard(proto: "confusion_matrix"), + 2: .standard(proto: "cooccurrence_matrix"), + 3: .standard(proto: "label_counts"), + 4: .standard(proto: "binary_metrics"), + 5: .standard(proto: "test_set"), + 6: .standard(proto: "metrics_by_area"), + 7: .standard(proto: "metrics_by_class"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -21720,92 +21032,86 @@ extension Clarifai_Api_Query: SwiftProtobuf.Message, SwiftProtobuf._MessageImple // 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.ands) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.language) }() - case 3: try { try decoder.decodeRepeatedMessageField(value: &self.filters) }() - case 4: try { try decoder.decodeRepeatedMessageField(value: &self.ranks) }() + case 1: try { try decoder.decodeSingularBoolField(value: &self.confusionMatrix) }() + case 2: try { try decoder.decodeSingularBoolField(value: &self.cooccurrenceMatrix) }() + case 3: try { try decoder.decodeSingularBoolField(value: &self.labelCounts) }() + case 4: try { try decoder.decodeSingularBoolField(value: &self.binaryMetrics) }() + case 5: try { try decoder.decodeSingularBoolField(value: &self.testSet) }() + case 6: try { try decoder.decodeSingularBoolField(value: &self.metricsByArea) }() + case 7: try { try decoder.decodeSingularBoolField(value: &self.metricsByClass) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.ands.isEmpty { - try visitor.visitRepeatedMessageField(value: self.ands, fieldNumber: 1) + if self.confusionMatrix != false { + try visitor.visitSingularBoolField(value: self.confusionMatrix, fieldNumber: 1) } - if !self.language.isEmpty { - try visitor.visitSingularStringField(value: self.language, fieldNumber: 2) + if self.cooccurrenceMatrix != false { + try visitor.visitSingularBoolField(value: self.cooccurrenceMatrix, fieldNumber: 2) } - if !self.filters.isEmpty { - try visitor.visitRepeatedMessageField(value: self.filters, fieldNumber: 3) + if self.labelCounts != false { + try visitor.visitSingularBoolField(value: self.labelCounts, fieldNumber: 3) } - if !self.ranks.isEmpty { - try visitor.visitRepeatedMessageField(value: self.ranks, fieldNumber: 4) + if self.binaryMetrics != false { + try visitor.visitSingularBoolField(value: self.binaryMetrics, fieldNumber: 4) + } + if self.testSet != false { + try visitor.visitSingularBoolField(value: self.testSet, fieldNumber: 5) + } + if self.metricsByArea != false { + try visitor.visitSingularBoolField(value: self.metricsByArea, fieldNumber: 6) + } + if self.metricsByClass != false { + try visitor.visitSingularBoolField(value: self.metricsByClass, fieldNumber: 7) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_Query, rhs: Clarifai_Api_Query) -> Bool { - if lhs.ands != rhs.ands {return false} - if lhs.language != rhs.language {return false} - if lhs.filters != rhs.filters {return false} - if lhs.ranks != rhs.ranks {return false} + public static func ==(lhs: Clarifai_Api_FieldsValue, rhs: Clarifai_Api_FieldsValue) -> Bool { + if lhs.confusionMatrix != rhs.confusionMatrix {return false} + if lhs.cooccurrenceMatrix != rhs.cooccurrenceMatrix {return false} + if lhs.labelCounts != rhs.labelCounts {return false} + if lhs.binaryMetrics != rhs.binaryMetrics {return false} + if lhs.testSet != rhs.testSet {return false} + if lhs.metricsByArea != rhs.metricsByArea {return false} + if lhs.metricsByClass != rhs.metricsByClass {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_Search: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Search" +extension Clarifai_Api_Output: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Output" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "query"), - 2: .same(proto: "id"), - 3: .standard(proto: "application_id"), - 4: .same(proto: "name"), - 5: .standard(proto: "as_of"), - 6: .standard(proto: "git_hash"), - 7: .standard(proto: "created_at"), - 8: .standard(proto: "modified_at"), - 9: .same(proto: "algorithm"), - 10: .same(proto: "save"), - 11: .standard(proto: "min_value"), - 12: .same(proto: "visibility"), - 13: .same(proto: "metric"), + 1: .same(proto: "id"), + 2: .same(proto: "status"), + 3: .standard(proto: "created_at"), + 4: .same(proto: "model"), + 5: .same(proto: "input"), + 6: .same(proto: "data"), ] fileprivate class _StorageClass { - var _query: Clarifai_Api_Query? = nil var _id: String = String() - var _applicationID: String = String() - var _name: String = String() - var _asOf: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _gitHash: String = String() + var _status: Clarifai_Api_Status_Status? = nil var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _modifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _algorithm: String = String() - var _save: Bool = false - var _minValue: Float = 0 - var _visibility: Clarifai_Api_Visibility? = nil - var _metric: Clarifai_Api_Search.Metric = .notSet + var _model: Clarifai_Api_Model? = nil + var _input: Clarifai_Api_Input? = nil + var _data: Clarifai_Api_Data? = nil static let defaultInstance = _StorageClass() private init() {} init(copying source: _StorageClass) { - _query = source._query _id = source._id - _applicationID = source._applicationID - _name = source._name - _asOf = source._asOf - _gitHash = source._gitHash - _createdAt = source._createdAt - _modifiedAt = source._modifiedAt - _algorithm = source._algorithm - _save = source._save - _minValue = source._minValue - _visibility = source._visibility - _metric = source._metric + _status = source._status + _createdAt = source._createdAt + _model = source._model + _input = source._input + _data = source._data } } @@ -21824,19 +21130,12 @@ extension Clarifai_Api_Search: 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.decodeSingularMessageField(value: &_storage._query) }() - case 2: try { try decoder.decodeSingularStringField(value: &_storage._id) }() - case 3: try { try decoder.decodeSingularStringField(value: &_storage._applicationID) }() - case 4: try { try decoder.decodeSingularStringField(value: &_storage._name) }() - case 5: try { try decoder.decodeSingularMessageField(value: &_storage._asOf) }() - case 6: try { try decoder.decodeSingularStringField(value: &_storage._gitHash) }() - case 7: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() - case 8: try { try decoder.decodeSingularMessageField(value: &_storage._modifiedAt) }() - case 9: try { try decoder.decodeSingularStringField(value: &_storage._algorithm) }() - case 10: try { try decoder.decodeSingularBoolField(value: &_storage._save) }() - case 11: try { try decoder.decodeSingularFloatField(value: &_storage._minValue) }() - case 12: try { try decoder.decodeSingularMessageField(value: &_storage._visibility) }() - case 13: try { try decoder.decodeSingularEnumField(value: &_storage._metric) }() + case 1: try { try decoder.decodeSingularStringField(value: &_storage._id) }() + case 2: try { try decoder.decodeSingularMessageField(value: &_storage._status) }() + case 3: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() + case 4: try { try decoder.decodeSingularMessageField(value: &_storage._model) }() + case 5: try { try decoder.decodeSingularMessageField(value: &_storage._input) }() + case 6: try { try decoder.decodeSingularMessageField(value: &_storage._data) }() default: break } } @@ -21849,67 +21148,39 @@ extension Clarifai_Api_Search: SwiftProtobuf.Message, SwiftProtobuf._MessageImpl // 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._query { - try visitor.visitSingularMessageField(value: v, fieldNumber: 1) - } }() if !_storage._id.isEmpty { - try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 2) - } - if !_storage._applicationID.isEmpty { - try visitor.visitSingularStringField(value: _storage._applicationID, fieldNumber: 3) - } - if !_storage._name.isEmpty { - try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 4) + try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) } - try { if let v = _storage._asOf { - try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + try { if let v = _storage._status { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) } }() - if !_storage._gitHash.isEmpty { - try visitor.visitSingularStringField(value: _storage._gitHash, fieldNumber: 6) - } try { if let v = _storage._createdAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 7) + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) } }() - try { if let v = _storage._modifiedAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 8) + try { if let v = _storage._model { + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) } }() - if !_storage._algorithm.isEmpty { - try visitor.visitSingularStringField(value: _storage._algorithm, fieldNumber: 9) - } - if _storage._save != false { - try visitor.visitSingularBoolField(value: _storage._save, fieldNumber: 10) - } - if _storage._minValue != 0 { - try visitor.visitSingularFloatField(value: _storage._minValue, fieldNumber: 11) - } - try { if let v = _storage._visibility { - try visitor.visitSingularMessageField(value: v, fieldNumber: 12) + try { if let v = _storage._input { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } }() + try { if let v = _storage._data { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) } }() - if _storage._metric != .notSet { - try visitor.visitSingularEnumField(value: _storage._metric, fieldNumber: 13) - } } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_Search, rhs: Clarifai_Api_Search) -> Bool { + public static func ==(lhs: Clarifai_Api_Output, rhs: Clarifai_Api_Output) -> 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._query != rhs_storage._query {return false} if _storage._id != rhs_storage._id {return false} - if _storage._applicationID != rhs_storage._applicationID {return false} - if _storage._name != rhs_storage._name {return false} - if _storage._asOf != rhs_storage._asOf {return false} - if _storage._gitHash != rhs_storage._gitHash {return false} + if _storage._status != rhs_storage._status {return false} if _storage._createdAt != rhs_storage._createdAt {return false} - if _storage._modifiedAt != rhs_storage._modifiedAt {return false} - if _storage._algorithm != rhs_storage._algorithm {return false} - if _storage._save != rhs_storage._save {return false} - if _storage._minValue != rhs_storage._minValue {return false} - if _storage._visibility != rhs_storage._visibility {return false} - if _storage._metric != rhs_storage._metric {return false} + if _storage._model != rhs_storage._model {return false} + if _storage._input != rhs_storage._input {return false} + if _storage._data != rhs_storage._data {return false} return true } if !storagesAreEqual {return false} @@ -21919,73 +21190,11 @@ extension Clarifai_Api_Search: SwiftProtobuf.Message, SwiftProtobuf._MessageImpl } } -extension Clarifai_Api_Search.Metric: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "METRIC_NOT_SET"), - 1: .same(proto: "EUCLIDEAN_DISTANCE"), - 2: .same(proto: "COSINE_DISTANCE"), - ] -} - -extension Clarifai_Api_Filter: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Filter" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 3: .same(proto: "negate"), - 4: .same(proto: "annotation"), - 5: .same(proto: "input"), - 6: .standard(proto: "last_updated_time_range"), - ] - - 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 3: try { try decoder.decodeSingularBoolField(value: &self.negate) }() - case 4: try { try decoder.decodeSingularMessageField(value: &self._annotation) }() - case 5: try { try decoder.decodeSingularMessageField(value: &self._input) }() - case 6: try { try decoder.decodeSingularMessageField(value: &self._lastUpdatedTimeRange) }() - 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.negate != false { - try visitor.visitSingularBoolField(value: self.negate, fieldNumber: 3) - } - try { if let v = self._annotation { - try visitor.visitSingularMessageField(value: v, fieldNumber: 4) - } }() - try { if let v = self._input { - try visitor.visitSingularMessageField(value: v, fieldNumber: 5) - } }() - try { if let v = self._lastUpdatedTimeRange { - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) - } }() - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_Filter, rhs: Clarifai_Api_Filter) -> Bool { - if lhs.negate != rhs.negate {return false} - if lhs._annotation != rhs._annotation {return false} - if lhs._input != rhs._input {return false} - if lhs._lastUpdatedTimeRange != rhs._lastUpdatedTimeRange {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Clarifai_Api_TimeRange: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".TimeRange" +extension Clarifai_Api_ScopeDeps: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".ScopeDeps" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "start_time"), - 2: .standard(proto: "end_time"), + 1: .same(proto: "scope"), + 2: .standard(proto: "depending_scopes"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -21994,86 +21203,36 @@ extension Clarifai_Api_TimeRange: 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.decodeSingularMessageField(value: &self._startTime) }() - case 2: try { try decoder.decodeSingularMessageField(value: &self._endTime) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.scope) }() + case 2: try { try decoder.decodeRepeatedStringField(value: &self.dependingScopes) }() 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._startTime { - try visitor.visitSingularMessageField(value: v, fieldNumber: 1) - } }() - try { if let v = self._endTime { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_TimeRange, rhs: Clarifai_Api_TimeRange) -> Bool { - if lhs._startTime != rhs._startTime {return false} - if lhs._endTime != rhs._endTime {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Clarifai_Api_Rank: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Rank" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 3: .same(proto: "negate"), - 4: .same(proto: "annotation"), - ] - - 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 3: try { try decoder.decodeSingularBoolField(value: &self.negate) }() - case 4: try { try decoder.decodeSingularMessageField(value: &self._annotation) }() - default: break - } + if !self.scope.isEmpty { + try visitor.visitSingularStringField(value: self.scope, fieldNumber: 1) } - } - - 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.negate != false { - try visitor.visitSingularBoolField(value: self.negate, fieldNumber: 3) + if !self.dependingScopes.isEmpty { + try visitor.visitRepeatedStringField(value: self.dependingScopes, fieldNumber: 2) } - try { if let v = self._annotation { - try visitor.visitSingularMessageField(value: v, fieldNumber: 4) - } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_Rank, rhs: Clarifai_Api_Rank) -> Bool { - if lhs.negate != rhs.negate {return false} - if lhs._annotation != rhs._annotation {return false} + public static func ==(lhs: Clarifai_Api_ScopeDeps, rhs: Clarifai_Api_ScopeDeps) -> Bool { + if lhs.scope != rhs.scope {return false} + if lhs.dependingScopes != rhs.dependingScopes {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_AnnotationSearchMetrics: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".AnnotationSearchMetrics" +extension Clarifai_Api_EndpointDeps: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".EndpointDeps" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "ground_truth"), - 2: .standard(proto: "search_to_eval"), - 3: .same(proto: "metrics"), - 4: .same(proto: "data"), - 5: .standard(proto: "active_concept_count"), - 6: .same(proto: "visibility"), + 1: .same(proto: "endpoint"), + 2: .standard(proto: "depending_scopes"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -22082,63 +21241,39 @@ extension Clarifai_Api_AnnotationSearchMetrics: SwiftProtobuf.Message, SwiftProt // 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._groundTruth) }() - case 2: try { try decoder.decodeSingularMessageField(value: &self._searchToEval) }() - case 3: try { try decoder.decodeSingularMessageField(value: &self._metrics) }() - case 4: try { try decoder.decodeSingularMessageField(value: &self._data) }() - case 5: try { try decoder.decodeSingularUInt32Field(value: &self.activeConceptCount) }() - case 6: try { try decoder.decodeSingularMessageField(value: &self._visibility) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.endpoint) }() + case 2: try { try decoder.decodeRepeatedStringField(value: &self.dependingScopes) }() 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._groundTruth { - try visitor.visitSingularMessageField(value: v, fieldNumber: 1) - } }() - try { if let v = self._searchToEval { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - try { if let v = self._metrics { - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - } }() - try { if let v = self._data { - try visitor.visitSingularMessageField(value: v, fieldNumber: 4) - } }() - if self.activeConceptCount != 0 { - try visitor.visitSingularUInt32Field(value: self.activeConceptCount, fieldNumber: 5) + if !self.endpoint.isEmpty { + try visitor.visitSingularStringField(value: self.endpoint, fieldNumber: 1) + } + if !self.dependingScopes.isEmpty { + try visitor.visitRepeatedStringField(value: self.dependingScopes, fieldNumber: 2) } - try { if let v = self._visibility { - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) - } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_AnnotationSearchMetrics, rhs: Clarifai_Api_AnnotationSearchMetrics) -> Bool { - if lhs._groundTruth != rhs._groundTruth {return false} - if lhs._searchToEval != rhs._searchToEval {return false} - if lhs._metrics != rhs._metrics {return false} - if lhs._data != rhs._data {return false} - if lhs.activeConceptCount != rhs.activeConceptCount {return false} - if lhs._visibility != rhs._visibility {return false} + public static func ==(lhs: Clarifai_Api_EndpointDeps, rhs: Clarifai_Api_EndpointDeps) -> Bool { + if lhs.endpoint != rhs.endpoint {return false} + if lhs.dependingScopes != rhs.dependingScopes {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_Text: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Text" +extension Clarifai_Api_Hit: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Hit" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "raw"), - 2: .same(proto: "url"), - 3: .standard(proto: "allow_duplicate_url"), - 4: .same(proto: "hosted"), - 5: .standard(proto: "text_info"), + 1: .same(proto: "score"), + 2: .same(proto: "input"), + 3: .same(proto: "annotation"), + 4: .standard(proto: "user_id"), + 5: .standard(proto: "app_id"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -22147,11 +21282,11 @@ extension Clarifai_Api_Text: 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.decodeSingularStringField(value: &self.raw) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.url) }() - case 3: try { try decoder.decodeSingularBoolField(value: &self.allowDuplicateURL) }() - case 4: try { try decoder.decodeSingularMessageField(value: &self._hosted) }() - case 5: try { try decoder.decodeSingularMessageField(value: &self._textInfo) }() + case 1: try { try decoder.decodeSingularFloatField(value: &self.score) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._input) }() + case 3: try { try decoder.decodeSingularMessageField(value: &self._annotation) }() + case 4: try { try decoder.decodeSingularStringField(value: &self.userID) }() + case 5: try { try decoder.decodeSingularStringField(value: &self.appID) }() default: break } } @@ -22162,40 +21297,39 @@ extension Clarifai_Api_Text: SwiftProtobuf.Message, SwiftProtobuf._MessageImplem // 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.raw.isEmpty { - try visitor.visitSingularStringField(value: self.raw, fieldNumber: 1) - } - if !self.url.isEmpty { - try visitor.visitSingularStringField(value: self.url, fieldNumber: 2) - } - if self.allowDuplicateURL != false { - try visitor.visitSingularBoolField(value: self.allowDuplicateURL, fieldNumber: 3) + if self.score != 0 { + try visitor.visitSingularFloatField(value: self.score, fieldNumber: 1) } - try { if let v = self._hosted { - try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + try { if let v = self._input { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) } }() - try { if let v = self._textInfo { - try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + try { if let v = self._annotation { + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) } }() + if !self.userID.isEmpty { + try visitor.visitSingularStringField(value: self.userID, fieldNumber: 4) + } + if !self.appID.isEmpty { + try visitor.visitSingularStringField(value: self.appID, fieldNumber: 5) + } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_Text, rhs: Clarifai_Api_Text) -> Bool { - if lhs.raw != rhs.raw {return false} - if lhs.url != rhs.url {return false} - if lhs.allowDuplicateURL != rhs.allowDuplicateURL {return false} - if lhs._hosted != rhs._hosted {return false} - if lhs._textInfo != rhs._textInfo {return false} + public static func ==(lhs: Clarifai_Api_Hit, rhs: Clarifai_Api_Hit) -> Bool { + if lhs.score != rhs.score {return false} + if lhs._input != rhs._input {return false} + if lhs._annotation != rhs._annotation {return false} + if lhs.userID != rhs.userID {return false} + if lhs.appID != rhs.appID {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_TextInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".TextInfo" +extension Clarifai_Api_HitCount: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".HitCount" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "char_count"), - 2: .same(proto: "encoding"), + 1: .standard(proto: "estimated_total"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -22204,334 +21338,181 @@ extension Clarifai_Api_TextInfo: 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.decodeSingularInt32Field(value: &self.charCount) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.encoding) }() + case 1: try { try decoder.decodeSingularUInt64Field(value: &self.estimatedTotal) }() default: break } } } public func traverse(visitor: inout V) throws { - if self.charCount != 0 { - try visitor.visitSingularInt32Field(value: self.charCount, fieldNumber: 1) - } - if !self.encoding.isEmpty { - try visitor.visitSingularStringField(value: self.encoding, fieldNumber: 2) + if self.estimatedTotal != 0 { + try visitor.visitSingularUInt64Field(value: self.estimatedTotal, fieldNumber: 1) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_TextInfo, rhs: Clarifai_Api_TextInfo) -> Bool { - if lhs.charCount != rhs.charCount {return false} - if lhs.encoding != rhs.encoding {return false} + public static func ==(lhs: Clarifai_Api_HitCount, rhs: Clarifai_Api_HitCount) -> Bool { + if lhs.estimatedTotal != rhs.estimatedTotal {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_User: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".User" +extension Clarifai_Api_And: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".And" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .standard(proto: "primary_email"), - 3: .standard(proto: "first_name"), - 4: .standard(proto: "last_name"), - 5: .standard(proto: "company_name"), - 19: .standard(proto: "job_title"), - 20: .standard(proto: "job_role"), - 24: .same(proto: "intention"), - 25: .standard(proto: "referral_source"), - 7: .standard(proto: "bill_type"), - 6: .standard(proto: "created_at"), - 8: .standard(proto: "date_gdpr_consent"), - 9: .standard(proto: "date_tos_consent"), - 10: .standard(proto: "date_marketing_consent"), - 23: .standard(proto: "date_pii_consent"), - 11: .same(proto: "metadata"), - 12: .standard(proto: "email_addresses"), - 15: .standard(proto: "two_factor_auth_enabled"), - 16: .standard(proto: "teams_count"), - 21: .standard(proto: "is_starred"), - 22: .standard(proto: "star_count"), - 17: .same(proto: "visibility"), - 18: .standard(proto: "user_detail"), - 26: .same(proto: "image"), + 1: .same(proto: "input"), + 2: .same(proto: "output"), + 3: .same(proto: "negate"), + 4: .same(proto: "annotation"), ] - fileprivate class _StorageClass { - var _id: String = String() - var _primaryEmail: String = String() - var _firstName: String = String() - var _lastName: String = String() - var _companyName: String = String() - var _jobTitle: String = String() - var _jobRole: String = String() - var _intention: String = String() - var _referralSource: String = String() - var _billType: String = String() - var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _dateGdprConsent: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _dateTosConsent: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _dateMarketingConsent: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _datePiiConsent: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _metadata: SwiftProtobuf.Google_Protobuf_Struct? = nil - var _emailAddresses: [Clarifai_Api_EmailAddress] = [] - var _twoFactorAuthEnabled: Bool = false - var _teamsCount: UInt32 = 0 - var _isStarred: Bool = false - var _starCount: Int32 = 0 - var _visibility: Clarifai_Api_Visibility? = nil - var _userDetail: Clarifai_Api_UserDetail? = nil - var _image: Clarifai_Api_Image? = nil - - static let defaultInstance = _StorageClass() - - private init() {} - - init(copying source: _StorageClass) { - _id = source._id - _primaryEmail = source._primaryEmail - _firstName = source._firstName - _lastName = source._lastName - _companyName = source._companyName - _jobTitle = source._jobTitle - _jobRole = source._jobRole - _intention = source._intention - _referralSource = source._referralSource - _billType = source._billType - _createdAt = source._createdAt - _dateGdprConsent = source._dateGdprConsent - _dateTosConsent = source._dateTosConsent - _dateMarketingConsent = source._dateMarketingConsent - _datePiiConsent = source._datePiiConsent - _metadata = source._metadata - _emailAddresses = source._emailAddresses - _twoFactorAuthEnabled = source._twoFactorAuthEnabled - _teamsCount = source._teamsCount - _isStarred = source._isStarred - _starCount = source._starCount - _visibility = source._visibility - _userDetail = source._userDetail - _image = source._image + 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._input) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._output) }() + case 3: try { try decoder.decodeSingularBoolField(value: &self.negate) }() + case 4: try { try decoder.decodeSingularMessageField(value: &self._annotation) }() + default: break + } } } - fileprivate mutating func _uniqueStorage() -> _StorageClass { - if !isKnownUniquelyReferenced(&_storage) { - _storage = _StorageClass(copying: _storage) + 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._input { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } }() + try { if let v = self._output { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + if self.negate != false { + try visitor.visitSingularBoolField(value: self.negate, fieldNumber: 3) } - return _storage + try { if let v = self._annotation { + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + } }() + try unknownFields.traverse(visitor: &visitor) } - 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.decodeSingularStringField(value: &_storage._id) }() - case 2: try { try decoder.decodeSingularStringField(value: &_storage._primaryEmail) }() - case 3: try { try decoder.decodeSingularStringField(value: &_storage._firstName) }() - case 4: try { try decoder.decodeSingularStringField(value: &_storage._lastName) }() - case 5: try { try decoder.decodeSingularStringField(value: &_storage._companyName) }() - case 6: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() - case 7: try { try decoder.decodeSingularStringField(value: &_storage._billType) }() - case 8: try { try decoder.decodeSingularMessageField(value: &_storage._dateGdprConsent) }() - case 9: try { try decoder.decodeSingularMessageField(value: &_storage._dateTosConsent) }() - case 10: try { try decoder.decodeSingularMessageField(value: &_storage._dateMarketingConsent) }() - case 11: try { try decoder.decodeSingularMessageField(value: &_storage._metadata) }() - case 12: try { try decoder.decodeRepeatedMessageField(value: &_storage._emailAddresses) }() - case 15: try { try decoder.decodeSingularBoolField(value: &_storage._twoFactorAuthEnabled) }() - case 16: try { try decoder.decodeSingularUInt32Field(value: &_storage._teamsCount) }() - case 17: try { try decoder.decodeSingularMessageField(value: &_storage._visibility) }() - case 18: try { try decoder.decodeSingularMessageField(value: &_storage._userDetail) }() - case 19: try { try decoder.decodeSingularStringField(value: &_storage._jobTitle) }() - case 20: try { try decoder.decodeSingularStringField(value: &_storage._jobRole) }() - case 21: try { try decoder.decodeSingularBoolField(value: &_storage._isStarred) }() - case 22: try { try decoder.decodeSingularInt32Field(value: &_storage._starCount) }() - case 23: try { try decoder.decodeSingularMessageField(value: &_storage._datePiiConsent) }() - case 24: try { try decoder.decodeSingularStringField(value: &_storage._intention) }() - case 25: try { try decoder.decodeSingularStringField(value: &_storage._referralSource) }() - case 26: try { try decoder.decodeSingularMessageField(value: &_storage._image) }() - default: break - } + public static func ==(lhs: Clarifai_Api_And, rhs: Clarifai_Api_And) -> Bool { + if lhs._input != rhs._input {return false} + if lhs._output != rhs._output {return false} + if lhs.negate != rhs.negate {return false} + if lhs._annotation != rhs._annotation {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Clarifai_Api_Query: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Query" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "ands"), + 2: .same(proto: "language"), + 3: .same(proto: "filters"), + 4: .same(proto: "ranks"), + ] + + 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.ands) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.language) }() + case 3: try { try decoder.decodeRepeatedMessageField(value: &self.filters) }() + case 4: try { try decoder.decodeRepeatedMessageField(value: &self.ranks) }() + 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.isEmpty { - try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) - } - if !_storage._primaryEmail.isEmpty { - try visitor.visitSingularStringField(value: _storage._primaryEmail, fieldNumber: 2) - } - if !_storage._firstName.isEmpty { - try visitor.visitSingularStringField(value: _storage._firstName, fieldNumber: 3) - } - if !_storage._lastName.isEmpty { - try visitor.visitSingularStringField(value: _storage._lastName, fieldNumber: 4) - } - if !_storage._companyName.isEmpty { - try visitor.visitSingularStringField(value: _storage._companyName, fieldNumber: 5) - } - try { if let v = _storage._createdAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) - } }() - if !_storage._billType.isEmpty { - try visitor.visitSingularStringField(value: _storage._billType, fieldNumber: 7) - } - try { if let v = _storage._dateGdprConsent { - try visitor.visitSingularMessageField(value: v, fieldNumber: 8) - } }() - try { if let v = _storage._dateTosConsent { - try visitor.visitSingularMessageField(value: v, fieldNumber: 9) - } }() - try { if let v = _storage._dateMarketingConsent { - try visitor.visitSingularMessageField(value: v, fieldNumber: 10) - } }() - try { if let v = _storage._metadata { - try visitor.visitSingularMessageField(value: v, fieldNumber: 11) - } }() - if !_storage._emailAddresses.isEmpty { - try visitor.visitRepeatedMessageField(value: _storage._emailAddresses, fieldNumber: 12) - } - if _storage._twoFactorAuthEnabled != false { - try visitor.visitSingularBoolField(value: _storage._twoFactorAuthEnabled, fieldNumber: 15) - } - if _storage._teamsCount != 0 { - try visitor.visitSingularUInt32Field(value: _storage._teamsCount, fieldNumber: 16) - } - try { if let v = _storage._visibility { - try visitor.visitSingularMessageField(value: v, fieldNumber: 17) - } }() - try { if let v = _storage._userDetail { - try visitor.visitSingularMessageField(value: v, fieldNumber: 18) - } }() - if !_storage._jobTitle.isEmpty { - try visitor.visitSingularStringField(value: _storage._jobTitle, fieldNumber: 19) - } - if !_storage._jobRole.isEmpty { - try visitor.visitSingularStringField(value: _storage._jobRole, fieldNumber: 20) - } - if _storage._isStarred != false { - try visitor.visitSingularBoolField(value: _storage._isStarred, fieldNumber: 21) - } - if _storage._starCount != 0 { - try visitor.visitSingularInt32Field(value: _storage._starCount, fieldNumber: 22) - } - try { if let v = _storage._datePiiConsent { - try visitor.visitSingularMessageField(value: v, fieldNumber: 23) - } }() - if !_storage._intention.isEmpty { - try visitor.visitSingularStringField(value: _storage._intention, fieldNumber: 24) - } - if !_storage._referralSource.isEmpty { - try visitor.visitSingularStringField(value: _storage._referralSource, fieldNumber: 25) - } - try { if let v = _storage._image { - try visitor.visitSingularMessageField(value: v, fieldNumber: 26) - } }() + if !self.ands.isEmpty { + try visitor.visitRepeatedMessageField(value: self.ands, fieldNumber: 1) + } + if !self.language.isEmpty { + try visitor.visitSingularStringField(value: self.language, fieldNumber: 2) + } + if !self.filters.isEmpty { + try visitor.visitRepeatedMessageField(value: self.filters, fieldNumber: 3) + } + if !self.ranks.isEmpty { + try visitor.visitRepeatedMessageField(value: self.ranks, fieldNumber: 4) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_User, rhs: Clarifai_Api_User) -> 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._primaryEmail != rhs_storage._primaryEmail {return false} - if _storage._firstName != rhs_storage._firstName {return false} - if _storage._lastName != rhs_storage._lastName {return false} - if _storage._companyName != rhs_storage._companyName {return false} - if _storage._jobTitle != rhs_storage._jobTitle {return false} - if _storage._jobRole != rhs_storage._jobRole {return false} - if _storage._intention != rhs_storage._intention {return false} - if _storage._referralSource != rhs_storage._referralSource {return false} - if _storage._billType != rhs_storage._billType {return false} - if _storage._createdAt != rhs_storage._createdAt {return false} - if _storage._dateGdprConsent != rhs_storage._dateGdprConsent {return false} - if _storage._dateTosConsent != rhs_storage._dateTosConsent {return false} - if _storage._dateMarketingConsent != rhs_storage._dateMarketingConsent {return false} - if _storage._datePiiConsent != rhs_storage._datePiiConsent {return false} - if _storage._metadata != rhs_storage._metadata {return false} - if _storage._emailAddresses != rhs_storage._emailAddresses {return false} - if _storage._twoFactorAuthEnabled != rhs_storage._twoFactorAuthEnabled {return false} - if _storage._teamsCount != rhs_storage._teamsCount {return false} - if _storage._isStarred != rhs_storage._isStarred {return false} - if _storage._starCount != rhs_storage._starCount {return false} - if _storage._visibility != rhs_storage._visibility {return false} - if _storage._userDetail != rhs_storage._userDetail {return false} - if _storage._image != rhs_storage._image {return false} - return true - } - if !storagesAreEqual {return false} - } + public static func ==(lhs: Clarifai_Api_Query, rhs: Clarifai_Api_Query) -> Bool { + if lhs.ands != rhs.ands {return false} + if lhs.language != rhs.language {return false} + if lhs.filters != rhs.filters {return false} + if lhs.ranks != rhs.ranks {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_UserDetail: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".UserDetail" +extension Clarifai_Api_Search: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Search" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "primary_email"), - 2: .standard(proto: "bill_type"), - 3: .standard(proto: "date_gdpr_consent"), - 4: .standard(proto: "date_tos_consent"), - 5: .standard(proto: "date_marketing_consent"), - 13: .standard(proto: "date_pii_consent"), - 6: .same(proto: "metadata"), - 7: .standard(proto: "email_addresses"), - 9: .standard(proto: "two_factor_auth_enabled"), - 10: .standard(proto: "teams_count"), - 11: .same(proto: "country"), - 12: .same(proto: "state"), - 14: .standard(proto: "commitment_value"), + 1: .same(proto: "query"), + 2: .same(proto: "id"), + 3: .standard(proto: "application_id"), + 4: .same(proto: "name"), + 5: .standard(proto: "as_of"), + 6: .standard(proto: "git_hash"), + 7: .standard(proto: "created_at"), + 8: .standard(proto: "modified_at"), + 9: .same(proto: "algorithm"), + 10: .same(proto: "save"), + 11: .standard(proto: "min_value"), + 12: .same(proto: "visibility"), + 13: .same(proto: "metric"), ] fileprivate class _StorageClass { - var _primaryEmail: String = String() - var _billType: String = String() - var _dateGdprConsent: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _dateTosConsent: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _dateMarketingConsent: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _datePiiConsent: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _metadata: SwiftProtobuf.Google_Protobuf_Struct? = nil - var _emailAddresses: [Clarifai_Api_EmailAddress] = [] - var _twoFactorAuthEnabled: Bool = false - var _teamsCount: UInt32 = 0 - var _country: String = String() - var _state: String = String() - var _commitmentValue: Clarifai_Api_CommitmentValue? = nil + var _query: Clarifai_Api_Query? = nil + var _id: String = String() + var _applicationID: String = String() + var _name: String = String() + var _asOf: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _gitHash: String = String() + var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _modifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _algorithm: String = String() + var _save: Bool = false + var _minValue: Float = 0 + var _visibility: Clarifai_Api_Visibility? = nil + var _metric: Clarifai_Api_Search.Metric = .notSet static let defaultInstance = _StorageClass() private init() {} init(copying source: _StorageClass) { - _primaryEmail = source._primaryEmail - _billType = source._billType - _dateGdprConsent = source._dateGdprConsent - _dateTosConsent = source._dateTosConsent - _dateMarketingConsent = source._dateMarketingConsent - _datePiiConsent = source._datePiiConsent - _metadata = source._metadata - _emailAddresses = source._emailAddresses - _twoFactorAuthEnabled = source._twoFactorAuthEnabled - _teamsCount = source._teamsCount - _country = source._country - _state = source._state - _commitmentValue = source._commitmentValue + _query = source._query + _id = source._id + _applicationID = source._applicationID + _name = source._name + _asOf = source._asOf + _gitHash = source._gitHash + _createdAt = source._createdAt + _modifiedAt = source._modifiedAt + _algorithm = source._algorithm + _save = source._save + _minValue = source._minValue + _visibility = source._visibility + _metric = source._metric } } @@ -22550,19 +21531,19 @@ extension Clarifai_Api_UserDetail: 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.decodeSingularStringField(value: &_storage._primaryEmail) }() - case 2: try { try decoder.decodeSingularStringField(value: &_storage._billType) }() - case 3: try { try decoder.decodeSingularMessageField(value: &_storage._dateGdprConsent) }() - case 4: try { try decoder.decodeSingularMessageField(value: &_storage._dateTosConsent) }() - case 5: try { try decoder.decodeSingularMessageField(value: &_storage._dateMarketingConsent) }() - case 6: try { try decoder.decodeSingularMessageField(value: &_storage._metadata) }() - case 7: try { try decoder.decodeRepeatedMessageField(value: &_storage._emailAddresses) }() - case 9: try { try decoder.decodeSingularBoolField(value: &_storage._twoFactorAuthEnabled) }() - case 10: try { try decoder.decodeSingularUInt32Field(value: &_storage._teamsCount) }() - case 11: try { try decoder.decodeSingularStringField(value: &_storage._country) }() - case 12: try { try decoder.decodeSingularStringField(value: &_storage._state) }() - case 13: try { try decoder.decodeSingularMessageField(value: &_storage._datePiiConsent) }() - case 14: try { try decoder.decodeSingularMessageField(value: &_storage._commitmentValue) }() + case 1: try { try decoder.decodeSingularMessageField(value: &_storage._query) }() + case 2: try { try decoder.decodeSingularStringField(value: &_storage._id) }() + case 3: try { try decoder.decodeSingularStringField(value: &_storage._applicationID) }() + case 4: try { try decoder.decodeSingularStringField(value: &_storage._name) }() + case 5: try { try decoder.decodeSingularMessageField(value: &_storage._asOf) }() + case 6: try { try decoder.decodeSingularStringField(value: &_storage._gitHash) }() + case 7: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() + case 8: try { try decoder.decodeSingularMessageField(value: &_storage._modifiedAt) }() + case 9: try { try decoder.decodeSingularStringField(value: &_storage._algorithm) }() + case 10: try { try decoder.decodeSingularBoolField(value: &_storage._save) }() + case 11: try { try decoder.decodeSingularFloatField(value: &_storage._minValue) }() + case 12: try { try decoder.decodeSingularMessageField(value: &_storage._visibility) }() + case 13: try { try decoder.decodeSingularEnumField(value: &_storage._metric) }() default: break } } @@ -22575,67 +21556,67 @@ extension Clarifai_Api_UserDetail: SwiftProtobuf.Message, SwiftProtobuf._Message // 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._primaryEmail.isEmpty { - try visitor.visitSingularStringField(value: _storage._primaryEmail, fieldNumber: 1) + try { if let v = _storage._query { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } }() + if !_storage._id.isEmpty { + try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 2) } - if !_storage._billType.isEmpty { - try visitor.visitSingularStringField(value: _storage._billType, fieldNumber: 2) + if !_storage._applicationID.isEmpty { + try visitor.visitSingularStringField(value: _storage._applicationID, fieldNumber: 3) } - try { if let v = _storage._dateGdprConsent { - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - } }() - try { if let v = _storage._dateTosConsent { - try visitor.visitSingularMessageField(value: v, fieldNumber: 4) - } }() - try { if let v = _storage._dateMarketingConsent { + if !_storage._name.isEmpty { + try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 4) + } + try { if let v = _storage._asOf { try visitor.visitSingularMessageField(value: v, fieldNumber: 5) } }() - try { if let v = _storage._metadata { - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) - } }() - if !_storage._emailAddresses.isEmpty { - try visitor.visitRepeatedMessageField(value: _storage._emailAddresses, fieldNumber: 7) - } - if _storage._twoFactorAuthEnabled != false { - try visitor.visitSingularBoolField(value: _storage._twoFactorAuthEnabled, fieldNumber: 9) + if !_storage._gitHash.isEmpty { + try visitor.visitSingularStringField(value: _storage._gitHash, fieldNumber: 6) } - if _storage._teamsCount != 0 { - try visitor.visitSingularUInt32Field(value: _storage._teamsCount, fieldNumber: 10) + try { if let v = _storage._createdAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 7) + } }() + try { if let v = _storage._modifiedAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 8) + } }() + if !_storage._algorithm.isEmpty { + try visitor.visitSingularStringField(value: _storage._algorithm, fieldNumber: 9) } - if !_storage._country.isEmpty { - try visitor.visitSingularStringField(value: _storage._country, fieldNumber: 11) + if _storage._save != false { + try visitor.visitSingularBoolField(value: _storage._save, fieldNumber: 10) } - if !_storage._state.isEmpty { - try visitor.visitSingularStringField(value: _storage._state, fieldNumber: 12) + if _storage._minValue != 0 { + try visitor.visitSingularFloatField(value: _storage._minValue, fieldNumber: 11) } - try { if let v = _storage._datePiiConsent { - try visitor.visitSingularMessageField(value: v, fieldNumber: 13) - } }() - try { if let v = _storage._commitmentValue { - try visitor.visitSingularMessageField(value: v, fieldNumber: 14) + try { if let v = _storage._visibility { + try visitor.visitSingularMessageField(value: v, fieldNumber: 12) } }() + if _storage._metric != .notSet { + try visitor.visitSingularEnumField(value: _storage._metric, fieldNumber: 13) + } } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_UserDetail, rhs: Clarifai_Api_UserDetail) -> Bool { + public static func ==(lhs: Clarifai_Api_Search, rhs: Clarifai_Api_Search) -> 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._primaryEmail != rhs_storage._primaryEmail {return false} - if _storage._billType != rhs_storage._billType {return false} - if _storage._dateGdprConsent != rhs_storage._dateGdprConsent {return false} - if _storage._dateTosConsent != rhs_storage._dateTosConsent {return false} - if _storage._dateMarketingConsent != rhs_storage._dateMarketingConsent {return false} - if _storage._datePiiConsent != rhs_storage._datePiiConsent {return false} - if _storage._metadata != rhs_storage._metadata {return false} - if _storage._emailAddresses != rhs_storage._emailAddresses {return false} - if _storage._twoFactorAuthEnabled != rhs_storage._twoFactorAuthEnabled {return false} - if _storage._teamsCount != rhs_storage._teamsCount {return false} - if _storage._country != rhs_storage._country {return false} - if _storage._state != rhs_storage._state {return false} - if _storage._commitmentValue != rhs_storage._commitmentValue {return false} + if _storage._query != rhs_storage._query {return false} + if _storage._id != rhs_storage._id {return false} + if _storage._applicationID != rhs_storage._applicationID {return false} + if _storage._name != rhs_storage._name {return false} + if _storage._asOf != rhs_storage._asOf {return false} + if _storage._gitHash != rhs_storage._gitHash {return false} + if _storage._createdAt != rhs_storage._createdAt {return false} + if _storage._modifiedAt != rhs_storage._modifiedAt {return false} + if _storage._algorithm != rhs_storage._algorithm {return false} + if _storage._save != rhs_storage._save {return false} + if _storage._minValue != rhs_storage._minValue {return false} + if _storage._visibility != rhs_storage._visibility {return false} + if _storage._metric != rhs_storage._metric {return false} return true } if !storagesAreEqual {return false} @@ -22645,54 +21626,21 @@ extension Clarifai_Api_UserDetail: SwiftProtobuf.Message, SwiftProtobuf._Message } } -extension Clarifai_Api_EmailAddress: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".EmailAddress" +extension Clarifai_Api_Search.Metric: SwiftProtobuf._ProtoNameProviding { public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "email"), - 2: .same(proto: "primary"), - 3: .same(proto: "verified"), + 0: .same(proto: "METRIC_NOT_SET"), + 1: .same(proto: "EUCLIDEAN_DISTANCE"), + 2: .same(proto: "COSINE_DISTANCE"), ] - - 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.email) }() - case 2: try { try decoder.decodeSingularBoolField(value: &self.primary) }() - case 3: try { try decoder.decodeSingularBoolField(value: &self.verified) }() - default: break - } - } - } - - public func traverse(visitor: inout V) throws { - if !self.email.isEmpty { - try visitor.visitSingularStringField(value: self.email, fieldNumber: 1) - } - if self.primary != false { - try visitor.visitSingularBoolField(value: self.primary, fieldNumber: 2) - } - if self.verified != false { - try visitor.visitSingularBoolField(value: self.verified, fieldNumber: 3) - } - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_EmailAddress, rhs: Clarifai_Api_EmailAddress) -> Bool { - if lhs.email != rhs.email {return false} - if lhs.primary != rhs.primary {return false} - if lhs.verified != rhs.verified {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } } -extension Clarifai_Api_Password: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Password" +extension Clarifai_Api_Filter: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Filter" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "plaintext"), + 3: .same(proto: "negate"), + 4: .same(proto: "annotation"), + 5: .same(proto: "input"), + 6: .standard(proto: "last_updated_time_range"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -22701,43 +21649,50 @@ extension Clarifai_Api_Password: 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.decodeSingularStringField(value: &self.plaintext) }() + case 3: try { try decoder.decodeSingularBoolField(value: &self.negate) }() + case 4: try { try decoder.decodeSingularMessageField(value: &self._annotation) }() + case 5: try { try decoder.decodeSingularMessageField(value: &self._input) }() + case 6: try { try decoder.decodeSingularMessageField(value: &self._lastUpdatedTimeRange) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.plaintext.isEmpty { - try visitor.visitSingularStringField(value: self.plaintext, fieldNumber: 1) + // 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.negate != false { + try visitor.visitSingularBoolField(value: self.negate, fieldNumber: 3) } + try { if let v = self._annotation { + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + } }() + try { if let v = self._input { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } }() + try { if let v = self._lastUpdatedTimeRange { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_Password, rhs: Clarifai_Api_Password) -> Bool { - if lhs.plaintext != rhs.plaintext {return false} + public static func ==(lhs: Clarifai_Api_Filter, rhs: Clarifai_Api_Filter) -> Bool { + if lhs.negate != rhs.negate {return false} + if lhs._annotation != rhs._annotation {return false} + if lhs._input != rhs._input {return false} + if lhs._lastUpdatedTimeRange != rhs._lastUpdatedTimeRange {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_PasswordViolations: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".PasswordViolations" +extension Clarifai_Api_TimeRange: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".TimeRange" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "minimum_length"), - 2: .standard(proto: "maximum_length"), - 3: .standard(proto: "upper_case_needed"), - 4: .standard(proto: "lower_case_needed"), - 5: .standard(proto: "numeric_needed"), - 6: .standard(proto: "non_alphanumeric_needed"), - 7: .standard(proto: "password_reuse"), - 8: .standard(proto: "exclude_names"), - 9: .standard(proto: "exclude_email"), - 10: .standard(proto: "no_confusing_letters"), - 11: .standard(proto: "no_simple_passwords"), - 12: .standard(proto: "no_common_vocabs"), - 13: .standard(proto: "no_overlap_with_old"), - 14: .standard(proto: "password_lifespan"), + 1: .standard(proto: "start_time"), + 2: .standard(proto: "end_time"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -22746,96 +21701,40 @@ extension Clarifai_Api_PasswordViolations: SwiftProtobuf.Message, SwiftProtobuf. // 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.decodeSingularBoolField(value: &self.minimumLength) }() - case 2: try { try decoder.decodeSingularBoolField(value: &self.maximumLength) }() - case 3: try { try decoder.decodeSingularBoolField(value: &self.upperCaseNeeded) }() - case 4: try { try decoder.decodeSingularBoolField(value: &self.lowerCaseNeeded) }() - case 5: try { try decoder.decodeSingularBoolField(value: &self.numericNeeded) }() - case 6: try { try decoder.decodeSingularBoolField(value: &self.nonAlphanumericNeeded) }() - case 7: try { try decoder.decodeSingularBoolField(value: &self.passwordReuse) }() - case 8: try { try decoder.decodeSingularBoolField(value: &self.excludeNames) }() - case 9: try { try decoder.decodeSingularBoolField(value: &self.excludeEmail) }() - case 10: try { try decoder.decodeSingularBoolField(value: &self.noConfusingLetters) }() - case 11: try { try decoder.decodeSingularBoolField(value: &self.noSimplePasswords) }() - case 12: try { try decoder.decodeSingularBoolField(value: &self.noCommonVocabs) }() - case 13: try { try decoder.decodeSingularBoolField(value: &self.noOverlapWithOld) }() - case 14: try { try decoder.decodeSingularBoolField(value: &self.passwordLifespan) }() - default: break - } - } - } - - public func traverse(visitor: inout V) throws { - if self.minimumLength != false { - try visitor.visitSingularBoolField(value: self.minimumLength, fieldNumber: 1) - } - if self.maximumLength != false { - try visitor.visitSingularBoolField(value: self.maximumLength, fieldNumber: 2) - } - if self.upperCaseNeeded != false { - try visitor.visitSingularBoolField(value: self.upperCaseNeeded, fieldNumber: 3) - } - if self.lowerCaseNeeded != false { - try visitor.visitSingularBoolField(value: self.lowerCaseNeeded, fieldNumber: 4) - } - if self.numericNeeded != false { - try visitor.visitSingularBoolField(value: self.numericNeeded, fieldNumber: 5) - } - if self.nonAlphanumericNeeded != false { - try visitor.visitSingularBoolField(value: self.nonAlphanumericNeeded, fieldNumber: 6) - } - if self.passwordReuse != false { - try visitor.visitSingularBoolField(value: self.passwordReuse, fieldNumber: 7) - } - if self.excludeNames != false { - try visitor.visitSingularBoolField(value: self.excludeNames, fieldNumber: 8) - } - if self.excludeEmail != false { - try visitor.visitSingularBoolField(value: self.excludeEmail, fieldNumber: 9) - } - if self.noConfusingLetters != false { - try visitor.visitSingularBoolField(value: self.noConfusingLetters, fieldNumber: 10) - } - if self.noSimplePasswords != false { - try visitor.visitSingularBoolField(value: self.noSimplePasswords, fieldNumber: 11) - } - if self.noCommonVocabs != false { - try visitor.visitSingularBoolField(value: self.noCommonVocabs, fieldNumber: 12) - } - if self.noOverlapWithOld != false { - try visitor.visitSingularBoolField(value: self.noOverlapWithOld, fieldNumber: 13) - } - if self.passwordLifespan != false { - try visitor.visitSingularBoolField(value: self.passwordLifespan, fieldNumber: 14) + case 1: try { try decoder.decodeSingularMessageField(value: &self._startTime) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._endTime) }() + 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._startTime { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } }() + try { if let v = self._endTime { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_PasswordViolations, rhs: Clarifai_Api_PasswordViolations) -> Bool { - if lhs.minimumLength != rhs.minimumLength {return false} - if lhs.maximumLength != rhs.maximumLength {return false} - if lhs.upperCaseNeeded != rhs.upperCaseNeeded {return false} - if lhs.lowerCaseNeeded != rhs.lowerCaseNeeded {return false} - if lhs.numericNeeded != rhs.numericNeeded {return false} - if lhs.nonAlphanumericNeeded != rhs.nonAlphanumericNeeded {return false} - if lhs.passwordReuse != rhs.passwordReuse {return false} - if lhs.excludeNames != rhs.excludeNames {return false} - if lhs.excludeEmail != rhs.excludeEmail {return false} - if lhs.noConfusingLetters != rhs.noConfusingLetters {return false} - if lhs.noSimplePasswords != rhs.noSimplePasswords {return false} - if lhs.noCommonVocabs != rhs.noCommonVocabs {return false} - if lhs.noOverlapWithOld != rhs.noOverlapWithOld {return false} - if lhs.passwordLifespan != rhs.passwordLifespan {return false} + public static func ==(lhs: Clarifai_Api_TimeRange, rhs: Clarifai_Api_TimeRange) -> Bool { + if lhs._startTime != rhs._startTime {return false} + if lhs._endTime != rhs._endTime {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_CommitmentValue: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".CommitmentValue" +extension Clarifai_Api_Rank: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Rank" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "value"), - 2: .same(proto: "type"), + 3: .same(proto: "negate"), + 4: .same(proto: "annotation"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -22844,165 +21743,166 @@ extension Clarifai_Api_CommitmentValue: 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.decodeSingularInt32Field(value: &self.value) }() - case 2: try { try decoder.decodeSingularEnumField(value: &self.type) }() + case 3: try { try decoder.decodeSingularBoolField(value: &self.negate) }() + case 4: try { try decoder.decodeSingularMessageField(value: &self._annotation) }() default: break } } } public func traverse(visitor: inout V) throws { - if self.value != 0 { - try visitor.visitSingularInt32Field(value: self.value, fieldNumber: 1) - } - if self.type != .typeNotSet { - try visitor.visitSingularEnumField(value: self.type, fieldNumber: 2) + // 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.negate != false { + try visitor.visitSingularBoolField(value: self.negate, fieldNumber: 3) } + try { if let v = self._annotation { + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_CommitmentValue, rhs: Clarifai_Api_CommitmentValue) -> Bool { - if lhs.value != rhs.value {return false} - if lhs.type != rhs.type {return false} + public static func ==(lhs: Clarifai_Api_Rank, rhs: Clarifai_Api_Rank) -> Bool { + if lhs.negate != rhs.negate {return false} + if lhs._annotation != rhs._annotation {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_CommitmentValue.CommitmentType: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "TYPE_NOT_SET"), - 1: .same(proto: "MONTHLY"), - 2: .same(proto: "ANNUAL"), - ] -} - -extension Clarifai_Api_Video: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Video" +extension Clarifai_Api_AnnotationSearchMetrics: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".AnnotationSearchMetrics" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "url"), - 2: .same(proto: "base64"), - 4: .standard(proto: "allow_duplicate_url"), - 5: .standard(proto: "thumbnail_url"), - 6: .same(proto: "hosted"), - 8: .standard(proto: "hosted_thumbnail"), - 7: .standard(proto: "video_info"), + 1: .standard(proto: "ground_truth"), + 2: .standard(proto: "search_to_eval"), + 3: .same(proto: "metrics"), + 4: .same(proto: "data"), + 5: .standard(proto: "active_concept_count"), + 6: .same(proto: "visibility"), ] - fileprivate class _StorageClass { - var _url: String = String() - var _base64: Data = Data() - var _allowDuplicateURL: Bool = false - var _thumbnailURL: String = String() - var _hosted: Clarifai_Api_HostedURL? = nil - var _hostedThumbnail: Clarifai_Api_HostedURL? = nil - var _videoInfo: Clarifai_Api_VideoInfo? = nil - - static let defaultInstance = _StorageClass() - - private init() {} - - init(copying source: _StorageClass) { - _url = source._url - _base64 = source._base64 - _allowDuplicateURL = source._allowDuplicateURL - _thumbnailURL = source._thumbnailURL - _hosted = source._hosted - _hostedThumbnail = source._hostedThumbnail - _videoInfo = source._videoInfo + 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._groundTruth) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._searchToEval) }() + case 3: try { try decoder.decodeSingularMessageField(value: &self._metrics) }() + case 4: try { try decoder.decodeSingularMessageField(value: &self._data) }() + case 5: try { try decoder.decodeSingularUInt32Field(value: &self.activeConceptCount) }() + case 6: try { try decoder.decodeSingularMessageField(value: &self._visibility) }() + default: break + } } } - fileprivate mutating func _uniqueStorage() -> _StorageClass { - if !isKnownUniquelyReferenced(&_storage) { - _storage = _StorageClass(copying: _storage) + 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._groundTruth { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } }() + try { if let v = self._searchToEval { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + try { if let v = self._metrics { + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + } }() + try { if let v = self._data { + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + } }() + if self.activeConceptCount != 0 { + try visitor.visitSingularUInt32Field(value: self.activeConceptCount, fieldNumber: 5) } - return _storage + try { if let v = self._visibility { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + } }() + try unknownFields.traverse(visitor: &visitor) } - 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.decodeSingularStringField(value: &_storage._url) }() - case 2: try { try decoder.decodeSingularBytesField(value: &_storage._base64) }() - case 4: try { try decoder.decodeSingularBoolField(value: &_storage._allowDuplicateURL) }() - case 5: try { try decoder.decodeSingularStringField(value: &_storage._thumbnailURL) }() - case 6: try { try decoder.decodeSingularMessageField(value: &_storage._hosted) }() - case 7: try { try decoder.decodeSingularMessageField(value: &_storage._videoInfo) }() - case 8: try { try decoder.decodeSingularMessageField(value: &_storage._hostedThumbnail) }() - default: break - } - } - } + public static func ==(lhs: Clarifai_Api_AnnotationSearchMetrics, rhs: Clarifai_Api_AnnotationSearchMetrics) -> Bool { + if lhs._groundTruth != rhs._groundTruth {return false} + if lhs._searchToEval != rhs._searchToEval {return false} + if lhs._metrics != rhs._metrics {return false} + if lhs._data != rhs._data {return false} + if lhs.activeConceptCount != rhs.activeConceptCount {return false} + if lhs._visibility != rhs._visibility {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true } +} - public func traverse(visitor: inout V) throws { - try withExtendedLifetime(_storage) { (_storage: _StorageClass) in +extension Clarifai_Api_Text: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Text" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "raw"), + 2: .same(proto: "url"), + 3: .standard(proto: "allow_duplicate_url"), + 4: .same(proto: "hosted"), + 5: .standard(proto: "text_info"), + ] + + 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 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._url.isEmpty { - try visitor.visitSingularStringField(value: _storage._url, fieldNumber: 1) - } - if !_storage._base64.isEmpty { - try visitor.visitSingularBytesField(value: _storage._base64, fieldNumber: 2) - } - if _storage._allowDuplicateURL != false { - try visitor.visitSingularBoolField(value: _storage._allowDuplicateURL, fieldNumber: 4) - } - if !_storage._thumbnailURL.isEmpty { - try visitor.visitSingularStringField(value: _storage._thumbnailURL, fieldNumber: 5) + // 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.raw) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.url) }() + case 3: try { try decoder.decodeSingularBoolField(value: &self.allowDuplicateURL) }() + case 4: try { try decoder.decodeSingularMessageField(value: &self._hosted) }() + case 5: try { try decoder.decodeSingularMessageField(value: &self._textInfo) }() + default: break } - try { if let v = _storage._hosted { - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) - } }() - try { if let v = _storage._videoInfo { - try visitor.visitSingularMessageField(value: v, fieldNumber: 7) - } }() - try { if let v = _storage._hostedThumbnail { - try visitor.visitSingularMessageField(value: v, fieldNumber: 8) - } }() } - try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_Video, rhs: Clarifai_Api_Video) -> 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._url != rhs_storage._url {return false} - if _storage._base64 != rhs_storage._base64 {return false} - if _storage._allowDuplicateURL != rhs_storage._allowDuplicateURL {return false} - if _storage._thumbnailURL != rhs_storage._thumbnailURL {return false} - if _storage._hosted != rhs_storage._hosted {return false} - if _storage._hostedThumbnail != rhs_storage._hostedThumbnail {return false} - if _storage._videoInfo != rhs_storage._videoInfo {return false} - return true - } - if !storagesAreEqual {return false} + 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.raw.isEmpty { + try visitor.visitSingularStringField(value: self.raw, fieldNumber: 1) + } + if !self.url.isEmpty { + try visitor.visitSingularStringField(value: self.url, fieldNumber: 2) + } + if self.allowDuplicateURL != false { + try visitor.visitSingularBoolField(value: self.allowDuplicateURL, fieldNumber: 3) } + try { if let v = self._hosted { + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + } }() + try { if let v = self._textInfo { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } }() + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Clarifai_Api_Text, rhs: Clarifai_Api_Text) -> Bool { + if lhs.raw != rhs.raw {return false} + if lhs.url != rhs.url {return false} + if lhs.allowDuplicateURL != rhs.allowDuplicateURL {return false} + if lhs._hosted != rhs._hosted {return false} + if lhs._textInfo != rhs._textInfo {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_VideoInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".VideoInfo" +extension Clarifai_Api_TextInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".TextInfo" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "width"), - 2: .same(proto: "height"), - 3: .same(proto: "fps"), - 4: .standard(proto: "video_format"), - 5: .standard(proto: "bit_rate"), - 6: .standard(proto: "frame_count"), - 7: .standard(proto: "duration_seconds"), + 1: .standard(proto: "char_count"), + 2: .same(proto: "encoding"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -23011,95 +21911,84 @@ extension Clarifai_Api_VideoInfo: 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.decodeSingularInt32Field(value: &self.width) }() - case 2: try { try decoder.decodeSingularInt32Field(value: &self.height) }() - case 3: try { try decoder.decodeSingularFloatField(value: &self.fps) }() - case 4: try { try decoder.decodeSingularStringField(value: &self.videoFormat) }() - case 5: try { try decoder.decodeSingularInt32Field(value: &self.bitRate) }() - case 6: try { try decoder.decodeSingularInt32Field(value: &self.frameCount) }() - case 7: try { try decoder.decodeSingularFloatField(value: &self.durationSeconds) }() + case 1: try { try decoder.decodeSingularInt32Field(value: &self.charCount) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.encoding) }() default: break } } } public func traverse(visitor: inout V) throws { - if self.width != 0 { - try visitor.visitSingularInt32Field(value: self.width, fieldNumber: 1) - } - if self.height != 0 { - try visitor.visitSingularInt32Field(value: self.height, fieldNumber: 2) - } - if self.fps != 0 { - try visitor.visitSingularFloatField(value: self.fps, fieldNumber: 3) - } - if !self.videoFormat.isEmpty { - try visitor.visitSingularStringField(value: self.videoFormat, fieldNumber: 4) - } - if self.bitRate != 0 { - try visitor.visitSingularInt32Field(value: self.bitRate, fieldNumber: 5) - } - if self.frameCount != 0 { - try visitor.visitSingularInt32Field(value: self.frameCount, fieldNumber: 6) + if self.charCount != 0 { + try visitor.visitSingularInt32Field(value: self.charCount, fieldNumber: 1) } - if self.durationSeconds != 0 { - try visitor.visitSingularFloatField(value: self.durationSeconds, fieldNumber: 7) + if !self.encoding.isEmpty { + try visitor.visitSingularStringField(value: self.encoding, fieldNumber: 2) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_VideoInfo, rhs: Clarifai_Api_VideoInfo) -> Bool { - if lhs.width != rhs.width {return false} - if lhs.height != rhs.height {return false} - if lhs.fps != rhs.fps {return false} - if lhs.videoFormat != rhs.videoFormat {return false} - if lhs.bitRate != rhs.bitRate {return false} - if lhs.frameCount != rhs.frameCount {return false} - if lhs.durationSeconds != rhs.durationSeconds {return false} + public static func ==(lhs: Clarifai_Api_TextInfo, rhs: Clarifai_Api_TextInfo) -> Bool { + if lhs.charCount != rhs.charCount {return false} + if lhs.encoding != rhs.encoding {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_Workflow: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Workflow" +extension Clarifai_Api_User: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".User" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ 1: .same(proto: "id"), - 2: .standard(proto: "app_id"), - 3: .standard(proto: "created_at"), - 4: .same(proto: "nodes"), - 5: .same(proto: "metadata"), - 6: .same(proto: "visibility"), - 7: .standard(proto: "user_id"), - 8: .standard(proto: "modified_at"), - 9: .same(proto: "version"), - 10: .standard(proto: "is_starred"), - 11: .standard(proto: "star_count"), - 12: .same(proto: "description"), - 13: .same(proto: "notes"), - 14: .standard(proto: "use_cases"), - 15: .standard(proto: "check_consents"), - 16: .standard(proto: "bookmark_origin"), - 17: .same(proto: "image"), + 2: .standard(proto: "primary_email"), + 3: .standard(proto: "first_name"), + 4: .standard(proto: "last_name"), + 5: .standard(proto: "company_name"), + 19: .standard(proto: "job_title"), + 20: .standard(proto: "job_role"), + 24: .same(proto: "intention"), + 25: .standard(proto: "referral_source"), + 7: .standard(proto: "bill_type"), + 6: .standard(proto: "created_at"), + 8: .standard(proto: "date_gdpr_consent"), + 9: .standard(proto: "date_tos_consent"), + 10: .standard(proto: "date_marketing_consent"), + 23: .standard(proto: "date_pii_consent"), + 11: .same(proto: "metadata"), + 12: .standard(proto: "email_addresses"), + 15: .standard(proto: "two_factor_auth_enabled"), + 16: .standard(proto: "teams_count"), + 21: .standard(proto: "is_starred"), + 22: .standard(proto: "star_count"), + 17: .same(proto: "visibility"), + 18: .standard(proto: "user_detail"), + 26: .same(proto: "image"), ] fileprivate class _StorageClass { var _id: String = String() - var _appID: String = String() + var _primaryEmail: String = String() + var _firstName: String = String() + var _lastName: String = String() + var _companyName: String = String() + var _jobTitle: String = String() + var _jobRole: String = String() + var _intention: String = String() + var _referralSource: String = String() + var _billType: String = String() var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _nodes: [Clarifai_Api_WorkflowNode] = [] + var _dateGdprConsent: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _dateTosConsent: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _dateMarketingConsent: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _datePiiConsent: SwiftProtobuf.Google_Protobuf_Timestamp? = nil var _metadata: SwiftProtobuf.Google_Protobuf_Struct? = nil - var _visibility: Clarifai_Api_Visibility? = nil - var _userID: String = String() - var _modifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _version: Clarifai_Api_WorkflowVersion? = nil + var _emailAddresses: [Clarifai_Api_EmailAddress] = [] + var _twoFactorAuthEnabled: Bool = false + var _teamsCount: UInt32 = 0 var _isStarred: Bool = false var _starCount: Int32 = 0 - var _description_p: String = String() - var _notes: String = String() - var _useCases: [String] = [] - var _checkConsents: [String] = [] - var _bookmarkOrigin: Clarifai_Api_BookmarkOrigin? = nil + var _visibility: Clarifai_Api_Visibility? = nil + var _userDetail: Clarifai_Api_UserDetail? = nil var _image: Clarifai_Api_Image? = nil static let defaultInstance = _StorageClass() @@ -23108,21 +21997,28 @@ extension Clarifai_Api_Workflow: SwiftProtobuf.Message, SwiftProtobuf._MessageIm init(copying source: _StorageClass) { _id = source._id - _appID = source._appID + _primaryEmail = source._primaryEmail + _firstName = source._firstName + _lastName = source._lastName + _companyName = source._companyName + _jobTitle = source._jobTitle + _jobRole = source._jobRole + _intention = source._intention + _referralSource = source._referralSource + _billType = source._billType _createdAt = source._createdAt - _nodes = source._nodes + _dateGdprConsent = source._dateGdprConsent + _dateTosConsent = source._dateTosConsent + _dateMarketingConsent = source._dateMarketingConsent + _datePiiConsent = source._datePiiConsent _metadata = source._metadata - _visibility = source._visibility - _userID = source._userID - _modifiedAt = source._modifiedAt - _version = source._version + _emailAddresses = source._emailAddresses + _twoFactorAuthEnabled = source._twoFactorAuthEnabled + _teamsCount = source._teamsCount _isStarred = source._isStarred _starCount = source._starCount - _description_p = source._description_p - _notes = source._notes - _useCases = source._useCases - _checkConsents = source._checkConsents - _bookmarkOrigin = source._bookmarkOrigin + _visibility = source._visibility + _userDetail = source._userDetail _image = source._image } } @@ -23143,22 +22039,29 @@ extension Clarifai_Api_Workflow: SwiftProtobuf.Message, SwiftProtobuf._MessageIm // enabled. https://github.com/apple/swift-protobuf/issues/1034 switch fieldNumber { case 1: try { try decoder.decodeSingularStringField(value: &_storage._id) }() - case 2: try { try decoder.decodeSingularStringField(value: &_storage._appID) }() - case 3: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() - case 4: try { try decoder.decodeRepeatedMessageField(value: &_storage._nodes) }() - case 5: try { try decoder.decodeSingularMessageField(value: &_storage._metadata) }() - case 6: try { try decoder.decodeSingularMessageField(value: &_storage._visibility) }() - case 7: try { try decoder.decodeSingularStringField(value: &_storage._userID) }() - case 8: try { try decoder.decodeSingularMessageField(value: &_storage._modifiedAt) }() - case 9: try { try decoder.decodeSingularMessageField(value: &_storage._version) }() - case 10: try { try decoder.decodeSingularBoolField(value: &_storage._isStarred) }() - case 11: try { try decoder.decodeSingularInt32Field(value: &_storage._starCount) }() - case 12: try { try decoder.decodeSingularStringField(value: &_storage._description_p) }() - case 13: try { try decoder.decodeSingularStringField(value: &_storage._notes) }() - case 14: try { try decoder.decodeRepeatedStringField(value: &_storage._useCases) }() - case 15: try { try decoder.decodeRepeatedStringField(value: &_storage._checkConsents) }() - case 16: try { try decoder.decodeSingularMessageField(value: &_storage._bookmarkOrigin) }() - case 17: try { try decoder.decodeSingularMessageField(value: &_storage._image) }() + case 2: try { try decoder.decodeSingularStringField(value: &_storage._primaryEmail) }() + case 3: try { try decoder.decodeSingularStringField(value: &_storage._firstName) }() + case 4: try { try decoder.decodeSingularStringField(value: &_storage._lastName) }() + case 5: try { try decoder.decodeSingularStringField(value: &_storage._companyName) }() + case 6: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() + case 7: try { try decoder.decodeSingularStringField(value: &_storage._billType) }() + case 8: try { try decoder.decodeSingularMessageField(value: &_storage._dateGdprConsent) }() + case 9: try { try decoder.decodeSingularMessageField(value: &_storage._dateTosConsent) }() + case 10: try { try decoder.decodeSingularMessageField(value: &_storage._dateMarketingConsent) }() + case 11: try { try decoder.decodeSingularMessageField(value: &_storage._metadata) }() + case 12: try { try decoder.decodeRepeatedMessageField(value: &_storage._emailAddresses) }() + case 15: try { try decoder.decodeSingularBoolField(value: &_storage._twoFactorAuthEnabled) }() + case 16: try { try decoder.decodeSingularUInt32Field(value: &_storage._teamsCount) }() + case 17: try { try decoder.decodeSingularMessageField(value: &_storage._visibility) }() + case 18: try { try decoder.decodeSingularMessageField(value: &_storage._userDetail) }() + case 19: try { try decoder.decodeSingularStringField(value: &_storage._jobTitle) }() + case 20: try { try decoder.decodeSingularStringField(value: &_storage._jobRole) }() + case 21: try { try decoder.decodeSingularBoolField(value: &_storage._isStarred) }() + case 22: try { try decoder.decodeSingularInt32Field(value: &_storage._starCount) }() + case 23: try { try decoder.decodeSingularMessageField(value: &_storage._datePiiConsent) }() + case 24: try { try decoder.decodeSingularStringField(value: &_storage._intention) }() + case 25: try { try decoder.decodeSingularStringField(value: &_storage._referralSource) }() + case 26: try { try decoder.decodeSingularMessageField(value: &_storage._image) }() default: break } } @@ -23174,307 +22077,168 @@ extension Clarifai_Api_Workflow: SwiftProtobuf.Message, SwiftProtobuf._MessageIm if !_storage._id.isEmpty { try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) } - if !_storage._appID.isEmpty { - try visitor.visitSingularStringField(value: _storage._appID, fieldNumber: 2) + if !_storage._primaryEmail.isEmpty { + try visitor.visitSingularStringField(value: _storage._primaryEmail, fieldNumber: 2) + } + if !_storage._firstName.isEmpty { + try visitor.visitSingularStringField(value: _storage._firstName, fieldNumber: 3) + } + if !_storage._lastName.isEmpty { + try visitor.visitSingularStringField(value: _storage._lastName, fieldNumber: 4) + } + if !_storage._companyName.isEmpty { + try visitor.visitSingularStringField(value: _storage._companyName, fieldNumber: 5) } try { if let v = _storage._createdAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) } }() - if !_storage._nodes.isEmpty { - try visitor.visitRepeatedMessageField(value: _storage._nodes, fieldNumber: 4) + if !_storage._billType.isEmpty { + try visitor.visitSingularStringField(value: _storage._billType, fieldNumber: 7) } - try { if let v = _storage._metadata { - try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + try { if let v = _storage._dateGdprConsent { + try visitor.visitSingularMessageField(value: v, fieldNumber: 8) } }() - try { if let v = _storage._visibility { - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + try { if let v = _storage._dateTosConsent { + try visitor.visitSingularMessageField(value: v, fieldNumber: 9) } }() - if !_storage._userID.isEmpty { - try visitor.visitSingularStringField(value: _storage._userID, fieldNumber: 7) + try { if let v = _storage._dateMarketingConsent { + try visitor.visitSingularMessageField(value: v, fieldNumber: 10) + } }() + try { if let v = _storage._metadata { + try visitor.visitSingularMessageField(value: v, fieldNumber: 11) + } }() + if !_storage._emailAddresses.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._emailAddresses, fieldNumber: 12) + } + if _storage._twoFactorAuthEnabled != false { + try visitor.visitSingularBoolField(value: _storage._twoFactorAuthEnabled, fieldNumber: 15) + } + if _storage._teamsCount != 0 { + try visitor.visitSingularUInt32Field(value: _storage._teamsCount, fieldNumber: 16) } - try { if let v = _storage._modifiedAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 8) + try { if let v = _storage._visibility { + try visitor.visitSingularMessageField(value: v, fieldNumber: 17) } }() - try { if let v = _storage._version { - try visitor.visitSingularMessageField(value: v, fieldNumber: 9) + try { if let v = _storage._userDetail { + try visitor.visitSingularMessageField(value: v, fieldNumber: 18) } }() - if _storage._isStarred != false { - try visitor.visitSingularBoolField(value: _storage._isStarred, fieldNumber: 10) + if !_storage._jobTitle.isEmpty { + try visitor.visitSingularStringField(value: _storage._jobTitle, fieldNumber: 19) } - if _storage._starCount != 0 { - try visitor.visitSingularInt32Field(value: _storage._starCount, fieldNumber: 11) + if !_storage._jobRole.isEmpty { + try visitor.visitSingularStringField(value: _storage._jobRole, fieldNumber: 20) } - if !_storage._description_p.isEmpty { - try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 12) + if _storage._isStarred != false { + try visitor.visitSingularBoolField(value: _storage._isStarred, fieldNumber: 21) } - if !_storage._notes.isEmpty { - try visitor.visitSingularStringField(value: _storage._notes, fieldNumber: 13) + if _storage._starCount != 0 { + try visitor.visitSingularInt32Field(value: _storage._starCount, fieldNumber: 22) } - if !_storage._useCases.isEmpty { - try visitor.visitRepeatedStringField(value: _storage._useCases, fieldNumber: 14) + try { if let v = _storage._datePiiConsent { + try visitor.visitSingularMessageField(value: v, fieldNumber: 23) + } }() + if !_storage._intention.isEmpty { + try visitor.visitSingularStringField(value: _storage._intention, fieldNumber: 24) } - if !_storage._checkConsents.isEmpty { - try visitor.visitRepeatedStringField(value: _storage._checkConsents, fieldNumber: 15) + if !_storage._referralSource.isEmpty { + try visitor.visitSingularStringField(value: _storage._referralSource, fieldNumber: 25) } - try { if let v = _storage._bookmarkOrigin { - try visitor.visitSingularMessageField(value: v, fieldNumber: 16) - } }() try { if let v = _storage._image { - try visitor.visitSingularMessageField(value: v, fieldNumber: 17) + try visitor.visitSingularMessageField(value: v, fieldNumber: 26) } }() } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_Workflow, rhs: Clarifai_Api_Workflow) -> Bool { + public static func ==(lhs: Clarifai_Api_User, rhs: Clarifai_Api_User) -> 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._appID != rhs_storage._appID {return false} + if _storage._primaryEmail != rhs_storage._primaryEmail {return false} + if _storage._firstName != rhs_storage._firstName {return false} + if _storage._lastName != rhs_storage._lastName {return false} + if _storage._companyName != rhs_storage._companyName {return false} + if _storage._jobTitle != rhs_storage._jobTitle {return false} + if _storage._jobRole != rhs_storage._jobRole {return false} + if _storage._intention != rhs_storage._intention {return false} + if _storage._referralSource != rhs_storage._referralSource {return false} + if _storage._billType != rhs_storage._billType {return false} if _storage._createdAt != rhs_storage._createdAt {return false} - if _storage._nodes != rhs_storage._nodes {return false} + if _storage._dateGdprConsent != rhs_storage._dateGdprConsent {return false} + if _storage._dateTosConsent != rhs_storage._dateTosConsent {return false} + if _storage._dateMarketingConsent != rhs_storage._dateMarketingConsent {return false} + if _storage._datePiiConsent != rhs_storage._datePiiConsent {return false} if _storage._metadata != rhs_storage._metadata {return false} - if _storage._visibility != rhs_storage._visibility {return false} - if _storage._userID != rhs_storage._userID {return false} - if _storage._modifiedAt != rhs_storage._modifiedAt {return false} - if _storage._version != rhs_storage._version {return false} + if _storage._emailAddresses != rhs_storage._emailAddresses {return false} + if _storage._twoFactorAuthEnabled != rhs_storage._twoFactorAuthEnabled {return false} + if _storage._teamsCount != rhs_storage._teamsCount {return false} if _storage._isStarred != rhs_storage._isStarred {return false} if _storage._starCount != rhs_storage._starCount {return false} - if _storage._description_p != rhs_storage._description_p {return false} - if _storage._notes != rhs_storage._notes {return false} - if _storage._useCases != rhs_storage._useCases {return false} - if _storage._checkConsents != rhs_storage._checkConsents {return false} - if _storage._bookmarkOrigin != rhs_storage._bookmarkOrigin {return false} - if _storage._image != rhs_storage._image {return false} - return true - } - if !storagesAreEqual {return false} - } - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Clarifai_Api_WorkflowVersion: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".WorkflowVersion" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .standard(proto: "workflow_id"), - 3: .standard(proto: "created_at"), - 4: .standard(proto: "modified_at"), - 5: .same(proto: "visibility"), - 6: .same(proto: "nodes"), - 7: .same(proto: "metadata"), - 8: .standard(proto: "app_id"), - 9: .standard(proto: "user_id"), - 10: .same(proto: "description"), - 11: .same(proto: "license"), - ] - - 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.id) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.workflowID) }() - case 3: try { try decoder.decodeSingularMessageField(value: &self._createdAt) }() - case 4: try { try decoder.decodeSingularMessageField(value: &self._modifiedAt) }() - case 5: try { try decoder.decodeSingularMessageField(value: &self._visibility) }() - case 6: try { try decoder.decodeRepeatedMessageField(value: &self.nodes) }() - case 7: try { try decoder.decodeSingularMessageField(value: &self._metadata) }() - case 8: try { try decoder.decodeSingularStringField(value: &self.appID) }() - case 9: try { try decoder.decodeSingularStringField(value: &self.userID) }() - case 10: try { try decoder.decodeSingularStringField(value: &self.description_p) }() - case 11: try { try decoder.decodeSingularStringField(value: &self.license) }() - 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.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) - } - if !self.workflowID.isEmpty { - try visitor.visitSingularStringField(value: self.workflowID, fieldNumber: 2) - } - try { if let v = self._createdAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - } }() - try { if let v = self._modifiedAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 4) - } }() - try { if let v = self._visibility { - try visitor.visitSingularMessageField(value: v, fieldNumber: 5) - } }() - if !self.nodes.isEmpty { - try visitor.visitRepeatedMessageField(value: self.nodes, fieldNumber: 6) - } - try { if let v = self._metadata { - try visitor.visitSingularMessageField(value: v, fieldNumber: 7) - } }() - if !self.appID.isEmpty { - try visitor.visitSingularStringField(value: self.appID, fieldNumber: 8) - } - if !self.userID.isEmpty { - try visitor.visitSingularStringField(value: self.userID, fieldNumber: 9) - } - if !self.description_p.isEmpty { - try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 10) - } - if !self.license.isEmpty { - try visitor.visitSingularStringField(value: self.license, fieldNumber: 11) - } - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_WorkflowVersion, rhs: Clarifai_Api_WorkflowVersion) -> Bool { - if lhs.id != rhs.id {return false} - if lhs.workflowID != rhs.workflowID {return false} - if lhs._createdAt != rhs._createdAt {return false} - if lhs._modifiedAt != rhs._modifiedAt {return false} - if lhs._visibility != rhs._visibility {return false} - if lhs.nodes != rhs.nodes {return false} - if lhs._metadata != rhs._metadata {return false} - if lhs.appID != rhs.appID {return false} - if lhs.userID != rhs.userID {return false} - if lhs.description_p != rhs.description_p {return false} - if lhs.license != rhs.license {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Clarifai_Api_WorkflowNode: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".WorkflowNode" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .same(proto: "model"), - 3: .standard(proto: "node_inputs"), - 4: .standard(proto: "suppress_output"), - 5: .standard(proto: "output_info_override"), - ] - - 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.id) }() - case 2: try { try decoder.decodeSingularMessageField(value: &self._model) }() - case 3: try { try decoder.decodeRepeatedMessageField(value: &self.nodeInputs) }() - case 4: try { try decoder.decodeSingularBoolField(value: &self.suppressOutput) }() - case 5: try { try decoder.decodeSingularMessageField(value: &self._outputInfoOverride) }() - 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.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) - } - try { if let v = self._model { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - if !self.nodeInputs.isEmpty { - try visitor.visitRepeatedMessageField(value: self.nodeInputs, fieldNumber: 3) - } - if self.suppressOutput != false { - try visitor.visitSingularBoolField(value: self.suppressOutput, fieldNumber: 4) - } - try { if let v = self._outputInfoOverride { - try visitor.visitSingularMessageField(value: v, fieldNumber: 5) - } }() - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_WorkflowNode, rhs: Clarifai_Api_WorkflowNode) -> Bool { - if lhs.id != rhs.id {return false} - if lhs._model != rhs._model {return false} - if lhs.nodeInputs != rhs.nodeInputs {return false} - if lhs.suppressOutput != rhs.suppressOutput {return false} - if lhs._outputInfoOverride != rhs._outputInfoOverride {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Clarifai_Api_NodeInput: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".NodeInput" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "node_id"), - ] - - 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.nodeID) }() - default: break - } - } - } - - public func traverse(visitor: inout V) throws { - if !self.nodeID.isEmpty { - try visitor.visitSingularStringField(value: self.nodeID, fieldNumber: 1) + if _storage._visibility != rhs_storage._visibility {return false} + if _storage._userDetail != rhs_storage._userDetail {return false} + if _storage._image != rhs_storage._image {return false} + return true + } + if !storagesAreEqual {return false} } - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_NodeInput, rhs: Clarifai_Api_NodeInput) -> Bool { - if lhs.nodeID != rhs.nodeID {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_WorkflowResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".WorkflowResult" +extension Clarifai_Api_UserDetail: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".UserDetail" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .same(proto: "status"), - 3: .standard(proto: "created_at"), - 5: .same(proto: "input"), - 6: .same(proto: "outputs"), - 7: .standard(proto: "suppress_output"), + 1: .standard(proto: "primary_email"), + 2: .standard(proto: "bill_type"), + 3: .standard(proto: "date_gdpr_consent"), + 4: .standard(proto: "date_tos_consent"), + 5: .standard(proto: "date_marketing_consent"), + 13: .standard(proto: "date_pii_consent"), + 6: .same(proto: "metadata"), + 7: .standard(proto: "email_addresses"), + 9: .standard(proto: "two_factor_auth_enabled"), + 10: .standard(proto: "teams_count"), + 11: .same(proto: "country"), + 12: .same(proto: "state"), + 14: .standard(proto: "commitment_value"), ] fileprivate class _StorageClass { - var _id: String = String() - var _status: Clarifai_Api_Status_Status? = nil - var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _input: Clarifai_Api_Input? = nil - var _outputs: [Clarifai_Api_Output] = [] - var _suppressOutput: Bool = false + var _primaryEmail: String = String() + var _billType: String = String() + var _dateGdprConsent: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _dateTosConsent: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _dateMarketingConsent: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _datePiiConsent: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _metadata: SwiftProtobuf.Google_Protobuf_Struct? = nil + var _emailAddresses: [Clarifai_Api_EmailAddress] = [] + var _twoFactorAuthEnabled: Bool = false + var _teamsCount: UInt32 = 0 + var _country: String = String() + var _state: String = String() + var _commitmentValue: Clarifai_Api_CommitmentValue? = nil static let defaultInstance = _StorageClass() private init() {} init(copying source: _StorageClass) { - _id = source._id - _status = source._status - _createdAt = source._createdAt - _input = source._input - _outputs = source._outputs - _suppressOutput = source._suppressOutput + _primaryEmail = source._primaryEmail + _billType = source._billType + _dateGdprConsent = source._dateGdprConsent + _dateTosConsent = source._dateTosConsent + _dateMarketingConsent = source._dateMarketingConsent + _datePiiConsent = source._datePiiConsent + _metadata = source._metadata + _emailAddresses = source._emailAddresses + _twoFactorAuthEnabled = source._twoFactorAuthEnabled + _teamsCount = source._teamsCount + _country = source._country + _state = source._state + _commitmentValue = source._commitmentValue } } @@ -23493,12 +22257,19 @@ extension Clarifai_Api_WorkflowResult: 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.decodeSingularStringField(value: &_storage._id) }() - case 2: try { try decoder.decodeSingularMessageField(value: &_storage._status) }() - case 3: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() - case 5: try { try decoder.decodeSingularMessageField(value: &_storage._input) }() - case 6: try { try decoder.decodeRepeatedMessageField(value: &_storage._outputs) }() - case 7: try { try decoder.decodeSingularBoolField(value: &_storage._suppressOutput) }() + case 1: try { try decoder.decodeSingularStringField(value: &_storage._primaryEmail) }() + case 2: try { try decoder.decodeSingularStringField(value: &_storage._billType) }() + case 3: try { try decoder.decodeSingularMessageField(value: &_storage._dateGdprConsent) }() + case 4: try { try decoder.decodeSingularMessageField(value: &_storage._dateTosConsent) }() + case 5: try { try decoder.decodeSingularMessageField(value: &_storage._dateMarketingConsent) }() + case 6: try { try decoder.decodeSingularMessageField(value: &_storage._metadata) }() + case 7: try { try decoder.decodeRepeatedMessageField(value: &_storage._emailAddresses) }() + case 9: try { try decoder.decodeSingularBoolField(value: &_storage._twoFactorAuthEnabled) }() + case 10: try { try decoder.decodeSingularUInt32Field(value: &_storage._teamsCount) }() + case 11: try { try decoder.decodeSingularStringField(value: &_storage._country) }() + case 12: try { try decoder.decodeSingularStringField(value: &_storage._state) }() + case 13: try { try decoder.decodeSingularMessageField(value: &_storage._datePiiConsent) }() + case 14: try { try decoder.decodeSingularMessageField(value: &_storage._commitmentValue) }() default: break } } @@ -23511,39 +22282,67 @@ extension Clarifai_Api_WorkflowResult: SwiftProtobuf.Message, SwiftProtobuf._Mes // 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.isEmpty { - try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) + if !_storage._primaryEmail.isEmpty { + try visitor.visitSingularStringField(value: _storage._primaryEmail, fieldNumber: 1) } - try { if let v = _storage._status { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - try { if let v = _storage._createdAt { + if !_storage._billType.isEmpty { + try visitor.visitSingularStringField(value: _storage._billType, fieldNumber: 2) + } + try { if let v = _storage._dateGdprConsent { try visitor.visitSingularMessageField(value: v, fieldNumber: 3) } }() - try { if let v = _storage._input { + try { if let v = _storage._dateTosConsent { + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + } }() + try { if let v = _storage._dateMarketingConsent { try visitor.visitSingularMessageField(value: v, fieldNumber: 5) } }() - if !_storage._outputs.isEmpty { - try visitor.visitRepeatedMessageField(value: _storage._outputs, fieldNumber: 6) + try { if let v = _storage._metadata { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + } }() + if !_storage._emailAddresses.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._emailAddresses, fieldNumber: 7) } - if _storage._suppressOutput != false { - try visitor.visitSingularBoolField(value: _storage._suppressOutput, fieldNumber: 7) + if _storage._twoFactorAuthEnabled != false { + try visitor.visitSingularBoolField(value: _storage._twoFactorAuthEnabled, fieldNumber: 9) + } + if _storage._teamsCount != 0 { + try visitor.visitSingularUInt32Field(value: _storage._teamsCount, fieldNumber: 10) + } + if !_storage._country.isEmpty { + try visitor.visitSingularStringField(value: _storage._country, fieldNumber: 11) + } + if !_storage._state.isEmpty { + try visitor.visitSingularStringField(value: _storage._state, fieldNumber: 12) } + try { if let v = _storage._datePiiConsent { + try visitor.visitSingularMessageField(value: v, fieldNumber: 13) + } }() + try { if let v = _storage._commitmentValue { + try visitor.visitSingularMessageField(value: v, fieldNumber: 14) + } }() } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_WorkflowResult, rhs: Clarifai_Api_WorkflowResult) -> Bool { + public static func ==(lhs: Clarifai_Api_UserDetail, rhs: Clarifai_Api_UserDetail) -> 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._status != rhs_storage._status {return false} - if _storage._createdAt != rhs_storage._createdAt {return false} - if _storage._input != rhs_storage._input {return false} - if _storage._outputs != rhs_storage._outputs {return false} - if _storage._suppressOutput != rhs_storage._suppressOutput {return false} + if _storage._primaryEmail != rhs_storage._primaryEmail {return false} + if _storage._billType != rhs_storage._billType {return false} + if _storage._dateGdprConsent != rhs_storage._dateGdprConsent {return false} + if _storage._dateTosConsent != rhs_storage._dateTosConsent {return false} + if _storage._dateMarketingConsent != rhs_storage._dateMarketingConsent {return false} + if _storage._datePiiConsent != rhs_storage._datePiiConsent {return false} + if _storage._metadata != rhs_storage._metadata {return false} + if _storage._emailAddresses != rhs_storage._emailAddresses {return false} + if _storage._twoFactorAuthEnabled != rhs_storage._twoFactorAuthEnabled {return false} + if _storage._teamsCount != rhs_storage._teamsCount {return false} + if _storage._country != rhs_storage._country {return false} + if _storage._state != rhs_storage._state {return false} + if _storage._commitmentValue != rhs_storage._commitmentValue {return false} return true } if !storagesAreEqual {return false} @@ -23553,10 +22352,12 @@ extension Clarifai_Api_WorkflowResult: SwiftProtobuf.Message, SwiftProtobuf._Mes } } -extension Clarifai_Api_WorkflowState: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".WorkflowState" +extension Clarifai_Api_EmailAddress: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".EmailAddress" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), + 1: .same(proto: "email"), + 2: .same(proto: "primary"), + 3: .same(proto: "verified"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -23565,171 +22366,85 @@ extension Clarifai_Api_WorkflowState: SwiftProtobuf.Message, SwiftProtobuf._Mess // 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.id) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.email) }() + case 2: try { try decoder.decodeSingularBoolField(value: &self.primary) }() + case 3: try { try decoder.decodeSingularBoolField(value: &self.verified) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.id.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) + if !self.email.isEmpty { + try visitor.visitSingularStringField(value: self.email, fieldNumber: 1) + } + if self.primary != false { + try visitor.visitSingularBoolField(value: self.primary, fieldNumber: 2) + } + if self.verified != false { + try visitor.visitSingularBoolField(value: self.verified, fieldNumber: 3) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_WorkflowState, rhs: Clarifai_Api_WorkflowState) -> Bool { - if lhs.id != rhs.id {return false} + public static func ==(lhs: Clarifai_Api_EmailAddress, rhs: Clarifai_Api_EmailAddress) -> Bool { + if lhs.email != rhs.email {return false} + if lhs.primary != rhs.primary {return false} + if lhs.verified != rhs.verified {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_AppDuplication: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".AppDuplication" +extension Clarifai_Api_Password: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Password" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 10: .standard(proto: "destination_app"), - 8: .standard(proto: "existing_app_id"), - 2: .standard(proto: "new_app_id"), - 3: .standard(proto: "new_app_name"), - 4: .same(proto: "status"), - 5: .standard(proto: "created_at"), - 6: .standard(proto: "last_modified_at"), - 7: .same(proto: "filter"), - 9: .same(proto: "progress"), - ] - - fileprivate class _StorageClass { - var _id: String = String() - var _destinationApp: Clarifai_Api_App? = nil - var _existingAppID: String = String() - var _newAppID: String = String() - var _newAppName: String = String() - var _status: Clarifai_Api_Status_Status? = nil - var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _lastModifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _filter: Clarifai_Api_AppDuplicationFilters? = nil - var _progress: [Clarifai_Api_AppCopyProgress] = [] - - static let defaultInstance = _StorageClass() - - private init() {} - - init(copying source: _StorageClass) { - _id = source._id - _destinationApp = source._destinationApp - _existingAppID = source._existingAppID - _newAppID = source._newAppID - _newAppName = source._newAppName - _status = source._status - _createdAt = source._createdAt - _lastModifiedAt = source._lastModifiedAt - _filter = source._filter - _progress = source._progress - } - } - - 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.decodeSingularStringField(value: &_storage._id) }() - case 2: try { try decoder.decodeSingularStringField(value: &_storage._newAppID) }() - case 3: try { try decoder.decodeSingularStringField(value: &_storage._newAppName) }() - case 4: try { try decoder.decodeSingularMessageField(value: &_storage._status) }() - case 5: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() - case 6: try { try decoder.decodeSingularMessageField(value: &_storage._lastModifiedAt) }() - case 7: try { try decoder.decodeSingularMessageField(value: &_storage._filter) }() - case 8: try { try decoder.decodeSingularStringField(value: &_storage._existingAppID) }() - case 9: try { try decoder.decodeRepeatedMessageField(value: &_storage._progress) }() - case 10: try { try decoder.decodeSingularMessageField(value: &_storage._destinationApp) }() - default: break - } + 1: .same(proto: "plaintext"), + ] + + 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.plaintext) }() + 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.isEmpty { - try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) - } - if !_storage._newAppID.isEmpty { - try visitor.visitSingularStringField(value: _storage._newAppID, fieldNumber: 2) - } - if !_storage._newAppName.isEmpty { - try visitor.visitSingularStringField(value: _storage._newAppName, fieldNumber: 3) - } - try { if let v = _storage._status { - try visitor.visitSingularMessageField(value: v, fieldNumber: 4) - } }() - try { if let v = _storage._createdAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 5) - } }() - try { if let v = _storage._lastModifiedAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) - } }() - try { if let v = _storage._filter { - try visitor.visitSingularMessageField(value: v, fieldNumber: 7) - } }() - if !_storage._existingAppID.isEmpty { - try visitor.visitSingularStringField(value: _storage._existingAppID, fieldNumber: 8) - } - if !_storage._progress.isEmpty { - try visitor.visitRepeatedMessageField(value: _storage._progress, fieldNumber: 9) - } - try { if let v = _storage._destinationApp { - try visitor.visitSingularMessageField(value: v, fieldNumber: 10) - } }() + if !self.plaintext.isEmpty { + try visitor.visitSingularStringField(value: self.plaintext, fieldNumber: 1) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_AppDuplication, rhs: Clarifai_Api_AppDuplication) -> 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._destinationApp != rhs_storage._destinationApp {return false} - if _storage._existingAppID != rhs_storage._existingAppID {return false} - if _storage._newAppID != rhs_storage._newAppID {return false} - if _storage._newAppName != rhs_storage._newAppName {return false} - if _storage._status != rhs_storage._status {return false} - if _storage._createdAt != rhs_storage._createdAt {return false} - if _storage._lastModifiedAt != rhs_storage._lastModifiedAt {return false} - if _storage._filter != rhs_storage._filter {return false} - if _storage._progress != rhs_storage._progress {return false} - return true - } - if !storagesAreEqual {return false} - } + public static func ==(lhs: Clarifai_Api_Password, rhs: Clarifai_Api_Password) -> Bool { + if lhs.plaintext != rhs.plaintext {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_AppCopyProgress: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".AppCopyProgress" +extension Clarifai_Api_PasswordViolations: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".PasswordViolations" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "field"), - 2: .same(proto: "value"), + 1: .standard(proto: "minimum_length"), + 2: .standard(proto: "maximum_length"), + 3: .standard(proto: "upper_case_needed"), + 4: .standard(proto: "lower_case_needed"), + 5: .standard(proto: "numeric_needed"), + 6: .standard(proto: "non_alphanumeric_needed"), + 7: .standard(proto: "password_reuse"), + 8: .standard(proto: "exclude_names"), + 9: .standard(proto: "exclude_email"), + 10: .standard(proto: "no_confusing_letters"), + 11: .standard(proto: "no_simple_passwords"), + 12: .standard(proto: "no_common_vocabs"), + 13: .standard(proto: "no_overlap_with_old"), + 14: .standard(proto: "password_lifespan"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -23738,40 +22453,96 @@ extension Clarifai_Api_AppCopyProgress: 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.decodeSingularStringField(value: &self.field) }() - case 2: try { try decoder.decodeSingularInt32Field(value: &self.value) }() + case 1: try { try decoder.decodeSingularBoolField(value: &self.minimumLength) }() + case 2: try { try decoder.decodeSingularBoolField(value: &self.maximumLength) }() + case 3: try { try decoder.decodeSingularBoolField(value: &self.upperCaseNeeded) }() + case 4: try { try decoder.decodeSingularBoolField(value: &self.lowerCaseNeeded) }() + case 5: try { try decoder.decodeSingularBoolField(value: &self.numericNeeded) }() + case 6: try { try decoder.decodeSingularBoolField(value: &self.nonAlphanumericNeeded) }() + case 7: try { try decoder.decodeSingularBoolField(value: &self.passwordReuse) }() + case 8: try { try decoder.decodeSingularBoolField(value: &self.excludeNames) }() + case 9: try { try decoder.decodeSingularBoolField(value: &self.excludeEmail) }() + case 10: try { try decoder.decodeSingularBoolField(value: &self.noConfusingLetters) }() + case 11: try { try decoder.decodeSingularBoolField(value: &self.noSimplePasswords) }() + case 12: try { try decoder.decodeSingularBoolField(value: &self.noCommonVocabs) }() + case 13: try { try decoder.decodeSingularBoolField(value: &self.noOverlapWithOld) }() + case 14: try { try decoder.decodeSingularBoolField(value: &self.passwordLifespan) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.field.isEmpty { - try visitor.visitSingularStringField(value: self.field, fieldNumber: 1) + if self.minimumLength != false { + try visitor.visitSingularBoolField(value: self.minimumLength, fieldNumber: 1) } - if self.value != 0 { - try visitor.visitSingularInt32Field(value: self.value, fieldNumber: 2) + if self.maximumLength != false { + try visitor.visitSingularBoolField(value: self.maximumLength, fieldNumber: 2) + } + if self.upperCaseNeeded != false { + try visitor.visitSingularBoolField(value: self.upperCaseNeeded, fieldNumber: 3) + } + if self.lowerCaseNeeded != false { + try visitor.visitSingularBoolField(value: self.lowerCaseNeeded, fieldNumber: 4) + } + if self.numericNeeded != false { + try visitor.visitSingularBoolField(value: self.numericNeeded, fieldNumber: 5) + } + if self.nonAlphanumericNeeded != false { + try visitor.visitSingularBoolField(value: self.nonAlphanumericNeeded, fieldNumber: 6) + } + if self.passwordReuse != false { + try visitor.visitSingularBoolField(value: self.passwordReuse, fieldNumber: 7) + } + if self.excludeNames != false { + try visitor.visitSingularBoolField(value: self.excludeNames, fieldNumber: 8) + } + if self.excludeEmail != false { + try visitor.visitSingularBoolField(value: self.excludeEmail, fieldNumber: 9) + } + if self.noConfusingLetters != false { + try visitor.visitSingularBoolField(value: self.noConfusingLetters, fieldNumber: 10) + } + if self.noSimplePasswords != false { + try visitor.visitSingularBoolField(value: self.noSimplePasswords, fieldNumber: 11) + } + if self.noCommonVocabs != false { + try visitor.visitSingularBoolField(value: self.noCommonVocabs, fieldNumber: 12) + } + if self.noOverlapWithOld != false { + try visitor.visitSingularBoolField(value: self.noOverlapWithOld, fieldNumber: 13) + } + if self.passwordLifespan != false { + try visitor.visitSingularBoolField(value: self.passwordLifespan, fieldNumber: 14) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_AppCopyProgress, rhs: Clarifai_Api_AppCopyProgress) -> Bool { - if lhs.field != rhs.field {return false} - if lhs.value != rhs.value {return false} + public static func ==(lhs: Clarifai_Api_PasswordViolations, rhs: Clarifai_Api_PasswordViolations) -> Bool { + if lhs.minimumLength != rhs.minimumLength {return false} + if lhs.maximumLength != rhs.maximumLength {return false} + if lhs.upperCaseNeeded != rhs.upperCaseNeeded {return false} + if lhs.lowerCaseNeeded != rhs.lowerCaseNeeded {return false} + if lhs.numericNeeded != rhs.numericNeeded {return false} + if lhs.nonAlphanumericNeeded != rhs.nonAlphanumericNeeded {return false} + if lhs.passwordReuse != rhs.passwordReuse {return false} + if lhs.excludeNames != rhs.excludeNames {return false} + if lhs.excludeEmail != rhs.excludeEmail {return false} + if lhs.noConfusingLetters != rhs.noConfusingLetters {return false} + if lhs.noSimplePasswords != rhs.noSimplePasswords {return false} + if lhs.noCommonVocabs != rhs.noCommonVocabs {return false} + if lhs.noOverlapWithOld != rhs.noOverlapWithOld {return false} + if lhs.passwordLifespan != rhs.passwordLifespan {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_AppDuplicationFilters: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".AppDuplicationFilters" +extension Clarifai_Api_CommitmentValue: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".CommitmentValue" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "copy_inputs"), - 2: .standard(proto: "copy_concepts"), - 3: .standard(proto: "copy_annotations"), - 4: .standard(proto: "copy_models"), - 5: .standard(proto: "copy_workflows"), - 6: .standard(proto: "copy_installed_module_versions"), + 1: .same(proto: "value"), + 2: .same(proto: "type"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -23780,93 +22551,72 @@ extension Clarifai_Api_AppDuplicationFilters: SwiftProtobuf.Message, SwiftProtob // 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.decodeSingularBoolField(value: &self.copyInputs) }() - case 2: try { try decoder.decodeSingularBoolField(value: &self.copyConcepts) }() - case 3: try { try decoder.decodeSingularBoolField(value: &self.copyAnnotations) }() - case 4: try { try decoder.decodeSingularBoolField(value: &self.copyModels) }() - case 5: try { try decoder.decodeSingularBoolField(value: &self.copyWorkflows) }() - case 6: try { try decoder.decodeSingularBoolField(value: &self.copyInstalledModuleVersions) }() + case 1: try { try decoder.decodeSingularInt32Field(value: &self.value) }() + case 2: try { try decoder.decodeSingularEnumField(value: &self.type) }() default: break } } } public func traverse(visitor: inout V) throws { - if self.copyInputs != false { - try visitor.visitSingularBoolField(value: self.copyInputs, fieldNumber: 1) - } - if self.copyConcepts != false { - try visitor.visitSingularBoolField(value: self.copyConcepts, fieldNumber: 2) - } - if self.copyAnnotations != false { - try visitor.visitSingularBoolField(value: self.copyAnnotations, fieldNumber: 3) - } - if self.copyModels != false { - try visitor.visitSingularBoolField(value: self.copyModels, fieldNumber: 4) - } - if self.copyWorkflows != false { - try visitor.visitSingularBoolField(value: self.copyWorkflows, fieldNumber: 5) + if self.value != 0 { + try visitor.visitSingularInt32Field(value: self.value, fieldNumber: 1) } - if self.copyInstalledModuleVersions != false { - try visitor.visitSingularBoolField(value: self.copyInstalledModuleVersions, fieldNumber: 6) + if self.type != .typeNotSet { + try visitor.visitSingularEnumField(value: self.type, fieldNumber: 2) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_AppDuplicationFilters, rhs: Clarifai_Api_AppDuplicationFilters) -> Bool { - if lhs.copyInputs != rhs.copyInputs {return false} - if lhs.copyConcepts != rhs.copyConcepts {return false} - if lhs.copyAnnotations != rhs.copyAnnotations {return false} - if lhs.copyModels != rhs.copyModels {return false} - if lhs.copyWorkflows != rhs.copyWorkflows {return false} - if lhs.copyInstalledModuleVersions != rhs.copyInstalledModuleVersions {return false} + public static func ==(lhs: Clarifai_Api_CommitmentValue, rhs: Clarifai_Api_CommitmentValue) -> Bool { + if lhs.value != rhs.value {return false} + if lhs.type != rhs.type {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_LabelOrder: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".LabelOrder" +extension Clarifai_Api_CommitmentValue.CommitmentType: SwiftProtobuf._ProtoNameProviding { public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .same(proto: "name"), - 3: .same(proto: "status"), - 4: .standard(proto: "auto_release"), - 5: .standard(proto: "allow_empty_tag"), - 6: .standard(proto: "desired_fulfill_time"), - 7: .standard(proto: "estimate_fulfill_time"), - 8: .same(proto: "task"), - 9: .standard(proto: "created_at"), - 10: .standard(proto: "modified_at"), + 0: .same(proto: "TYPE_NOT_SET"), + 1: .same(proto: "MONTHLY"), + 2: .same(proto: "ANNUAL"), + ] +} + +extension Clarifai_Api_Video: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Video" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "url"), + 2: .same(proto: "base64"), + 4: .standard(proto: "allow_duplicate_url"), + 5: .standard(proto: "thumbnail_url"), + 6: .same(proto: "hosted"), + 8: .standard(proto: "hosted_thumbnail"), + 7: .standard(proto: "video_info"), ] fileprivate class _StorageClass { - var _id: String = String() - var _name: String = String() - var _status: Clarifai_Api_Status_Status? = nil - var _autoRelease: Bool = false - var _allowEmptyTag: Bool = false - var _desiredFulfillTime: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _estimateFulfillTime: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _task: Clarifai_Api_Task? = nil - var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _modifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _url: String = String() + var _base64: Data = Data() + var _allowDuplicateURL: Bool = false + var _thumbnailURL: String = String() + var _hosted: Clarifai_Api_HostedURL? = nil + var _hostedThumbnail: Clarifai_Api_HostedURL? = nil + var _videoInfo: Clarifai_Api_VideoInfo? = nil static let defaultInstance = _StorageClass() private init() {} init(copying source: _StorageClass) { - _id = source._id - _name = source._name - _status = source._status - _autoRelease = source._autoRelease - _allowEmptyTag = source._allowEmptyTag - _desiredFulfillTime = source._desiredFulfillTime - _estimateFulfillTime = source._estimateFulfillTime - _task = source._task - _createdAt = source._createdAt - _modifiedAt = source._modifiedAt + _url = source._url + _base64 = source._base64 + _allowDuplicateURL = source._allowDuplicateURL + _thumbnailURL = source._thumbnailURL + _hosted = source._hosted + _hostedThumbnail = source._hostedThumbnail + _videoInfo = source._videoInfo } } @@ -23885,16 +22635,13 @@ extension Clarifai_Api_LabelOrder: 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.decodeSingularStringField(value: &_storage._id) }() - case 2: try { try decoder.decodeSingularStringField(value: &_storage._name) }() - case 3: try { try decoder.decodeSingularMessageField(value: &_storage._status) }() - case 4: try { try decoder.decodeSingularBoolField(value: &_storage._autoRelease) }() - case 5: try { try decoder.decodeSingularBoolField(value: &_storage._allowEmptyTag) }() - case 6: try { try decoder.decodeSingularMessageField(value: &_storage._desiredFulfillTime) }() - case 7: try { try decoder.decodeSingularMessageField(value: &_storage._estimateFulfillTime) }() - case 8: try { try decoder.decodeSingularMessageField(value: &_storage._task) }() - case 9: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() - case 10: try { try decoder.decodeSingularMessageField(value: &_storage._modifiedAt) }() + case 1: try { try decoder.decodeSingularStringField(value: &_storage._url) }() + case 2: try { try decoder.decodeSingularBytesField(value: &_storage._base64) }() + case 4: try { try decoder.decodeSingularBoolField(value: &_storage._allowDuplicateURL) }() + case 5: try { try decoder.decodeSingularStringField(value: &_storage._thumbnailURL) }() + case 6: try { try decoder.decodeSingularMessageField(value: &_storage._hosted) }() + case 7: try { try decoder.decodeSingularMessageField(value: &_storage._videoInfo) }() + case 8: try { try decoder.decodeSingularMessageField(value: &_storage._hostedThumbnail) }() default: break } } @@ -23907,55 +22654,43 @@ extension Clarifai_Api_LabelOrder: SwiftProtobuf.Message, SwiftProtobuf._Message // 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.isEmpty { - try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) + if !_storage._url.isEmpty { + try visitor.visitSingularStringField(value: _storage._url, fieldNumber: 1) } - if !_storage._name.isEmpty { - try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 2) + if !_storage._base64.isEmpty { + try visitor.visitSingularBytesField(value: _storage._base64, fieldNumber: 2) } - try { if let v = _storage._status { - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - } }() - if _storage._autoRelease != false { - try visitor.visitSingularBoolField(value: _storage._autoRelease, fieldNumber: 4) + if _storage._allowDuplicateURL != false { + try visitor.visitSingularBoolField(value: _storage._allowDuplicateURL, fieldNumber: 4) } - if _storage._allowEmptyTag != false { - try visitor.visitSingularBoolField(value: _storage._allowEmptyTag, fieldNumber: 5) + if !_storage._thumbnailURL.isEmpty { + try visitor.visitSingularStringField(value: _storage._thumbnailURL, fieldNumber: 5) } - try { if let v = _storage._desiredFulfillTime { + try { if let v = _storage._hosted { try visitor.visitSingularMessageField(value: v, fieldNumber: 6) } }() - try { if let v = _storage._estimateFulfillTime { + try { if let v = _storage._videoInfo { try visitor.visitSingularMessageField(value: v, fieldNumber: 7) } }() - try { if let v = _storage._task { + try { if let v = _storage._hostedThumbnail { try visitor.visitSingularMessageField(value: v, fieldNumber: 8) } }() - try { if let v = _storage._createdAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 9) - } }() - try { if let v = _storage._modifiedAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 10) - } }() } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_LabelOrder, rhs: Clarifai_Api_LabelOrder) -> Bool { + public static func ==(lhs: Clarifai_Api_Video, rhs: Clarifai_Api_Video) -> 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._status != rhs_storage._status {return false} - if _storage._autoRelease != rhs_storage._autoRelease {return false} - if _storage._allowEmptyTag != rhs_storage._allowEmptyTag {return false} - if _storage._desiredFulfillTime != rhs_storage._desiredFulfillTime {return false} - if _storage._estimateFulfillTime != rhs_storage._estimateFulfillTime {return false} - if _storage._task != rhs_storage._task {return false} - if _storage._createdAt != rhs_storage._createdAt {return false} - if _storage._modifiedAt != rhs_storage._modifiedAt {return false} + if _storage._url != rhs_storage._url {return false} + if _storage._base64 != rhs_storage._base64 {return false} + if _storage._allowDuplicateURL != rhs_storage._allowDuplicateURL {return false} + if _storage._thumbnailURL != rhs_storage._thumbnailURL {return false} + if _storage._hosted != rhs_storage._hosted {return false} + if _storage._hostedThumbnail != rhs_storage._hostedThumbnail {return false} + if _storage._videoInfo != rhs_storage._videoInfo {return false} return true } if !storagesAreEqual {return false} @@ -23965,58 +22700,114 @@ extension Clarifai_Api_LabelOrder: SwiftProtobuf.Message, SwiftProtobuf._Message } } -extension Clarifai_Api_Task: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Task" +extension Clarifai_Api_VideoInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".VideoInfo" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "width"), + 2: .same(proto: "height"), + 3: .same(proto: "fps"), + 4: .standard(proto: "video_format"), + 5: .standard(proto: "bit_rate"), + 6: .standard(proto: "frame_count"), + 7: .standard(proto: "duration_seconds"), + ] + + 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.decodeSingularInt32Field(value: &self.width) }() + case 2: try { try decoder.decodeSingularInt32Field(value: &self.height) }() + case 3: try { try decoder.decodeSingularFloatField(value: &self.fps) }() + case 4: try { try decoder.decodeSingularStringField(value: &self.videoFormat) }() + case 5: try { try decoder.decodeSingularInt32Field(value: &self.bitRate) }() + case 6: try { try decoder.decodeSingularInt32Field(value: &self.frameCount) }() + case 7: try { try decoder.decodeSingularFloatField(value: &self.durationSeconds) }() + default: break + } + } + } + + public func traverse(visitor: inout V) throws { + if self.width != 0 { + try visitor.visitSingularInt32Field(value: self.width, fieldNumber: 1) + } + if self.height != 0 { + try visitor.visitSingularInt32Field(value: self.height, fieldNumber: 2) + } + if self.fps != 0 { + try visitor.visitSingularFloatField(value: self.fps, fieldNumber: 3) + } + if !self.videoFormat.isEmpty { + try visitor.visitSingularStringField(value: self.videoFormat, fieldNumber: 4) + } + if self.bitRate != 0 { + try visitor.visitSingularInt32Field(value: self.bitRate, fieldNumber: 5) + } + if self.frameCount != 0 { + try visitor.visitSingularInt32Field(value: self.frameCount, fieldNumber: 6) + } + if self.durationSeconds != 0 { + try visitor.visitSingularFloatField(value: self.durationSeconds, fieldNumber: 7) + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Clarifai_Api_VideoInfo, rhs: Clarifai_Api_VideoInfo) -> Bool { + if lhs.width != rhs.width {return false} + if lhs.height != rhs.height {return false} + if lhs.fps != rhs.fps {return false} + if lhs.videoFormat != rhs.videoFormat {return false} + if lhs.bitRate != rhs.bitRate {return false} + if lhs.frameCount != rhs.frameCount {return false} + if lhs.durationSeconds != rhs.durationSeconds {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Clarifai_Api_Workflow: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Workflow" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ 1: .same(proto: "id"), - 2: .standard(proto: "created_at"), - 3: .standard(proto: "modified_at"), - 4: .same(proto: "type"), - 5: .same(proto: "description"), - 6: .same(proto: "worker"), - 7: .standard(proto: "concept_ids"), - 8: .standard(proto: "input_source"), - 9: .standard(proto: "sample_ms"), - 10: .standard(proto: "ai_assistant"), - 11: .same(proto: "review"), - 12: .same(proto: "status"), - 13: .same(proto: "name"), - 14: .standard(proto: "ai_assist_params"), - 15: .same(proto: "visibility"), - 16: .standard(proto: "app_id"), - 17: .standard(proto: "user_id"), - 18: .standard(proto: "label_order_id"), - 19: .same(proto: "concepts"), - 20: .standard(proto: "delete_previous_annotations"), - 21: .same(proto: "metrics"), - 23: .same(proto: "priority"), - 24: .same(proto: "metadata"), + 2: .standard(proto: "app_id"), + 3: .standard(proto: "created_at"), + 4: .same(proto: "nodes"), + 5: .same(proto: "metadata"), + 6: .same(proto: "visibility"), + 7: .standard(proto: "user_id"), + 8: .standard(proto: "modified_at"), + 9: .same(proto: "version"), + 10: .standard(proto: "is_starred"), + 11: .standard(proto: "star_count"), + 12: .same(proto: "description"), + 13: .same(proto: "notes"), + 14: .standard(proto: "use_cases"), + 15: .standard(proto: "check_consents"), + 16: .standard(proto: "bookmark_origin"), + 17: .same(proto: "image"), ] fileprivate class _StorageClass { var _id: String = String() + var _appID: String = String() var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _modifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _type: Clarifai_Api_Task.TaskType = .typeNotSet - var _description_p: String = String() - var _worker: Clarifai_Api_TaskWorker? = nil - var _conceptIds: [String] = [] - var _inputSource: Clarifai_Api_TaskInputSource? = nil - var _sampleMs: UInt32 = 0 - var _aiAssistant: Clarifai_Api_TaskAIAssistant? = nil - var _review: Clarifai_Api_TaskReview? = nil - var _status: Clarifai_Api_Status_Status? = nil - var _name: String = String() - var _aiAssistParams: Clarifai_Api_AiAssistParameters? = nil + var _nodes: [Clarifai_Api_WorkflowNode] = [] + var _metadata: SwiftProtobuf.Google_Protobuf_Struct? = nil var _visibility: Clarifai_Api_Visibility? = nil - var _appID: String = String() var _userID: String = String() - var _labelOrderID: String = String() - var _concepts: [Clarifai_Api_TaskConcept] = [] - var _deletePreviousAnnotations: Bool = false - var _metrics: Clarifai_Api_TaskMetrics? = nil - var _priority: Clarifai_Api_Task.TaskPriority = .notSet - var _metadata: SwiftProtobuf.Google_Protobuf_Struct? = nil + var _modifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _version: Clarifai_Api_WorkflowVersion? = nil + var _isStarred: Bool = false + var _starCount: Int32 = 0 + var _description_p: String = String() + var _notes: String = String() + var _useCases: [String] = [] + var _checkConsents: [String] = [] + var _bookmarkOrigin: Clarifai_Api_BookmarkOrigin? = nil + var _image: Clarifai_Api_Image? = nil static let defaultInstance = _StorageClass() @@ -24024,28 +22815,22 @@ extension Clarifai_Api_Task: SwiftProtobuf.Message, SwiftProtobuf._MessageImplem init(copying source: _StorageClass) { _id = source._id + _appID = source._appID _createdAt = source._createdAt - _modifiedAt = source._modifiedAt - _type = source._type - _description_p = source._description_p - _worker = source._worker - _conceptIds = source._conceptIds - _inputSource = source._inputSource - _sampleMs = source._sampleMs - _aiAssistant = source._aiAssistant - _review = source._review - _status = source._status - _name = source._name - _aiAssistParams = source._aiAssistParams + _nodes = source._nodes + _metadata = source._metadata _visibility = source._visibility - _appID = source._appID _userID = source._userID - _labelOrderID = source._labelOrderID - _concepts = source._concepts - _deletePreviousAnnotations = source._deletePreviousAnnotations - _metrics = source._metrics - _priority = source._priority - _metadata = source._metadata + _modifiedAt = source._modifiedAt + _version = source._version + _isStarred = source._isStarred + _starCount = source._starCount + _description_p = source._description_p + _notes = source._notes + _useCases = source._useCases + _checkConsents = source._checkConsents + _bookmarkOrigin = source._bookmarkOrigin + _image = source._image } } @@ -24065,28 +22850,22 @@ extension Clarifai_Api_Task: SwiftProtobuf.Message, SwiftProtobuf._MessageImplem // enabled. https://github.com/apple/swift-protobuf/issues/1034 switch fieldNumber { case 1: try { try decoder.decodeSingularStringField(value: &_storage._id) }() - case 2: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() - case 3: try { try decoder.decodeSingularMessageField(value: &_storage._modifiedAt) }() - case 4: try { try decoder.decodeSingularEnumField(value: &_storage._type) }() - case 5: try { try decoder.decodeSingularStringField(value: &_storage._description_p) }() - case 6: try { try decoder.decodeSingularMessageField(value: &_storage._worker) }() - case 7: try { try decoder.decodeRepeatedStringField(value: &_storage._conceptIds) }() - case 8: try { try decoder.decodeSingularMessageField(value: &_storage._inputSource) }() - case 9: try { try decoder.decodeSingularUInt32Field(value: &_storage._sampleMs) }() - case 10: try { try decoder.decodeSingularMessageField(value: &_storage._aiAssistant) }() - case 11: try { try decoder.decodeSingularMessageField(value: &_storage._review) }() - case 12: try { try decoder.decodeSingularMessageField(value: &_storage._status) }() - case 13: try { try decoder.decodeSingularStringField(value: &_storage._name) }() - case 14: try { try decoder.decodeSingularMessageField(value: &_storage._aiAssistParams) }() - case 15: try { try decoder.decodeSingularMessageField(value: &_storage._visibility) }() - case 16: try { try decoder.decodeSingularStringField(value: &_storage._appID) }() - case 17: try { try decoder.decodeSingularStringField(value: &_storage._userID) }() - case 18: try { try decoder.decodeSingularStringField(value: &_storage._labelOrderID) }() - case 19: try { try decoder.decodeRepeatedMessageField(value: &_storage._concepts) }() - case 20: try { try decoder.decodeSingularBoolField(value: &_storage._deletePreviousAnnotations) }() - case 21: try { try decoder.decodeSingularMessageField(value: &_storage._metrics) }() - case 23: try { try decoder.decodeSingularEnumField(value: &_storage._priority) }() - case 24: try { try decoder.decodeSingularMessageField(value: &_storage._metadata) }() + case 2: try { try decoder.decodeSingularStringField(value: &_storage._appID) }() + case 3: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() + case 4: try { try decoder.decodeRepeatedMessageField(value: &_storage._nodes) }() + case 5: try { try decoder.decodeSingularMessageField(value: &_storage._metadata) }() + case 6: try { try decoder.decodeSingularMessageField(value: &_storage._visibility) }() + case 7: try { try decoder.decodeSingularStringField(value: &_storage._userID) }() + case 8: try { try decoder.decodeSingularMessageField(value: &_storage._modifiedAt) }() + case 9: try { try decoder.decodeSingularMessageField(value: &_storage._version) }() + case 10: try { try decoder.decodeSingularBoolField(value: &_storage._isStarred) }() + case 11: try { try decoder.decodeSingularInt32Field(value: &_storage._starCount) }() + case 12: try { try decoder.decodeSingularStringField(value: &_storage._description_p) }() + case 13: try { try decoder.decodeSingularStringField(value: &_storage._notes) }() + case 14: try { try decoder.decodeRepeatedStringField(value: &_storage._useCases) }() + case 15: try { try decoder.decodeRepeatedStringField(value: &_storage._checkConsents) }() + case 16: try { try decoder.decodeSingularMessageField(value: &_storage._bookmarkOrigin) }() + case 17: try { try decoder.decodeSingularMessageField(value: &_storage._image) }() default: break } } @@ -24102,104 +22881,80 @@ extension Clarifai_Api_Task: SwiftProtobuf.Message, SwiftProtobuf._MessageImplem if !_storage._id.isEmpty { try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) } + if !_storage._appID.isEmpty { + try visitor.visitSingularStringField(value: _storage._appID, fieldNumber: 2) + } try { if let v = _storage._createdAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - try { if let v = _storage._modifiedAt { try visitor.visitSingularMessageField(value: v, fieldNumber: 3) } }() - if _storage._type != .typeNotSet { - try visitor.visitSingularEnumField(value: _storage._type, fieldNumber: 4) - } - if !_storage._description_p.isEmpty { - try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 5) + if !_storage._nodes.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._nodes, fieldNumber: 4) } - try { if let v = _storage._worker { + try { if let v = _storage._metadata { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } }() + try { if let v = _storage._visibility { try visitor.visitSingularMessageField(value: v, fieldNumber: 6) } }() - if !_storage._conceptIds.isEmpty { - try visitor.visitRepeatedStringField(value: _storage._conceptIds, fieldNumber: 7) + if !_storage._userID.isEmpty { + try visitor.visitSingularStringField(value: _storage._userID, fieldNumber: 7) } - try { if let v = _storage._inputSource { + try { if let v = _storage._modifiedAt { try visitor.visitSingularMessageField(value: v, fieldNumber: 8) } }() - if _storage._sampleMs != 0 { - try visitor.visitSingularUInt32Field(value: _storage._sampleMs, fieldNumber: 9) - } - try { if let v = _storage._aiAssistant { - try visitor.visitSingularMessageField(value: v, fieldNumber: 10) - } }() - try { if let v = _storage._review { - try visitor.visitSingularMessageField(value: v, fieldNumber: 11) - } }() - try { if let v = _storage._status { - try visitor.visitSingularMessageField(value: v, fieldNumber: 12) + try { if let v = _storage._version { + try visitor.visitSingularMessageField(value: v, fieldNumber: 9) } }() - if !_storage._name.isEmpty { - try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 13) + if _storage._isStarred != false { + try visitor.visitSingularBoolField(value: _storage._isStarred, fieldNumber: 10) } - try { if let v = _storage._aiAssistParams { - try visitor.visitSingularMessageField(value: v, fieldNumber: 14) - } }() - try { if let v = _storage._visibility { - try visitor.visitSingularMessageField(value: v, fieldNumber: 15) - } }() - if !_storage._appID.isEmpty { - try visitor.visitSingularStringField(value: _storage._appID, fieldNumber: 16) + if _storage._starCount != 0 { + try visitor.visitSingularInt32Field(value: _storage._starCount, fieldNumber: 11) } - if !_storage._userID.isEmpty { - try visitor.visitSingularStringField(value: _storage._userID, fieldNumber: 17) + if !_storage._description_p.isEmpty { + try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 12) } - if !_storage._labelOrderID.isEmpty { - try visitor.visitSingularStringField(value: _storage._labelOrderID, fieldNumber: 18) + if !_storage._notes.isEmpty { + try visitor.visitSingularStringField(value: _storage._notes, fieldNumber: 13) } - if !_storage._concepts.isEmpty { - try visitor.visitRepeatedMessageField(value: _storage._concepts, fieldNumber: 19) + if !_storage._useCases.isEmpty { + try visitor.visitRepeatedStringField(value: _storage._useCases, fieldNumber: 14) } - if _storage._deletePreviousAnnotations != false { - try visitor.visitSingularBoolField(value: _storage._deletePreviousAnnotations, fieldNumber: 20) + if !_storage._checkConsents.isEmpty { + try visitor.visitRepeatedStringField(value: _storage._checkConsents, fieldNumber: 15) } - try { if let v = _storage._metrics { - try visitor.visitSingularMessageField(value: v, fieldNumber: 21) + try { if let v = _storage._bookmarkOrigin { + try visitor.visitSingularMessageField(value: v, fieldNumber: 16) } }() - if _storage._priority != .notSet { - try visitor.visitSingularEnumField(value: _storage._priority, fieldNumber: 23) - } - try { if let v = _storage._metadata { - try visitor.visitSingularMessageField(value: v, fieldNumber: 24) + try { if let v = _storage._image { + try visitor.visitSingularMessageField(value: v, fieldNumber: 17) } }() } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_Task, rhs: Clarifai_Api_Task) -> Bool { + public static func ==(lhs: Clarifai_Api_Workflow, rhs: Clarifai_Api_Workflow) -> 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._appID != rhs_storage._appID {return false} if _storage._createdAt != rhs_storage._createdAt {return false} - if _storage._modifiedAt != rhs_storage._modifiedAt {return false} - if _storage._type != rhs_storage._type {return false} - if _storage._description_p != rhs_storage._description_p {return false} - if _storage._worker != rhs_storage._worker {return false} - if _storage._conceptIds != rhs_storage._conceptIds {return false} - if _storage._inputSource != rhs_storage._inputSource {return false} - if _storage._sampleMs != rhs_storage._sampleMs {return false} - if _storage._aiAssistant != rhs_storage._aiAssistant {return false} - if _storage._review != rhs_storage._review {return false} - if _storage._status != rhs_storage._status {return false} - if _storage._name != rhs_storage._name {return false} - if _storage._aiAssistParams != rhs_storage._aiAssistParams {return false} + if _storage._nodes != rhs_storage._nodes {return false} + if _storage._metadata != rhs_storage._metadata {return false} if _storage._visibility != rhs_storage._visibility {return false} - if _storage._appID != rhs_storage._appID {return false} if _storage._userID != rhs_storage._userID {return false} - if _storage._labelOrderID != rhs_storage._labelOrderID {return false} - if _storage._concepts != rhs_storage._concepts {return false} - if _storage._deletePreviousAnnotations != rhs_storage._deletePreviousAnnotations {return false} - if _storage._metrics != rhs_storage._metrics {return false} - if _storage._priority != rhs_storage._priority {return false} - if _storage._metadata != rhs_storage._metadata {return false} + if _storage._modifiedAt != rhs_storage._modifiedAt {return false} + if _storage._version != rhs_storage._version {return false} + if _storage._isStarred != rhs_storage._isStarred {return false} + if _storage._starCount != rhs_storage._starCount {return false} + if _storage._description_p != rhs_storage._description_p {return false} + if _storage._notes != rhs_storage._notes {return false} + if _storage._useCases != rhs_storage._useCases {return false} + if _storage._checkConsents != rhs_storage._checkConsents {return false} + if _storage._bookmarkOrigin != rhs_storage._bookmarkOrigin {return false} + if _storage._image != rhs_storage._image {return false} return true } if !storagesAreEqual {return false} @@ -24209,30 +22964,20 @@ extension Clarifai_Api_Task: SwiftProtobuf.Message, SwiftProtobuf._MessageImplem } } -extension Clarifai_Api_Task.TaskType: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "TYPE_NOT_SET"), - 1: .same(proto: "CONCEPTS_CLASSIFICATION"), - 2: .same(proto: "BOUNDING_BOX_DETECTION"), - 3: .same(proto: "POLYGON_DETECTION"), - ] -} - -extension Clarifai_Api_Task.TaskPriority: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "TASK_PRIORITY_NOT_SET"), - 1: .same(proto: "LOW"), - 2: .same(proto: "MEDIUM"), - 3: .same(proto: "HIGH"), - ] -} - -extension Clarifai_Api_AiAssistParameters: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".AiAssistParameters" +extension Clarifai_Api_WorkflowVersion: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".WorkflowVersion" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "min_threshold"), - 2: .standard(proto: "max_threshold"), - 3: .standard(proto: "concept_relation_ids"), + 1: .same(proto: "id"), + 2: .standard(proto: "workflow_id"), + 3: .standard(proto: "created_at"), + 4: .standard(proto: "modified_at"), + 5: .same(proto: "visibility"), + 6: .same(proto: "nodes"), + 7: .same(proto: "metadata"), + 8: .standard(proto: "app_id"), + 9: .standard(proto: "user_id"), + 10: .same(proto: "description"), + 11: .same(proto: "license"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -24241,45 +22986,88 @@ extension Clarifai_Api_AiAssistParameters: SwiftProtobuf.Message, SwiftProtobuf. // 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.decodeSingularFloatField(value: &self.minThreshold) }() - case 2: try { try decoder.decodeSingularFloatField(value: &self.maxThreshold) }() - case 3: try { try decoder.decodeRepeatedStringField(value: &self.conceptRelationIds) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.workflowID) }() + case 3: try { try decoder.decodeSingularMessageField(value: &self._createdAt) }() + case 4: try { try decoder.decodeSingularMessageField(value: &self._modifiedAt) }() + case 5: try { try decoder.decodeSingularMessageField(value: &self._visibility) }() + case 6: try { try decoder.decodeRepeatedMessageField(value: &self.nodes) }() + case 7: try { try decoder.decodeSingularMessageField(value: &self._metadata) }() + case 8: try { try decoder.decodeSingularStringField(value: &self.appID) }() + case 9: try { try decoder.decodeSingularStringField(value: &self.userID) }() + case 10: try { try decoder.decodeSingularStringField(value: &self.description_p) }() + case 11: try { try decoder.decodeSingularStringField(value: &self.license) }() default: break } } } public func traverse(visitor: inout V) throws { - if self.minThreshold != 0 { - try visitor.visitSingularFloatField(value: self.minThreshold, fieldNumber: 1) + // 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.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) } - if self.maxThreshold != 0 { - try visitor.visitSingularFloatField(value: self.maxThreshold, fieldNumber: 2) + if !self.workflowID.isEmpty { + try visitor.visitSingularStringField(value: self.workflowID, fieldNumber: 2) } - if !self.conceptRelationIds.isEmpty { - try visitor.visitRepeatedStringField(value: self.conceptRelationIds, fieldNumber: 3) + try { if let v = self._createdAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + } }() + try { if let v = self._modifiedAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + } }() + try { if let v = self._visibility { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } }() + if !self.nodes.isEmpty { + try visitor.visitRepeatedMessageField(value: self.nodes, fieldNumber: 6) + } + try { if let v = self._metadata { + try visitor.visitSingularMessageField(value: v, fieldNumber: 7) + } }() + if !self.appID.isEmpty { + try visitor.visitSingularStringField(value: self.appID, fieldNumber: 8) + } + if !self.userID.isEmpty { + try visitor.visitSingularStringField(value: self.userID, fieldNumber: 9) + } + if !self.description_p.isEmpty { + try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 10) + } + if !self.license.isEmpty { + try visitor.visitSingularStringField(value: self.license, fieldNumber: 11) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_AiAssistParameters, rhs: Clarifai_Api_AiAssistParameters) -> Bool { - if lhs.minThreshold != rhs.minThreshold {return false} - if lhs.maxThreshold != rhs.maxThreshold {return false} - if lhs.conceptRelationIds != rhs.conceptRelationIds {return false} + public static func ==(lhs: Clarifai_Api_WorkflowVersion, rhs: Clarifai_Api_WorkflowVersion) -> Bool { + if lhs.id != rhs.id {return false} + if lhs.workflowID != rhs.workflowID {return false} + if lhs._createdAt != rhs._createdAt {return false} + if lhs._modifiedAt != rhs._modifiedAt {return false} + if lhs._visibility != rhs._visibility {return false} + if lhs.nodes != rhs.nodes {return false} + if lhs._metadata != rhs._metadata {return false} + if lhs.appID != rhs.appID {return false} + if lhs.userID != rhs.userID {return false} + if lhs.description_p != rhs.description_p {return false} + if lhs.license != rhs.license {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_TaskWorker: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".TaskWorker" +extension Clarifai_Api_WorkflowNode: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".WorkflowNode" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "strategy"), - 2: .standard(proto: "user_ids"), - 4: .same(proto: "users"), - 3: .standard(proto: "partitioned_strategy_info"), - 7: .same(proto: "workers"), - 8: .same(proto: "type"), + 1: .same(proto: "id"), + 2: .same(proto: "model"), + 3: .standard(proto: "node_inputs"), + 4: .standard(proto: "suppress_output"), + 5: .standard(proto: "output_info_override"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -24288,24 +23076,11 @@ extension Clarifai_Api_TaskWorker: 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.decodeSingularEnumField(value: &self.strategy) }() - case 2: try { try decoder.decodeRepeatedStringField(value: &self.userIds) }() - case 3: try { - var v: Clarifai_Api_TaskWorkerPartitionedStrategyInfo? - var hadOneofValue = false - if let current = self.strategyInfo { - hadOneofValue = true - if case .partitionedStrategyInfo(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - self.strategyInfo = .partitionedStrategyInfo(v) - } - }() - case 4: try { try decoder.decodeRepeatedMessageField(value: &self.users) }() - case 7: try { try decoder.decodeRepeatedMessageField(value: &self.workers) }() - case 8: try { try decoder.decodeSingularEnumField(value: &self.type) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._model) }() + case 3: try { try decoder.decodeRepeatedMessageField(value: &self.nodeInputs) }() + case 4: try { try decoder.decodeSingularBoolField(value: &self.suppressOutput) }() + case 5: try { try decoder.decodeSingularMessageField(value: &self._outputInfoOverride) }() default: break } } @@ -24316,62 +23091,39 @@ extension Clarifai_Api_TaskWorker: SwiftProtobuf.Message, SwiftProtobuf._Message // 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.strategy != .workerStrategyNotSet { - try visitor.visitSingularEnumField(value: self.strategy, fieldNumber: 1) - } - if !self.userIds.isEmpty { - try visitor.visitRepeatedStringField(value: self.userIds, fieldNumber: 2) + if !self.id.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) } - try { if case .partitionedStrategyInfo(let v)? = self.strategyInfo { - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + try { if let v = self._model { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) } }() - if !self.users.isEmpty { - try visitor.visitRepeatedMessageField(value: self.users, fieldNumber: 4) - } - if !self.workers.isEmpty { - try visitor.visitRepeatedMessageField(value: self.workers, fieldNumber: 7) + if !self.nodeInputs.isEmpty { + try visitor.visitRepeatedMessageField(value: self.nodeInputs, fieldNumber: 3) } - if self.type != .notSet { - try visitor.visitSingularEnumField(value: self.type, fieldNumber: 8) + if self.suppressOutput != false { + try visitor.visitSingularBoolField(value: self.suppressOutput, fieldNumber: 4) } + try { if let v = self._outputInfoOverride { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_TaskWorker, rhs: Clarifai_Api_TaskWorker) -> Bool { - if lhs.strategy != rhs.strategy {return false} - if lhs.userIds != rhs.userIds {return false} - if lhs.users != rhs.users {return false} - if lhs.strategyInfo != rhs.strategyInfo {return false} - if lhs.workers != rhs.workers {return false} - if lhs.type != rhs.type {return false} + public static func ==(lhs: Clarifai_Api_WorkflowNode, rhs: Clarifai_Api_WorkflowNode) -> Bool { + if lhs.id != rhs.id {return false} + if lhs._model != rhs._model {return false} + if lhs.nodeInputs != rhs.nodeInputs {return false} + if lhs.suppressOutput != rhs.suppressOutput {return false} + if lhs._outputInfoOverride != rhs._outputInfoOverride {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_TaskWorker.TaskWorkerStrategy: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "WORKER_STRATEGY_NOT_SET"), - 2: .same(proto: "PARTITIONED"), - 3: .same(proto: "FULL"), - 4: .same(proto: "DYNAMIC"), - ] -} - -extension Clarifai_Api_TaskWorker.WorkerType: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "WORKER_TYPE_NOT_SET"), - 1: .same(proto: "WORKER_HUMAN"), - 2: .same(proto: "WORKER_AUTO"), - ] -} - -extension Clarifai_Api_TaskWorkerPartitionedStrategyInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".TaskWorkerPartitionedStrategyInfo" +extension Clarifai_Api_NodeInput: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".NodeInput" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "type"), - 2: .standard(proto: "workers_per_input"), - 3: .same(proto: "weights"), + 1: .standard(proto: "node_id"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -24380,53 +23132,138 @@ extension Clarifai_Api_TaskWorkerPartitionedStrategyInfo: 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.decodeSingularEnumField(value: &self.type) }() - case 2: try { try decoder.decodeSingularInt32Field(value: &self.workersPerInput) }() - case 3: try { try decoder.decodeSingularMessageField(value: &self._weights) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.nodeID) }() 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.type != .partitionedWorkerStrategyNotSet { - try visitor.visitSingularEnumField(value: self.type, fieldNumber: 1) - } - if self.workersPerInput != 0 { - try visitor.visitSingularInt32Field(value: self.workersPerInput, fieldNumber: 2) + if !self.nodeID.isEmpty { + try visitor.visitSingularStringField(value: self.nodeID, fieldNumber: 1) } - try { if let v = self._weights { - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_TaskWorkerPartitionedStrategyInfo, rhs: Clarifai_Api_TaskWorkerPartitionedStrategyInfo) -> Bool { - if lhs.type != rhs.type {return false} - if lhs.workersPerInput != rhs.workersPerInput {return false} - if lhs._weights != rhs._weights {return false} + public static func ==(lhs: Clarifai_Api_NodeInput, rhs: Clarifai_Api_NodeInput) -> Bool { + if lhs.nodeID != rhs.nodeID {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_TaskWorkerPartitionedStrategyInfo.TaskWorkerPartitionedStrategy: SwiftProtobuf._ProtoNameProviding { +extension Clarifai_Api_WorkflowResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".WorkflowResult" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "PARTITIONED_WORKER_STRATEGY_NOT_SET"), - 1: .same(proto: "EVENLY"), - 2: .same(proto: "WEIGHTED"), + 1: .same(proto: "id"), + 2: .same(proto: "status"), + 3: .standard(proto: "created_at"), + 5: .same(proto: "input"), + 6: .same(proto: "outputs"), + 7: .standard(proto: "suppress_output"), ] + + fileprivate class _StorageClass { + var _id: String = String() + var _status: Clarifai_Api_Status_Status? = nil + var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _input: Clarifai_Api_Input? = nil + var _outputs: [Clarifai_Api_Output] = [] + var _suppressOutput: Bool = false + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _id = source._id + _status = source._status + _createdAt = source._createdAt + _input = source._input + _outputs = source._outputs + _suppressOutput = source._suppressOutput + } + } + + 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.decodeSingularStringField(value: &_storage._id) }() + case 2: try { try decoder.decodeSingularMessageField(value: &_storage._status) }() + case 3: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() + case 5: try { try decoder.decodeSingularMessageField(value: &_storage._input) }() + case 6: try { try decoder.decodeRepeatedMessageField(value: &_storage._outputs) }() + case 7: try { try decoder.decodeSingularBoolField(value: &_storage._suppressOutput) }() + 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.isEmpty { + try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) + } + try { if let v = _storage._status { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + try { if let v = _storage._createdAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + } }() + try { if let v = _storage._input { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } }() + if !_storage._outputs.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._outputs, fieldNumber: 6) + } + if _storage._suppressOutput != false { + try visitor.visitSingularBoolField(value: _storage._suppressOutput, fieldNumber: 7) + } + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Clarifai_Api_WorkflowResult, rhs: Clarifai_Api_WorkflowResult) -> 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._status != rhs_storage._status {return false} + if _storage._createdAt != rhs_storage._createdAt {return false} + if _storage._input != rhs_storage._input {return false} + if _storage._outputs != rhs_storage._outputs {return false} + if _storage._suppressOutput != rhs_storage._suppressOutput {return false} + return true + } + if !storagesAreEqual {return false} + } + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } } -extension Clarifai_Api_TaskInputSource: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".TaskInputSource" +extension Clarifai_Api_WorkflowState: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".WorkflowState" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "type"), - 2: .same(proto: "id"), + 1: .same(proto: "id"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -24435,142 +23272,171 @@ extension Clarifai_Api_TaskInputSource: 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.decodeSingularEnumField(value: &self.type) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.id) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() default: break } } } - public func traverse(visitor: inout V) throws { - if self.type != .inputSourceTypeNotSet { - try visitor.visitSingularEnumField(value: self.type, fieldNumber: 1) - } + public func traverse(visitor: inout V) throws { if !self.id.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 2) + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_TaskInputSource, rhs: Clarifai_Api_TaskInputSource) -> Bool { - if lhs.type != rhs.type {return false} + public static func ==(lhs: Clarifai_Api_WorkflowState, rhs: Clarifai_Api_WorkflowState) -> Bool { if lhs.id != rhs.id {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_TaskInputSource.TaskInputSourceType: SwiftProtobuf._ProtoNameProviding { +extension Clarifai_Api_AppDuplication: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".AppDuplication" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "INPUT_SOURCE_TYPE_NOT_SET"), - 1: .same(proto: "ALL_INPUTS"), - 2: .same(proto: "SAVED_SEARCH"), - 3: .same(proto: "DATASET"), + 1: .same(proto: "id"), + 10: .standard(proto: "destination_app"), + 8: .standard(proto: "existing_app_id"), + 2: .standard(proto: "new_app_id"), + 3: .standard(proto: "new_app_name"), + 4: .same(proto: "status"), + 5: .standard(proto: "created_at"), + 6: .standard(proto: "last_modified_at"), + 7: .same(proto: "filter"), + 9: .same(proto: "progress"), ] -} -extension Clarifai_Api_TaskReview: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".TaskReview" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "strategy"), - 2: .standard(proto: "user_ids"), - 5: .same(proto: "users"), - 3: .standard(proto: "manual_strategy_info"), - 4: .standard(proto: "consensus_strategy_info"), - ] + fileprivate class _StorageClass { + var _id: String = String() + var _destinationApp: Clarifai_Api_App? = nil + var _existingAppID: String = String() + var _newAppID: String = String() + var _newAppName: String = String() + var _status: Clarifai_Api_Status_Status? = nil + var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _lastModifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _filter: Clarifai_Api_AppDuplicationFilters? = nil + var _progress: [Clarifai_Api_AppCopyProgress] = [] + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _id = source._id + _destinationApp = source._destinationApp + _existingAppID = source._existingAppID + _newAppID = source._newAppID + _newAppName = source._newAppName + _status = source._status + _createdAt = source._createdAt + _lastModifiedAt = source._lastModifiedAt + _filter = source._filter + _progress = source._progress + } + } + + 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.decodeSingularEnumField(value: &self.strategy) }() - case 2: try { try decoder.decodeRepeatedStringField(value: &self.userIds) }() - case 3: try { - var v: Clarifai_Api_TaskReviewManualStrategyInfo? - var hadOneofValue = false - if let current = self.strategyInfo { - hadOneofValue = true - if case .manualStrategyInfo(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - self.strategyInfo = .manualStrategyInfo(v) - } - }() - case 4: try { - var v: Clarifai_Api_TaskReviewConsensusStrategyInfo? - var hadOneofValue = false - if let current = self.strategyInfo { - hadOneofValue = true - if case .consensusStrategyInfo(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - self.strategyInfo = .consensusStrategyInfo(v) + _ = _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.decodeSingularStringField(value: &_storage._id) }() + case 2: try { try decoder.decodeSingularStringField(value: &_storage._newAppID) }() + case 3: try { try decoder.decodeSingularStringField(value: &_storage._newAppName) }() + case 4: try { try decoder.decodeSingularMessageField(value: &_storage._status) }() + case 5: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() + case 6: try { try decoder.decodeSingularMessageField(value: &_storage._lastModifiedAt) }() + case 7: try { try decoder.decodeSingularMessageField(value: &_storage._filter) }() + case 8: try { try decoder.decodeSingularStringField(value: &_storage._existingAppID) }() + case 9: try { try decoder.decodeRepeatedMessageField(value: &_storage._progress) }() + case 10: try { try decoder.decodeSingularMessageField(value: &_storage._destinationApp) }() + default: break } - }() - case 5: try { try decoder.decodeRepeatedMessageField(value: &self.users) }() - 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.strategy != .notSet { - try visitor.visitSingularEnumField(value: self.strategy, fieldNumber: 1) - } - if !self.userIds.isEmpty { - try visitor.visitRepeatedStringField(value: self.userIds, fieldNumber: 2) - } - switch self.strategyInfo { - case .manualStrategyInfo?: try { - guard case .manualStrategyInfo(let v)? = self.strategyInfo else { preconditionFailure() } - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - }() - case .consensusStrategyInfo?: try { - guard case .consensusStrategyInfo(let v)? = self.strategyInfo else { preconditionFailure() } - try visitor.visitSingularMessageField(value: v, fieldNumber: 4) - }() - case nil: break - } - if !self.users.isEmpty { - try visitor.visitRepeatedMessageField(value: self.users, 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.isEmpty { + try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) + } + if !_storage._newAppID.isEmpty { + try visitor.visitSingularStringField(value: _storage._newAppID, fieldNumber: 2) + } + if !_storage._newAppName.isEmpty { + try visitor.visitSingularStringField(value: _storage._newAppName, fieldNumber: 3) + } + try { if let v = _storage._status { + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + } }() + try { if let v = _storage._createdAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } }() + try { if let v = _storage._lastModifiedAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + } }() + try { if let v = _storage._filter { + try visitor.visitSingularMessageField(value: v, fieldNumber: 7) + } }() + if !_storage._existingAppID.isEmpty { + try visitor.visitSingularStringField(value: _storage._existingAppID, fieldNumber: 8) + } + if !_storage._progress.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._progress, fieldNumber: 9) + } + try { if let v = _storage._destinationApp { + try visitor.visitSingularMessageField(value: v, fieldNumber: 10) + } }() } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_TaskReview, rhs: Clarifai_Api_TaskReview) -> Bool { - if lhs.strategy != rhs.strategy {return false} - if lhs.userIds != rhs.userIds {return false} - if lhs.users != rhs.users {return false} - if lhs.strategyInfo != rhs.strategyInfo {return false} + public static func ==(lhs: Clarifai_Api_AppDuplication, rhs: Clarifai_Api_AppDuplication) -> 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._destinationApp != rhs_storage._destinationApp {return false} + if _storage._existingAppID != rhs_storage._existingAppID {return false} + if _storage._newAppID != rhs_storage._newAppID {return false} + if _storage._newAppName != rhs_storage._newAppName {return false} + if _storage._status != rhs_storage._status {return false} + if _storage._createdAt != rhs_storage._createdAt {return false} + if _storage._lastModifiedAt != rhs_storage._lastModifiedAt {return false} + if _storage._filter != rhs_storage._filter {return false} + if _storage._progress != rhs_storage._progress {return false} + return true + } + if !storagesAreEqual {return false} + } if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_TaskReview.TaskReviewStrategy: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "TASK_REVIEW_STRATEGY_NOT_SET"), - 1: .same(proto: "NONE"), - 2: .same(proto: "MANUAL"), - 3: .same(proto: "CONSENSUS"), - ] -} - -extension Clarifai_Api_TaskReviewManualStrategyInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".TaskReviewManualStrategyInfo" +extension Clarifai_Api_AppCopyProgress: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".AppCopyProgress" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "sample_percentage"), - 2: .standard(proto: "approval_threshold"), + 1: .same(proto: "field"), + 2: .same(proto: "value"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -24579,125 +23445,285 @@ extension Clarifai_Api_TaskReviewManualStrategyInfo: SwiftProtobuf.Message, Swif // 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.decodeSingularFloatField(value: &self.samplePercentage) }() - case 2: try { try decoder.decodeSingularInt32Field(value: &self.approvalThreshold) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.field) }() + case 2: try { try decoder.decodeSingularInt32Field(value: &self.value) }() default: break } } } public func traverse(visitor: inout V) throws { - if self.samplePercentage != 0 { - try visitor.visitSingularFloatField(value: self.samplePercentage, fieldNumber: 1) + if !self.field.isEmpty { + try visitor.visitSingularStringField(value: self.field, fieldNumber: 1) } - if self.approvalThreshold != 0 { - try visitor.visitSingularInt32Field(value: self.approvalThreshold, fieldNumber: 2) + if self.value != 0 { + try visitor.visitSingularInt32Field(value: self.value, fieldNumber: 2) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_TaskReviewManualStrategyInfo, rhs: Clarifai_Api_TaskReviewManualStrategyInfo) -> Bool { - if lhs.samplePercentage != rhs.samplePercentage {return false} - if lhs.approvalThreshold != rhs.approvalThreshold {return false} + public static func ==(lhs: Clarifai_Api_AppCopyProgress, rhs: Clarifai_Api_AppCopyProgress) -> Bool { + if lhs.field != rhs.field {return false} + if lhs.value != rhs.value {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_TaskReviewConsensusStrategyInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".TaskReviewConsensusStrategyInfo" +extension Clarifai_Api_AppDuplicationFilters: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".AppDuplicationFilters" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 2: .standard(proto: "approval_threshold"), - 3: .standard(proto: "approval_threshold_labelers"), - 4: .standard(proto: "approval_threshold_reviewers"), + 1: .standard(proto: "copy_inputs"), + 2: .standard(proto: "copy_concepts"), + 3: .standard(proto: "copy_annotations"), + 4: .standard(proto: "copy_models"), + 5: .standard(proto: "copy_workflows"), + 6: .standard(proto: "copy_installed_module_versions"), ] 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 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) }() + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularBoolField(value: &self.copyInputs) }() + case 2: try { try decoder.decodeSingularBoolField(value: &self.copyConcepts) }() + case 3: try { try decoder.decodeSingularBoolField(value: &self.copyAnnotations) }() + case 4: try { try decoder.decodeSingularBoolField(value: &self.copyModels) }() + case 5: try { try decoder.decodeSingularBoolField(value: &self.copyWorkflows) }() + case 6: try { try decoder.decodeSingularBoolField(value: &self.copyInstalledModuleVersions) }() default: break } } } public func traverse(visitor: inout V) throws { - if self.approvalThreshold != 0 { - try visitor.visitSingularUInt32Field(value: self.approvalThreshold, fieldNumber: 2) + if self.copyInputs != false { + try visitor.visitSingularBoolField(value: self.copyInputs, fieldNumber: 1) } - if self.approvalThresholdLabelers != 0 { - try visitor.visitSingularUInt32Field(value: self.approvalThresholdLabelers, fieldNumber: 3) + if self.copyConcepts != false { + try visitor.visitSingularBoolField(value: self.copyConcepts, fieldNumber: 2) } - if self.approvalThresholdReviewers != 0 { - try visitor.visitSingularInt32Field(value: self.approvalThresholdReviewers, fieldNumber: 4) + if self.copyAnnotations != false { + try visitor.visitSingularBoolField(value: self.copyAnnotations, fieldNumber: 3) + } + if self.copyModels != false { + try visitor.visitSingularBoolField(value: self.copyModels, fieldNumber: 4) + } + if self.copyWorkflows != false { + try visitor.visitSingularBoolField(value: self.copyWorkflows, fieldNumber: 5) + } + if self.copyInstalledModuleVersions != false { + try visitor.visitSingularBoolField(value: self.copyInstalledModuleVersions, fieldNumber: 6) } 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} + public static func ==(lhs: Clarifai_Api_AppDuplicationFilters, rhs: Clarifai_Api_AppDuplicationFilters) -> Bool { + if lhs.copyInputs != rhs.copyInputs {return false} + if lhs.copyConcepts != rhs.copyConcepts {return false} + if lhs.copyAnnotations != rhs.copyAnnotations {return false} + if lhs.copyModels != rhs.copyModels {return false} + if lhs.copyWorkflows != rhs.copyWorkflows {return false} + if lhs.copyInstalledModuleVersions != rhs.copyInstalledModuleVersions {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_TaskAIAssistant: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".TaskAIAssistant" +extension Clarifai_Api_LabelOrder: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".LabelOrder" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "workflow_id"), + 1: .same(proto: "id"), + 2: .same(proto: "name"), + 3: .same(proto: "status"), + 4: .standard(proto: "auto_release"), + 5: .standard(proto: "allow_empty_tag"), + 6: .standard(proto: "desired_fulfill_time"), + 7: .standard(proto: "estimate_fulfill_time"), + 8: .same(proto: "task"), + 9: .standard(proto: "created_at"), + 10: .standard(proto: "modified_at"), ] + fileprivate class _StorageClass { + var _id: String = String() + var _name: String = String() + var _status: Clarifai_Api_Status_Status? = nil + var _autoRelease: Bool = false + var _allowEmptyTag: Bool = false + var _desiredFulfillTime: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _estimateFulfillTime: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _task: Clarifai_Api_Task? = nil + var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _modifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _id = source._id + _name = source._name + _status = source._status + _autoRelease = source._autoRelease + _allowEmptyTag = source._allowEmptyTag + _desiredFulfillTime = source._desiredFulfillTime + _estimateFulfillTime = source._estimateFulfillTime + _task = source._task + _createdAt = source._createdAt + _modifiedAt = source._modifiedAt + } + } + + 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.workflowID) }() - 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.decodeSingularStringField(value: &_storage._id) }() + case 2: try { try decoder.decodeSingularStringField(value: &_storage._name) }() + case 3: try { try decoder.decodeSingularMessageField(value: &_storage._status) }() + case 4: try { try decoder.decodeSingularBoolField(value: &_storage._autoRelease) }() + case 5: try { try decoder.decodeSingularBoolField(value: &_storage._allowEmptyTag) }() + case 6: try { try decoder.decodeSingularMessageField(value: &_storage._desiredFulfillTime) }() + case 7: try { try decoder.decodeSingularMessageField(value: &_storage._estimateFulfillTime) }() + case 8: try { try decoder.decodeSingularMessageField(value: &_storage._task) }() + case 9: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() + case 10: try { try decoder.decodeSingularMessageField(value: &_storage._modifiedAt) }() + default: break + } } } } public func traverse(visitor: inout V) throws { - if !self.workflowID.isEmpty { - try visitor.visitSingularStringField(value: self.workflowID, fieldNumber: 1) + 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.isEmpty { + try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) + } + if !_storage._name.isEmpty { + try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 2) + } + try { if let v = _storage._status { + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + } }() + if _storage._autoRelease != false { + try visitor.visitSingularBoolField(value: _storage._autoRelease, fieldNumber: 4) + } + if _storage._allowEmptyTag != false { + try visitor.visitSingularBoolField(value: _storage._allowEmptyTag, fieldNumber: 5) + } + try { if let v = _storage._desiredFulfillTime { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + } }() + try { if let v = _storage._estimateFulfillTime { + try visitor.visitSingularMessageField(value: v, fieldNumber: 7) + } }() + try { if let v = _storage._task { + try visitor.visitSingularMessageField(value: v, fieldNumber: 8) + } }() + try { if let v = _storage._createdAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 9) + } }() + try { if let v = _storage._modifiedAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 10) + } }() } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_TaskAIAssistant, rhs: Clarifai_Api_TaskAIAssistant) -> Bool { - if lhs.workflowID != rhs.workflowID {return false} + public static func ==(lhs: Clarifai_Api_LabelOrder, rhs: Clarifai_Api_LabelOrder) -> 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._status != rhs_storage._status {return false} + if _storage._autoRelease != rhs_storage._autoRelease {return false} + if _storage._allowEmptyTag != rhs_storage._allowEmptyTag {return false} + if _storage._desiredFulfillTime != rhs_storage._desiredFulfillTime {return false} + if _storage._estimateFulfillTime != rhs_storage._estimateFulfillTime {return false} + if _storage._task != rhs_storage._task {return false} + if _storage._createdAt != rhs_storage._createdAt {return false} + if _storage._modifiedAt != rhs_storage._modifiedAt {return false} + return true + } + if !storagesAreEqual {return false} + } if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_TaskAssignment: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".TaskAssignment" +extension Clarifai_Api_Task: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Task" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ 1: .same(proto: "id"), 2: .standard(proto: "created_at"), 3: .standard(proto: "modified_at"), - 4: .same(proto: "worker"), - 5: .same(proto: "input"), - 6: .same(proto: "status"), + 4: .same(proto: "type"), + 5: .same(proto: "description"), + 6: .same(proto: "worker"), + 7: .standard(proto: "concept_ids"), + 8: .standard(proto: "input_source"), + 9: .standard(proto: "sample_ms"), + 10: .standard(proto: "ai_assistant"), + 11: .same(proto: "review"), + 12: .same(proto: "status"), + 13: .same(proto: "name"), + 14: .standard(proto: "ai_assist_params"), + 15: .same(proto: "visibility"), + 16: .standard(proto: "app_id"), + 17: .standard(proto: "user_id"), + 18: .standard(proto: "label_order_id"), + 19: .same(proto: "concepts"), + 20: .standard(proto: "delete_previous_annotations"), + 21: .same(proto: "metrics"), + 23: .same(proto: "priority"), + 24: .same(proto: "metadata"), ] fileprivate class _StorageClass { var _id: String = String() var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil var _modifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _worker: Clarifai_Api_Worker? = nil - var _input: Clarifai_Api_Input? = nil + var _type: Clarifai_Api_Task.TaskType = .typeNotSet + var _description_p: String = String() + var _worker: Clarifai_Api_TaskWorker? = nil + var _conceptIds: [String] = [] + var _inputSource: Clarifai_Api_TaskInputSource? = nil + var _sampleMs: UInt32 = 0 + var _aiAssistant: Clarifai_Api_TaskAIAssistant? = nil + var _review: Clarifai_Api_TaskReview? = nil var _status: Clarifai_Api_Status_Status? = nil + var _name: String = String() + var _aiAssistParams: Clarifai_Api_AiAssistParameters? = nil + var _visibility: Clarifai_Api_Visibility? = nil + var _appID: String = String() + var _userID: String = String() + var _labelOrderID: String = String() + var _concepts: [Clarifai_Api_TaskConcept] = [] + var _deletePreviousAnnotations: Bool = false + var _metrics: Clarifai_Api_TaskMetrics? = nil + var _priority: Clarifai_Api_Task.TaskPriority = .notSet + var _metadata: SwiftProtobuf.Google_Protobuf_Struct? = nil static let defaultInstance = _StorageClass() @@ -24707,9 +23733,26 @@ extension Clarifai_Api_TaskAssignment: SwiftProtobuf.Message, SwiftProtobuf._Mes _id = source._id _createdAt = source._createdAt _modifiedAt = source._modifiedAt + _type = source._type + _description_p = source._description_p _worker = source._worker - _input = source._input + _conceptIds = source._conceptIds + _inputSource = source._inputSource + _sampleMs = source._sampleMs + _aiAssistant = source._aiAssistant + _review = source._review _status = source._status + _name = source._name + _aiAssistParams = source._aiAssistParams + _visibility = source._visibility + _appID = source._appID + _userID = source._userID + _labelOrderID = source._labelOrderID + _concepts = source._concepts + _deletePreviousAnnotations = source._deletePreviousAnnotations + _metrics = source._metrics + _priority = source._priority + _metadata = source._metadata } } @@ -24731,9 +23774,26 @@ extension Clarifai_Api_TaskAssignment: SwiftProtobuf.Message, SwiftProtobuf._Mes case 1: try { try decoder.decodeSingularStringField(value: &_storage._id) }() case 2: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() case 3: try { try decoder.decodeSingularMessageField(value: &_storage._modifiedAt) }() - case 4: try { try decoder.decodeSingularMessageField(value: &_storage._worker) }() - case 5: try { try decoder.decodeSingularMessageField(value: &_storage._input) }() - case 6: try { try decoder.decodeSingularMessageField(value: &_storage._status) }() + case 4: try { try decoder.decodeSingularEnumField(value: &_storage._type) }() + case 5: try { try decoder.decodeSingularStringField(value: &_storage._description_p) }() + case 6: try { try decoder.decodeSingularMessageField(value: &_storage._worker) }() + case 7: try { try decoder.decodeRepeatedStringField(value: &_storage._conceptIds) }() + case 8: try { try decoder.decodeSingularMessageField(value: &_storage._inputSource) }() + case 9: try { try decoder.decodeSingularUInt32Field(value: &_storage._sampleMs) }() + case 10: try { try decoder.decodeSingularMessageField(value: &_storage._aiAssistant) }() + case 11: try { try decoder.decodeSingularMessageField(value: &_storage._review) }() + case 12: try { try decoder.decodeSingularMessageField(value: &_storage._status) }() + case 13: try { try decoder.decodeSingularStringField(value: &_storage._name) }() + case 14: try { try decoder.decodeSingularMessageField(value: &_storage._aiAssistParams) }() + case 15: try { try decoder.decodeSingularMessageField(value: &_storage._visibility) }() + case 16: try { try decoder.decodeSingularStringField(value: &_storage._appID) }() + case 17: try { try decoder.decodeSingularStringField(value: &_storage._userID) }() + case 18: try { try decoder.decodeSingularStringField(value: &_storage._labelOrderID) }() + case 19: try { try decoder.decodeRepeatedMessageField(value: &_storage._concepts) }() + case 20: try { try decoder.decodeSingularBoolField(value: &_storage._deletePreviousAnnotations) }() + case 21: try { try decoder.decodeSingularMessageField(value: &_storage._metrics) }() + case 23: try { try decoder.decodeSingularEnumField(value: &_storage._priority) }() + case 24: try { try decoder.decodeSingularMessageField(value: &_storage._metadata) }() default: break } } @@ -24755,385 +23815,131 @@ extension Clarifai_Api_TaskAssignment: SwiftProtobuf.Message, SwiftProtobuf._Mes try { if let v = _storage._modifiedAt { try visitor.visitSingularMessageField(value: v, fieldNumber: 3) } }() + if _storage._type != .typeNotSet { + try visitor.visitSingularEnumField(value: _storage._type, fieldNumber: 4) + } + if !_storage._description_p.isEmpty { + try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 5) + } try { if let v = _storage._worker { - try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) } }() - try { if let v = _storage._input { - try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + if !_storage._conceptIds.isEmpty { + try visitor.visitRepeatedStringField(value: _storage._conceptIds, fieldNumber: 7) + } + try { if let v = _storage._inputSource { + try visitor.visitSingularMessageField(value: v, fieldNumber: 8) + } }() + if _storage._sampleMs != 0 { + try visitor.visitSingularUInt32Field(value: _storage._sampleMs, fieldNumber: 9) + } + try { if let v = _storage._aiAssistant { + try visitor.visitSingularMessageField(value: v, fieldNumber: 10) + } }() + try { if let v = _storage._review { + try visitor.visitSingularMessageField(value: v, fieldNumber: 11) } }() try { if let v = _storage._status { - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + try visitor.visitSingularMessageField(value: v, fieldNumber: 12) } }() - } - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_TaskAssignment, rhs: Clarifai_Api_TaskAssignment) -> 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._modifiedAt != rhs_storage._modifiedAt {return false} - if _storage._worker != rhs_storage._worker {return false} - if _storage._input != rhs_storage._input {return false} - if _storage._status != rhs_storage._status {return false} - return true + if !_storage._name.isEmpty { + try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 13) } - if !storagesAreEqual {return false} - } - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Clarifai_Api_TaskStatusCountPerUser: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".TaskStatusCountPerUser" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "user_id"), - 2: .same(proto: "pending"), - 3: .standard(proto: "awaiting_review"), - 4: .same(proto: "success"), - 5: .standard(proto: "review_denied"), - 6: .standard(proto: "awaiting_consensus_review"), - 7: .same(proto: "worker"), - ] - - 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.userID) }() - case 2: try { try decoder.decodeSingularUInt32Field(value: &self.pending) }() - case 3: try { try decoder.decodeSingularUInt32Field(value: &self.awaitingReview) }() - case 4: try { try decoder.decodeSingularUInt32Field(value: &self.success) }() - case 5: try { try decoder.decodeSingularUInt32Field(value: &self.reviewDenied) }() - case 6: try { try decoder.decodeSingularUInt32Field(value: &self.awaitingConsensusReview) }() - case 7: try { try decoder.decodeSingularMessageField(value: &self._worker) }() - default: break + try { if let v = _storage._aiAssistParams { + try visitor.visitSingularMessageField(value: v, fieldNumber: 14) + } }() + try { if let v = _storage._visibility { + try visitor.visitSingularMessageField(value: v, fieldNumber: 15) + } }() + if !_storage._appID.isEmpty { + try visitor.visitSingularStringField(value: _storage._appID, fieldNumber: 16) } - } - } - - 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.userID.isEmpty { - try visitor.visitSingularStringField(value: self.userID, fieldNumber: 1) - } - if self.pending != 0 { - try visitor.visitSingularUInt32Field(value: self.pending, fieldNumber: 2) - } - if self.awaitingReview != 0 { - try visitor.visitSingularUInt32Field(value: self.awaitingReview, fieldNumber: 3) - } - if self.success != 0 { - try visitor.visitSingularUInt32Field(value: self.success, fieldNumber: 4) - } - if self.reviewDenied != 0 { - try visitor.visitSingularUInt32Field(value: self.reviewDenied, fieldNumber: 5) - } - if self.awaitingConsensusReview != 0 { - try visitor.visitSingularUInt32Field(value: self.awaitingConsensusReview, fieldNumber: 6) - } - try { if let v = self._worker { - try visitor.visitSingularMessageField(value: v, fieldNumber: 7) - } }() - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_TaskStatusCountPerUser, rhs: Clarifai_Api_TaskStatusCountPerUser) -> Bool { - if lhs.userID != rhs.userID {return false} - if lhs.pending != rhs.pending {return false} - if lhs.awaitingReview != rhs.awaitingReview {return false} - if lhs.success != rhs.success {return false} - if lhs.reviewDenied != rhs.reviewDenied {return false} - if lhs.awaitingConsensusReview != rhs.awaitingConsensusReview {return false} - if lhs._worker != rhs._worker {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Clarifai_Api_ThresholdRange: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".ThresholdRange" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "is_lower_inclusive"), - 2: .standard(proto: "is_upper_inclusive"), - 3: .same(proto: "lower"), - 4: .same(proto: "upper"), - ] - - 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.decodeSingularBoolField(value: &self.isLowerInclusive) }() - case 2: try { try decoder.decodeSingularBoolField(value: &self.isUpperInclusive) }() - case 3: try { try decoder.decodeSingularFloatField(value: &self.lower) }() - case 4: try { try decoder.decodeSingularFloatField(value: &self.upper) }() - default: break + if !_storage._userID.isEmpty { + try visitor.visitSingularStringField(value: _storage._userID, fieldNumber: 17) } - } - } - - public func traverse(visitor: inout V) throws { - if self.isLowerInclusive != false { - try visitor.visitSingularBoolField(value: self.isLowerInclusive, fieldNumber: 1) - } - if self.isUpperInclusive != false { - try visitor.visitSingularBoolField(value: self.isUpperInclusive, fieldNumber: 2) - } - if self.lower != 0 { - try visitor.visitSingularFloatField(value: self.lower, fieldNumber: 3) - } - if self.upper != 0 { - try visitor.visitSingularFloatField(value: self.upper, fieldNumber: 4) - } - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_ThresholdRange, rhs: Clarifai_Api_ThresholdRange) -> Bool { - if lhs.isLowerInclusive != rhs.isLowerInclusive {return false} - if lhs.isUpperInclusive != rhs.isUpperInclusive {return false} - if lhs.lower != rhs.lower {return false} - if lhs.upper != rhs.upper {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Clarifai_Api_TaskConceptAutoAnnotationConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".TaskConceptAutoAnnotationConfig" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "annotation_data_types"), - 2: .standard(proto: "threshold_range"), - 3: .standard(proto: "status_code"), - ] - - 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.decodeSingularUInt32Field(value: &self.annotationDataTypes) }() - case 2: try { try decoder.decodeSingularMessageField(value: &self._thresholdRange) }() - case 3: try { try decoder.decodeSingularEnumField(value: &self.statusCode) }() - default: break + if !_storage._labelOrderID.isEmpty { + try visitor.visitSingularStringField(value: _storage._labelOrderID, fieldNumber: 18) } - } - } - - 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.annotationDataTypes != 0 { - try visitor.visitSingularUInt32Field(value: self.annotationDataTypes, fieldNumber: 1) - } - try { if let v = self._thresholdRange { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - if self.statusCode != .zero { - try visitor.visitSingularEnumField(value: self.statusCode, fieldNumber: 3) - } - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_TaskConceptAutoAnnotationConfig, rhs: Clarifai_Api_TaskConceptAutoAnnotationConfig) -> Bool { - if lhs.annotationDataTypes != rhs.annotationDataTypes {return false} - if lhs._thresholdRange != rhs._thresholdRange {return false} - if lhs.statusCode != rhs.statusCode {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Clarifai_Api_TaskConcept: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".TaskConcept" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "concept"), - 2: .standard(proto: "auto_annotation_config"), - ] - - 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._concept) }() - case 2: try { try decoder.decodeSingularMessageField(value: &self._autoAnnotationConfig) }() - default: break + if !_storage._concepts.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._concepts, fieldNumber: 19) + } + if _storage._deletePreviousAnnotations != false { + try visitor.visitSingularBoolField(value: _storage._deletePreviousAnnotations, fieldNumber: 20) + } + try { if let v = _storage._metrics { + try visitor.visitSingularMessageField(value: v, fieldNumber: 21) + } }() + if _storage._priority != .notSet { + try visitor.visitSingularEnumField(value: _storage._priority, fieldNumber: 23) } + try { if let v = _storage._metadata { + try visitor.visitSingularMessageField(value: v, fieldNumber: 24) + } }() } - } - - 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._concept { - try visitor.visitSingularMessageField(value: v, fieldNumber: 1) - } }() - try { if let v = self._autoAnnotationConfig { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_TaskConcept, rhs: Clarifai_Api_TaskConcept) -> Bool { - if lhs._concept != rhs._concept {return false} - if lhs._autoAnnotationConfig != rhs._autoAnnotationConfig {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Clarifai_Api_TaskMetrics: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".TaskMetrics" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 2: .same(proto: "work"), - 3: .same(proto: "review"), - 4: .standard(proto: "input_source"), - ] - - 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 2: try { try decoder.decodeSingularMessageField(value: &self._work) }() - case 3: try { try decoder.decodeSingularMessageField(value: &self._review) }() - case 4: try { try decoder.decodeSingularMessageField(value: &self._inputSource) }() - default: break + public static func ==(lhs: Clarifai_Api_Task, rhs: Clarifai_Api_Task) -> 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._modifiedAt != rhs_storage._modifiedAt {return false} + if _storage._type != rhs_storage._type {return false} + if _storage._description_p != rhs_storage._description_p {return false} + if _storage._worker != rhs_storage._worker {return false} + if _storage._conceptIds != rhs_storage._conceptIds {return false} + if _storage._inputSource != rhs_storage._inputSource {return false} + if _storage._sampleMs != rhs_storage._sampleMs {return false} + if _storage._aiAssistant != rhs_storage._aiAssistant {return false} + if _storage._review != rhs_storage._review {return false} + if _storage._status != rhs_storage._status {return false} + if _storage._name != rhs_storage._name {return false} + if _storage._aiAssistParams != rhs_storage._aiAssistParams {return false} + if _storage._visibility != rhs_storage._visibility {return false} + if _storage._appID != rhs_storage._appID {return false} + if _storage._userID != rhs_storage._userID {return false} + if _storage._labelOrderID != rhs_storage._labelOrderID {return false} + if _storage._concepts != rhs_storage._concepts {return false} + if _storage._deletePreviousAnnotations != rhs_storage._deletePreviousAnnotations {return false} + if _storage._metrics != rhs_storage._metrics {return false} + if _storage._priority != rhs_storage._priority {return false} + if _storage._metadata != rhs_storage._metadata {return false} + return true } + if !storagesAreEqual {return false} } - } - - 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._work { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - try { if let v = self._review { - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - } }() - try { if let v = self._inputSource { - try visitor.visitSingularMessageField(value: v, fieldNumber: 4) - } }() - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_TaskMetrics, rhs: Clarifai_Api_TaskMetrics) -> Bool { - if lhs._work != rhs._work {return false} - if lhs._review != rhs._review {return false} - if lhs._inputSource != rhs._inputSource {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_TaskWorkMetrics: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".TaskWorkMetrics" +extension Clarifai_Api_Task.TaskType: SwiftProtobuf._ProtoNameProviding { public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "inputs_count_estimated"), - 2: .standard(proto: "inputs_percent_estimated"), + 0: .same(proto: "TYPE_NOT_SET"), + 1: .same(proto: "CONCEPTS_CLASSIFICATION"), + 2: .same(proto: "BOUNDING_BOX_DETECTION"), + 3: .same(proto: "POLYGON_DETECTION"), ] - - 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.inputsCountEstimated) }() - case 2: try { try decoder.decodeSingularUInt32Field(value: &self.inputsPercentEstimated) }() - default: break - } - } - } - - public func traverse(visitor: inout V) throws { - if self.inputsCountEstimated != 0 { - try visitor.visitSingularUInt64Field(value: self.inputsCountEstimated, fieldNumber: 1) - } - if self.inputsPercentEstimated != 0 { - try visitor.visitSingularUInt32Field(value: self.inputsPercentEstimated, fieldNumber: 2) - } - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_TaskWorkMetrics, rhs: Clarifai_Api_TaskWorkMetrics) -> Bool { - if lhs.inputsCountEstimated != rhs.inputsCountEstimated {return false} - if lhs.inputsPercentEstimated != rhs.inputsPercentEstimated {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } } -extension Clarifai_Api_TaskReviewMetrics: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".TaskReviewMetrics" +extension Clarifai_Api_Task.TaskPriority: SwiftProtobuf._ProtoNameProviding { public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "inputs_count_estimated"), - 3: .standard(proto: "inputs_count_estimated_per_reviewer"), - 2: .standard(proto: "inputs_percent_estimated"), + 0: .same(proto: "TASK_PRIORITY_NOT_SET"), + 1: .same(proto: "LOW"), + 2: .same(proto: "MEDIUM"), + 3: .same(proto: "HIGH"), ] - - 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.inputsCountEstimated) }() - case 2: try { try decoder.decodeSingularUInt32Field(value: &self.inputsPercentEstimated) }() - case 3: try { try decoder.decodeRepeatedUInt64Field(value: &self.inputsCountEstimatedPerReviewer) }() - default: break - } - } - } - - public func traverse(visitor: inout V) throws { - if self.inputsCountEstimated != 0 { - try visitor.visitSingularUInt64Field(value: self.inputsCountEstimated, fieldNumber: 1) - } - if self.inputsPercentEstimated != 0 { - try visitor.visitSingularUInt32Field(value: self.inputsPercentEstimated, fieldNumber: 2) - } - if !self.inputsCountEstimatedPerReviewer.isEmpty { - try visitor.visitPackedUInt64Field(value: self.inputsCountEstimatedPerReviewer, fieldNumber: 3) - } - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_TaskReviewMetrics, rhs: Clarifai_Api_TaskReviewMetrics) -> Bool { - if lhs.inputsCountEstimated != rhs.inputsCountEstimated {return false} - if lhs.inputsCountEstimatedPerReviewer != rhs.inputsCountEstimatedPerReviewer {return false} - if lhs.inputsPercentEstimated != rhs.inputsPercentEstimated {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } } -extension Clarifai_Api_TaskInputSourceMetrics: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".TaskInputSourceMetrics" +extension Clarifai_Api_AiAssistParameters: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".AiAssistParameters" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "inputs_count_estimated"), + 1: .standard(proto: "min_threshold"), + 2: .standard(proto: "max_threshold"), + 3: .standard(proto: "concept_relation_ids"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -25142,36 +23948,44 @@ extension Clarifai_Api_TaskInputSourceMetrics: SwiftProtobuf.Message, SwiftProto // 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.inputsCountEstimated) }() + case 1: try { try decoder.decodeSingularFloatField(value: &self.minThreshold) }() + case 2: try { try decoder.decodeSingularFloatField(value: &self.maxThreshold) }() + case 3: try { try decoder.decodeRepeatedStringField(value: &self.conceptRelationIds) }() default: break } } } public func traverse(visitor: inout V) throws { - if self.inputsCountEstimated != 0 { - try visitor.visitSingularUInt64Field(value: self.inputsCountEstimated, fieldNumber: 1) + if self.minThreshold != 0 { + try visitor.visitSingularFloatField(value: self.minThreshold, fieldNumber: 1) + } + if self.maxThreshold != 0 { + try visitor.visitSingularFloatField(value: self.maxThreshold, fieldNumber: 2) + } + if !self.conceptRelationIds.isEmpty { + try visitor.visitRepeatedStringField(value: self.conceptRelationIds, fieldNumber: 3) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_TaskInputSourceMetrics, rhs: Clarifai_Api_TaskInputSourceMetrics) -> Bool { - if lhs.inputsCountEstimated != rhs.inputsCountEstimated {return false} + public static func ==(lhs: Clarifai_Api_AiAssistParameters, rhs: Clarifai_Api_AiAssistParameters) -> Bool { + if lhs.minThreshold != rhs.minThreshold {return false} + if lhs.maxThreshold != rhs.maxThreshold {return false} + if lhs.conceptRelationIds != rhs.conceptRelationIds {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_Role: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Role" +extension Clarifai_Api_TaskWorker: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".TaskWorker" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .standard(proto: "created_at"), - 3: .standard(proto: "modified_at"), - 4: .same(proto: "name"), - 5: .same(proto: "description"), - 6: .same(proto: "scopes"), - 7: .same(proto: "endpoints"), + 1: .same(proto: "strategy"), + 2: .standard(proto: "user_ids"), + 4: .same(proto: "users"), + 3: .standard(proto: "partitioned_strategy_info"), + 7: .same(proto: "workers"), 8: .same(proto: "type"), ] @@ -25181,13 +23995,23 @@ extension Clarifai_Api_Role: 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.decodeSingularStringField(value: &self.id) }() - case 2: try { try decoder.decodeSingularMessageField(value: &self._createdAt) }() - case 3: try { try decoder.decodeSingularMessageField(value: &self._modifiedAt) }() - case 4: try { try decoder.decodeSingularStringField(value: &self.name) }() - case 5: try { try decoder.decodeSingularStringField(value: &self.description_p) }() - case 6: try { try decoder.decodeRepeatedStringField(value: &self.scopes) }() - case 7: try { try decoder.decodeRepeatedStringField(value: &self.endpoints) }() + case 1: try { try decoder.decodeSingularEnumField(value: &self.strategy) }() + case 2: try { try decoder.decodeRepeatedStringField(value: &self.userIds) }() + case 3: try { + var v: Clarifai_Api_TaskWorkerPartitionedStrategyInfo? + var hadOneofValue = false + if let current = self.strategyInfo { + hadOneofValue = true + if case .partitionedStrategyInfo(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.strategyInfo = .partitionedStrategyInfo(v) + } + }() + case 4: try { try decoder.decodeRepeatedMessageField(value: &self.users) }() + case 7: try { try decoder.decodeRepeatedMessageField(value: &self.workers) }() case 8: try { try decoder.decodeSingularEnumField(value: &self.type) }() default: break } @@ -25199,55 +24023,62 @@ extension Clarifai_Api_Role: SwiftProtobuf.Message, SwiftProtobuf._MessageImplem // 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.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) + if self.strategy != .workerStrategyNotSet { + try visitor.visitSingularEnumField(value: self.strategy, fieldNumber: 1) } - try { if let v = self._createdAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - try { if let v = self._modifiedAt { + if !self.userIds.isEmpty { + try visitor.visitRepeatedStringField(value: self.userIds, fieldNumber: 2) + } + try { if case .partitionedStrategyInfo(let v)? = self.strategyInfo { try visitor.visitSingularMessageField(value: v, fieldNumber: 3) } }() - if !self.name.isEmpty { - try visitor.visitSingularStringField(value: self.name, fieldNumber: 4) - } - if !self.description_p.isEmpty { - try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 5) - } - if !self.scopes.isEmpty { - try visitor.visitRepeatedStringField(value: self.scopes, fieldNumber: 6) + if !self.users.isEmpty { + try visitor.visitRepeatedMessageField(value: self.users, fieldNumber: 4) } - if !self.endpoints.isEmpty { - try visitor.visitRepeatedStringField(value: self.endpoints, fieldNumber: 7) + if !self.workers.isEmpty { + try visitor.visitRepeatedMessageField(value: self.workers, fieldNumber: 7) } - if self.type != .team { + if self.type != .notSet { try visitor.visitSingularEnumField(value: self.type, fieldNumber: 8) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_Role, rhs: Clarifai_Api_Role) -> Bool { - if lhs.id != rhs.id {return false} - if lhs._createdAt != rhs._createdAt {return false} - if lhs._modifiedAt != rhs._modifiedAt {return false} - if lhs.name != rhs.name {return false} - if lhs.description_p != rhs.description_p {return false} - if lhs.scopes != rhs.scopes {return false} - if lhs.endpoints != rhs.endpoints {return false} + public static func ==(lhs: Clarifai_Api_TaskWorker, rhs: Clarifai_Api_TaskWorker) -> Bool { + if lhs.strategy != rhs.strategy {return false} + if lhs.userIds != rhs.userIds {return false} + if lhs.users != rhs.users {return false} + if lhs.strategyInfo != rhs.strategyInfo {return false} + if lhs.workers != rhs.workers {return false} if lhs.type != rhs.type {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_Team: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Team" +extension Clarifai_Api_TaskWorker.TaskWorkerStrategy: SwiftProtobuf._ProtoNameProviding { public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .standard(proto: "created_at"), - 3: .standard(proto: "modified_at"), - 4: .same(proto: "name"), - 5: .standard(proto: "default_role_id"), + 0: .same(proto: "WORKER_STRATEGY_NOT_SET"), + 2: .same(proto: "PARTITIONED"), + 3: .same(proto: "FULL"), + 4: .same(proto: "DYNAMIC"), + ] +} + +extension Clarifai_Api_TaskWorker.WorkerType: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "WORKER_TYPE_NOT_SET"), + 1: .same(proto: "WORKER_HUMAN"), + 2: .same(proto: "WORKER_AUTO"), + ] +} + +extension Clarifai_Api_TaskWorkerPartitionedStrategyInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".TaskWorkerPartitionedStrategyInfo" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "type"), + 2: .standard(proto: "workers_per_input"), + 3: .same(proto: "weights"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -25256,11 +24087,9 @@ extension Clarifai_Api_Team: 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.decodeSingularStringField(value: &self.id) }() - case 2: try { try decoder.decodeSingularMessageField(value: &self._createdAt) }() - case 3: try { try decoder.decodeSingularMessageField(value: &self._modifiedAt) }() - case 4: try { try decoder.decodeSingularStringField(value: &self.name) }() - case 5: try { try decoder.decodeSingularStringField(value: &self.defaultRoleID) }() + case 1: try { try decoder.decodeSingularEnumField(value: &self.type) }() + case 2: try { try decoder.decodeSingularInt32Field(value: &self.workersPerInput) }() + case 3: try { try decoder.decodeSingularMessageField(value: &self._weights) }() default: break } } @@ -25271,171 +24100,90 @@ extension Clarifai_Api_Team: SwiftProtobuf.Message, SwiftProtobuf._MessageImplem // 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.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) + if self.type != .partitionedWorkerStrategyNotSet { + try visitor.visitSingularEnumField(value: self.type, fieldNumber: 1) } - try { if let v = self._createdAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - try { if let v = self._modifiedAt { + if self.workersPerInput != 0 { + try visitor.visitSingularInt32Field(value: self.workersPerInput, fieldNumber: 2) + } + try { if let v = self._weights { try visitor.visitSingularMessageField(value: v, fieldNumber: 3) } }() - if !self.name.isEmpty { - try visitor.visitSingularStringField(value: self.name, fieldNumber: 4) - } - if !self.defaultRoleID.isEmpty { - try visitor.visitSingularStringField(value: self.defaultRoleID, fieldNumber: 5) - } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_Team, rhs: Clarifai_Api_Team) -> Bool { - if lhs.id != rhs.id {return false} - if lhs._createdAt != rhs._createdAt {return false} - if lhs._modifiedAt != rhs._modifiedAt {return false} - if lhs.name != rhs.name {return false} - if lhs.defaultRoleID != rhs.defaultRoleID {return false} + public static func ==(lhs: Clarifai_Api_TaskWorkerPartitionedStrategyInfo, rhs: Clarifai_Api_TaskWorkerPartitionedStrategyInfo) -> Bool { + if lhs.type != rhs.type {return false} + if lhs.workersPerInput != rhs.workersPerInput {return false} + if lhs._weights != rhs._weights {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_Collector: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Collector" +extension Clarifai_Api_TaskWorkerPartitionedStrategyInfo.TaskWorkerPartitionedStrategy: SwiftProtobuf._ProtoNameProviding { public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .same(proto: "description"), - 3: .standard(proto: "created_at"), - 4: .standard(proto: "pre_queue_workflow_id"), - 8: .standard(proto: "pre_queue_random_sample"), - 5: .standard(proto: "post_queue_workflow_id"), - 6: .standard(proto: "collector_source"), - 7: .same(proto: "status"), - 9: .standard(proto: "collect_outputs"), + 0: .same(proto: "PARTITIONED_WORKER_STRATEGY_NOT_SET"), + 1: .same(proto: "EVENLY"), + 2: .same(proto: "WEIGHTED"), ] +} - fileprivate class _StorageClass { - var _id: String = String() - var _description_p: String = String() - var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _preQueueWorkflowID: String = String() - var _preQueueRandomSample: Float = 0 - 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() - - private init() {} - - init(copying source: _StorageClass) { - _id = source._id - _description_p = source._description_p - _createdAt = source._createdAt - _preQueueWorkflowID = source._preQueueWorkflowID - _preQueueRandomSample = source._preQueueRandomSample - _postQueueWorkflowID = source._postQueueWorkflowID - _collectorSource = source._collectorSource - _status = source._status - _collectOutputs = source._collectOutputs - } - } - - fileprivate mutating func _uniqueStorage() -> _StorageClass { - if !isKnownUniquelyReferenced(&_storage) { - _storage = _StorageClass(copying: _storage) - } - return _storage - } +extension Clarifai_Api_TaskInputSource: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".TaskInputSource" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "type"), + 2: .same(proto: "id"), + ] 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.decodeSingularStringField(value: &_storage._id) }() - case 2: try { try decoder.decodeSingularStringField(value: &_storage._description_p) }() - case 3: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() - case 4: try { try decoder.decodeSingularStringField(value: &_storage._preQueueWorkflowID) }() - case 5: try { try decoder.decodeSingularStringField(value: &_storage._postQueueWorkflowID) }() - 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 - } + 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.type) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.id) }() + 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.isEmpty { - try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) - } - if !_storage._description_p.isEmpty { - try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 2) - } - try { if let v = _storage._createdAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - } }() - if !_storage._preQueueWorkflowID.isEmpty { - try visitor.visitSingularStringField(value: _storage._preQueueWorkflowID, fieldNumber: 4) - } - if !_storage._postQueueWorkflowID.isEmpty { - try visitor.visitSingularStringField(value: _storage._postQueueWorkflowID, fieldNumber: 5) - } - try { if let v = _storage._collectorSource { - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) - } }() - try { if let v = _storage._status { - try visitor.visitSingularMessageField(value: v, fieldNumber: 7) - } }() - if _storage._preQueueRandomSample != 0 { - try visitor.visitSingularFloatField(value: _storage._preQueueRandomSample, fieldNumber: 8) - } - if _storage._collectOutputs != false { - try visitor.visitSingularBoolField(value: _storage._collectOutputs, fieldNumber: 9) - } + if self.type != .inputSourceTypeNotSet { + try visitor.visitSingularEnumField(value: self.type, fieldNumber: 1) + } + if !self.id.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 2) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_Collector, rhs: Clarifai_Api_Collector) -> 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._description_p != rhs_storage._description_p {return false} - if _storage._createdAt != rhs_storage._createdAt {return false} - if _storage._preQueueWorkflowID != rhs_storage._preQueueWorkflowID {return false} - if _storage._preQueueRandomSample != rhs_storage._preQueueRandomSample {return false} - 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} - } + public static func ==(lhs: Clarifai_Api_TaskInputSource, rhs: Clarifai_Api_TaskInputSource) -> Bool { + if lhs.type != rhs.type {return false} + if lhs.id != rhs.id {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_CollectorSource: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".CollectorSource" +extension Clarifai_Api_TaskInputSource.TaskInputSourceType: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "INPUT_SOURCE_TYPE_NOT_SET"), + 1: .same(proto: "ALL_INPUTS"), + 2: .same(proto: "SAVED_SEARCH"), + 3: .same(proto: "DATASET"), + ] +} + +extension Clarifai_Api_TaskReview: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".TaskReview" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 2: .standard(proto: "api_post_model_outputs_collector_source"), + 1: .same(proto: "strategy"), + 2: .standard(proto: "user_ids"), + 5: .same(proto: "users"), + 3: .standard(proto: "manual_strategy_info"), + 4: .standard(proto: "consensus_strategy_info"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -25444,7 +24192,35 @@ extension Clarifai_Api_CollectorSource: 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 2: try { try decoder.decodeSingularMessageField(value: &self._apiPostModelOutputsCollectorSource) }() + case 1: try { try decoder.decodeSingularEnumField(value: &self.strategy) }() + case 2: try { try decoder.decodeRepeatedStringField(value: &self.userIds) }() + case 3: try { + var v: Clarifai_Api_TaskReviewManualStrategyInfo? + var hadOneofValue = false + if let current = self.strategyInfo { + hadOneofValue = true + if case .manualStrategyInfo(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.strategyInfo = .manualStrategyInfo(v) + } + }() + case 4: try { + var v: Clarifai_Api_TaskReviewConsensusStrategyInfo? + var hadOneofValue = false + if let current = self.strategyInfo { + hadOneofValue = true + if case .consensusStrategyInfo(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.strategyInfo = .consensusStrategyInfo(v) + } + }() + case 5: try { try decoder.decodeRepeatedMessageField(value: &self.users) }() default: break } } @@ -25455,28 +24231,53 @@ extension Clarifai_Api_CollectorSource: SwiftProtobuf.Message, SwiftProtobuf._Me // 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._apiPostModelOutputsCollectorSource { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() + if self.strategy != .notSet { + try visitor.visitSingularEnumField(value: self.strategy, fieldNumber: 1) + } + if !self.userIds.isEmpty { + try visitor.visitRepeatedStringField(value: self.userIds, fieldNumber: 2) + } + switch self.strategyInfo { + case .manualStrategyInfo?: try { + guard case .manualStrategyInfo(let v)? = self.strategyInfo else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + }() + case .consensusStrategyInfo?: try { + guard case .consensusStrategyInfo(let v)? = self.strategyInfo else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + }() + case nil: break + } + if !self.users.isEmpty { + try visitor.visitRepeatedMessageField(value: self.users, fieldNumber: 5) + } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_CollectorSource, rhs: Clarifai_Api_CollectorSource) -> Bool { - if lhs._apiPostModelOutputsCollectorSource != rhs._apiPostModelOutputsCollectorSource {return false} + public static func ==(lhs: Clarifai_Api_TaskReview, rhs: Clarifai_Api_TaskReview) -> Bool { + if lhs.strategy != rhs.strategy {return false} + if lhs.userIds != rhs.userIds {return false} + if lhs.users != rhs.users {return false} + if lhs.strategyInfo != rhs.strategyInfo {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_APIPostModelOutputsCollectorSource: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".APIPostModelOutputsCollectorSource" +extension Clarifai_Api_TaskReview.TaskReviewStrategy: SwiftProtobuf._ProtoNameProviding { public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "model_user_id"), - 2: .standard(proto: "model_app_id"), - 3: .standard(proto: "model_id"), - 4: .standard(proto: "model_version_id"), - 5: .standard(proto: "post_inputs_key_id"), - 6: .standard(proto: "caller_user_id"), + 0: .same(proto: "TASK_REVIEW_STRATEGY_NOT_SET"), + 1: .same(proto: "NONE"), + 2: .same(proto: "MANUAL"), + 3: .same(proto: "CONSENSUS"), + ] +} + +extension Clarifai_Api_TaskReviewManualStrategyInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".TaskReviewManualStrategyInfo" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "sample_percentage"), + 2: .standard(proto: "approval_threshold"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -25485,57 +24286,37 @@ extension Clarifai_Api_APIPostModelOutputsCollectorSource: 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.decodeSingularStringField(value: &self.modelUserID) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.modelAppID) }() - case 3: try { try decoder.decodeSingularStringField(value: &self.modelID) }() - case 4: try { try decoder.decodeSingularStringField(value: &self.modelVersionID) }() - case 5: try { try decoder.decodeSingularStringField(value: &self.postInputsKeyID) }() - case 6: try { try decoder.decodeSingularStringField(value: &self.callerUserID) }() + case 1: try { try decoder.decodeSingularFloatField(value: &self.samplePercentage) }() + case 2: try { try decoder.decodeSingularInt32Field(value: &self.approvalThreshold) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.modelUserID.isEmpty { - try visitor.visitSingularStringField(value: self.modelUserID, fieldNumber: 1) - } - if !self.modelAppID.isEmpty { - try visitor.visitSingularStringField(value: self.modelAppID, fieldNumber: 2) - } - if !self.modelID.isEmpty { - try visitor.visitSingularStringField(value: self.modelID, fieldNumber: 3) - } - if !self.modelVersionID.isEmpty { - try visitor.visitSingularStringField(value: self.modelVersionID, fieldNumber: 4) - } - if !self.postInputsKeyID.isEmpty { - try visitor.visitSingularStringField(value: self.postInputsKeyID, fieldNumber: 5) + if self.samplePercentage != 0 { + try visitor.visitSingularFloatField(value: self.samplePercentage, fieldNumber: 1) } - if !self.callerUserID.isEmpty { - try visitor.visitSingularStringField(value: self.callerUserID, fieldNumber: 6) + if self.approvalThreshold != 0 { + try visitor.visitSingularInt32Field(value: self.approvalThreshold, fieldNumber: 2) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_APIPostModelOutputsCollectorSource, rhs: Clarifai_Api_APIPostModelOutputsCollectorSource) -> Bool { - if lhs.modelUserID != rhs.modelUserID {return false} - if lhs.modelAppID != rhs.modelAppID {return false} - if lhs.modelID != rhs.modelID {return false} - if lhs.modelVersionID != rhs.modelVersionID {return false} - if lhs.postInputsKeyID != rhs.postInputsKeyID {return false} - if lhs.callerUserID != rhs.callerUserID {return false} + public static func ==(lhs: Clarifai_Api_TaskReviewManualStrategyInfo, rhs: Clarifai_Api_TaskReviewManualStrategyInfo) -> Bool { + if lhs.samplePercentage != rhs.samplePercentage {return false} + if lhs.approvalThreshold != rhs.approvalThreshold {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_StatValue: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".StatValue" +extension Clarifai_Api_TaskReviewConsensusStrategyInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".TaskReviewConsensusStrategyInfo" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "time"), - 2: .same(proto: "value"), - 3: .same(proto: "tags"), + 2: .standard(proto: "approval_threshold"), + 3: .standard(proto: "approval_threshold_labelers"), + 4: .standard(proto: "approval_threshold_reviewers"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -25544,45 +24325,40 @@ extension Clarifai_Api_StatValue: 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.decodeSingularMessageField(value: &self._time) }() - case 2: try { try decoder.decodeSingularFloatField(value: &self.value) }() - case 3: try { try decoder.decodeRepeatedStringField(value: &self.tags) }() + 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 } } } 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._time { - try visitor.visitSingularMessageField(value: v, fieldNumber: 1) - } }() - if self.value != 0 { - try visitor.visitSingularFloatField(value: self.value, fieldNumber: 2) + if self.approvalThreshold != 0 { + try visitor.visitSingularUInt32Field(value: self.approvalThreshold, fieldNumber: 2) } - if !self.tags.isEmpty { - try visitor.visitRepeatedStringField(value: self.tags, fieldNumber: 3) + 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_StatValue, rhs: Clarifai_Api_StatValue) -> Bool { - if lhs._time != rhs._time {return false} - if lhs.value != rhs.value {return false} - if lhs.tags != rhs.tags {return false} + 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 } } -extension Clarifai_Api_StatValueAggregateResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".StatValueAggregateResult" +extension Clarifai_Api_TaskAIAssistant: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".TaskAIAssistant" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "stat_value_aggregates"), - 2: .standard(proto: "stat_value_aggregate_query"), + 1: .standard(proto: "workflow_id"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -25591,42 +24367,144 @@ extension Clarifai_Api_StatValueAggregateResult: 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.decodeRepeatedMessageField(value: &self.statValueAggregates) }() - case 2: try { try decoder.decodeSingularMessageField(value: &self._statValueAggregateQuery) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.workflowID) }() 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.statValueAggregates.isEmpty { - try visitor.visitRepeatedMessageField(value: self.statValueAggregates, fieldNumber: 1) + if !self.workflowID.isEmpty { + try visitor.visitSingularStringField(value: self.workflowID, fieldNumber: 1) + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Clarifai_Api_TaskAIAssistant, rhs: Clarifai_Api_TaskAIAssistant) -> Bool { + if lhs.workflowID != rhs.workflowID {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Clarifai_Api_TaskAssignment: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".TaskAssignment" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "id"), + 2: .standard(proto: "created_at"), + 3: .standard(proto: "modified_at"), + 4: .same(proto: "worker"), + 5: .same(proto: "input"), + 6: .same(proto: "status"), + ] + + fileprivate class _StorageClass { + var _id: String = String() + var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _modifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _worker: Clarifai_Api_Worker? = nil + var _input: Clarifai_Api_Input? = nil + var _status: Clarifai_Api_Status_Status? = nil + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _id = source._id + _createdAt = source._createdAt + _modifiedAt = source._modifiedAt + _worker = source._worker + _input = source._input + _status = source._status + } + } + + 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.decodeSingularStringField(value: &_storage._id) }() + case 2: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() + case 3: try { try decoder.decodeSingularMessageField(value: &_storage._modifiedAt) }() + case 4: try { try decoder.decodeSingularMessageField(value: &_storage._worker) }() + case 5: try { try decoder.decodeSingularMessageField(value: &_storage._input) }() + case 6: try { try decoder.decodeSingularMessageField(value: &_storage._status) }() + 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.isEmpty { + try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) + } + try { if let v = _storage._createdAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + try { if let v = _storage._modifiedAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + } }() + try { if let v = _storage._worker { + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + } }() + try { if let v = _storage._input { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } }() + try { if let v = _storage._status { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + } }() } - try { if let v = self._statValueAggregateQuery { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_StatValueAggregateResult, rhs: Clarifai_Api_StatValueAggregateResult) -> Bool { - if lhs.statValueAggregates != rhs.statValueAggregates {return false} - if lhs._statValueAggregateQuery != rhs._statValueAggregateQuery {return false} + public static func ==(lhs: Clarifai_Api_TaskAssignment, rhs: Clarifai_Api_TaskAssignment) -> 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._modifiedAt != rhs_storage._modifiedAt {return false} + if _storage._worker != rhs_storage._worker {return false} + if _storage._input != rhs_storage._input {return false} + if _storage._status != rhs_storage._status {return false} + return true + } + if !storagesAreEqual {return false} + } if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_StatValueAggregate: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".StatValueAggregate" +extension Clarifai_Api_TaskStatusCountPerUser: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".TaskStatusCountPerUser" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "time"), - 2: .standard(proto: "aggregate_value"), - 3: .same(proto: "count"), - 4: .same(proto: "tags"), + 1: .standard(proto: "user_id"), + 2: .same(proto: "pending"), + 3: .standard(proto: "awaiting_review"), + 4: .same(proto: "success"), + 5: .standard(proto: "review_denied"), + 6: .standard(proto: "awaiting_consensus_review"), + 7: .same(proto: "worker"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -25635,10 +24513,13 @@ extension Clarifai_Api_StatValueAggregate: SwiftProtobuf.Message, SwiftProtobuf. // 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._time) }() - case 2: try { try decoder.decodeSingularFloatField(value: &self.aggregateValue) }() - case 3: try { try decoder.decodeSingularUInt64Field(value: &self.count) }() - case 4: try { try decoder.decodeRepeatedStringField(value: &self.tags) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.userID) }() + case 2: try { try decoder.decodeSingularUInt32Field(value: &self.pending) }() + case 3: try { try decoder.decodeSingularUInt32Field(value: &self.awaitingReview) }() + case 4: try { try decoder.decodeSingularUInt32Field(value: &self.success) }() + case 5: try { try decoder.decodeSingularUInt32Field(value: &self.reviewDenied) }() + case 6: try { try decoder.decodeSingularUInt32Field(value: &self.awaitingConsensusReview) }() + case 7: try { try decoder.decodeSingularMessageField(value: &self._worker) }() default: break } } @@ -25649,40 +24530,50 @@ extension Clarifai_Api_StatValueAggregate: SwiftProtobuf.Message, SwiftProtobuf. // 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._time { - try visitor.visitSingularMessageField(value: v, fieldNumber: 1) - } }() - if self.aggregateValue != 0 { - try visitor.visitSingularFloatField(value: self.aggregateValue, fieldNumber: 2) + if !self.userID.isEmpty { + try visitor.visitSingularStringField(value: self.userID, fieldNumber: 1) } - if self.count != 0 { - try visitor.visitSingularUInt64Field(value: self.count, fieldNumber: 3) + if self.pending != 0 { + try visitor.visitSingularUInt32Field(value: self.pending, fieldNumber: 2) } - if !self.tags.isEmpty { - try visitor.visitRepeatedStringField(value: self.tags, fieldNumber: 4) + if self.awaitingReview != 0 { + try visitor.visitSingularUInt32Field(value: self.awaitingReview, fieldNumber: 3) + } + if self.success != 0 { + try visitor.visitSingularUInt32Field(value: self.success, fieldNumber: 4) + } + if self.reviewDenied != 0 { + try visitor.visitSingularUInt32Field(value: self.reviewDenied, fieldNumber: 5) + } + if self.awaitingConsensusReview != 0 { + try visitor.visitSingularUInt32Field(value: self.awaitingConsensusReview, fieldNumber: 6) } + try { if let v = self._worker { + try visitor.visitSingularMessageField(value: v, fieldNumber: 7) + } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_StatValueAggregate, rhs: Clarifai_Api_StatValueAggregate) -> Bool { - if lhs._time != rhs._time {return false} - if lhs.aggregateValue != rhs.aggregateValue {return false} - if lhs.count != rhs.count {return false} - if lhs.tags != rhs.tags {return false} + public static func ==(lhs: Clarifai_Api_TaskStatusCountPerUser, rhs: Clarifai_Api_TaskStatusCountPerUser) -> Bool { + if lhs.userID != rhs.userID {return false} + if lhs.pending != rhs.pending {return false} + if lhs.awaitingReview != rhs.awaitingReview {return false} + if lhs.success != rhs.success {return false} + if lhs.reviewDenied != rhs.reviewDenied {return false} + if lhs.awaitingConsensusReview != rhs.awaitingConsensusReview {return false} + if lhs._worker != rhs._worker {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_StatValueAggregateQuery: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".StatValueAggregateQuery" +extension Clarifai_Api_ThresholdRange: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".ThresholdRange" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "tags"), - 2: .standard(proto: "tag_groups"), - 3: .standard(proto: "stat_value_agg_type"), - 4: .standard(proto: "stat_time_agg_type"), - 5: .standard(proto: "start_time"), - 6: .standard(proto: "end_time"), + 1: .standard(proto: "is_lower_inclusive"), + 2: .standard(proto: "is_upper_inclusive"), + 3: .same(proto: "lower"), + 4: .same(proto: "upper"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -25691,60 +24582,47 @@ extension Clarifai_Api_StatValueAggregateQuery: SwiftProtobuf.Message, SwiftProt // 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.decodeRepeatedStringField(value: &self.tags) }() - case 2: try { try decoder.decodeRepeatedStringField(value: &self.tagGroups) }() - case 3: try { try decoder.decodeSingularEnumField(value: &self.statValueAggType) }() - case 4: try { try decoder.decodeSingularEnumField(value: &self.statTimeAggType) }() - case 5: try { try decoder.decodeSingularMessageField(value: &self._startTime) }() - case 6: try { try decoder.decodeSingularMessageField(value: &self._endTime) }() + case 1: try { try decoder.decodeSingularBoolField(value: &self.isLowerInclusive) }() + case 2: try { try decoder.decodeSingularBoolField(value: &self.isUpperInclusive) }() + case 3: try { try decoder.decodeSingularFloatField(value: &self.lower) }() + case 4: try { try decoder.decodeSingularFloatField(value: &self.upper) }() 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.tags.isEmpty { - try visitor.visitRepeatedStringField(value: self.tags, fieldNumber: 1) + if self.isLowerInclusive != false { + try visitor.visitSingularBoolField(value: self.isLowerInclusive, fieldNumber: 1) } - if !self.tagGroups.isEmpty { - try visitor.visitRepeatedStringField(value: self.tagGroups, fieldNumber: 2) + if self.isUpperInclusive != false { + try visitor.visitSingularBoolField(value: self.isUpperInclusive, fieldNumber: 2) } - if self.statValueAggType != .sum { - try visitor.visitSingularEnumField(value: self.statValueAggType, fieldNumber: 3) + if self.lower != 0 { + try visitor.visitSingularFloatField(value: self.lower, fieldNumber: 3) } - if self.statTimeAggType != .noTimeAgg { - try visitor.visitSingularEnumField(value: self.statTimeAggType, fieldNumber: 4) + if self.upper != 0 { + try visitor.visitSingularFloatField(value: self.upper, fieldNumber: 4) } - try { if let v = self._startTime { - try visitor.visitSingularMessageField(value: v, fieldNumber: 5) - } }() - try { if let v = self._endTime { - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) - } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_StatValueAggregateQuery, rhs: Clarifai_Api_StatValueAggregateQuery) -> Bool { - if lhs.tags != rhs.tags {return false} - if lhs.tagGroups != rhs.tagGroups {return false} - if lhs.statValueAggType != rhs.statValueAggType {return false} - if lhs.statTimeAggType != rhs.statTimeAggType {return false} - if lhs._startTime != rhs._startTime {return false} - if lhs._endTime != rhs._endTime {return false} + public static func ==(lhs: Clarifai_Api_ThresholdRange, rhs: Clarifai_Api_ThresholdRange) -> Bool { + if lhs.isLowerInclusive != rhs.isLowerInclusive {return false} + if lhs.isUpperInclusive != rhs.isUpperInclusive {return false} + if lhs.lower != rhs.lower {return false} + if lhs.upper != rhs.upper {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_PCAProjectionComparator: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".PCAProjectionComparator" +extension Clarifai_Api_TaskConceptAutoAnnotationConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".TaskConceptAutoAnnotationConfig" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "distance_threshold"), - 2: .standard(proto: "model_version_id"), + 1: .standard(proto: "annotation_data_types"), + 2: .standard(proto: "threshold_range"), + 3: .standard(proto: "status_code"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -25753,36 +24631,45 @@ extension Clarifai_Api_PCAProjectionComparator: SwiftProtobuf.Message, SwiftProt // 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.decodeSingularFloatField(value: &self.distanceThreshold) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.modelVersionID) }() + case 1: try { try decoder.decodeSingularUInt32Field(value: &self.annotationDataTypes) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._thresholdRange) }() + case 3: try { try decoder.decodeSingularEnumField(value: &self.statusCode) }() default: break } } } public func traverse(visitor: inout V) throws { - if self.distanceThreshold != 0 { - try visitor.visitSingularFloatField(value: self.distanceThreshold, fieldNumber: 1) + // 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.annotationDataTypes != 0 { + try visitor.visitSingularUInt32Field(value: self.annotationDataTypes, fieldNumber: 1) } - if !self.modelVersionID.isEmpty { - try visitor.visitSingularStringField(value: self.modelVersionID, fieldNumber: 2) + try { if let v = self._thresholdRange { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + if self.statusCode != .zero { + try visitor.visitSingularEnumField(value: self.statusCode, fieldNumber: 3) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_PCAProjectionComparator, rhs: Clarifai_Api_PCAProjectionComparator) -> Bool { - if lhs.distanceThreshold != rhs.distanceThreshold {return false} - if lhs.modelVersionID != rhs.modelVersionID {return false} + public static func ==(lhs: Clarifai_Api_TaskConceptAutoAnnotationConfig, rhs: Clarifai_Api_TaskConceptAutoAnnotationConfig) -> Bool { + if lhs.annotationDataTypes != rhs.annotationDataTypes {return false} + if lhs._thresholdRange != rhs._thresholdRange {return false} + if lhs.statusCode != rhs.statusCode {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_DuplicateAnnotationsResults: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".DuplicateAnnotationsResults" +extension Clarifai_Api_TaskConcept: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".TaskConcept" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "duplicate_cfid"), - 2: .standard(proto: "unique_count"), + 1: .same(proto: "concept"), + 2: .standard(proto: "auto_annotation_config"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -25791,35 +24678,41 @@ extension Clarifai_Api_DuplicateAnnotationsResults: SwiftProtobuf.Message, Swift // 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.decodeRepeatedStringField(value: &self.duplicateCfid) }() - case 2: try { try decoder.decodeSingularInt32Field(value: &self.uniqueCount) }() + case 1: try { try decoder.decodeSingularMessageField(value: &self._concept) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._autoAnnotationConfig) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.duplicateCfid.isEmpty { - try visitor.visitRepeatedStringField(value: self.duplicateCfid, fieldNumber: 1) - } - if self.uniqueCount != 0 { - try visitor.visitSingularInt32Field(value: self.uniqueCount, fieldNumber: 2) - } + // 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._concept { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } }() + try { if let v = self._autoAnnotationConfig { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_DuplicateAnnotationsResults, rhs: Clarifai_Api_DuplicateAnnotationsResults) -> Bool { - if lhs.duplicateCfid != rhs.duplicateCfid {return false} - if lhs.uniqueCount != rhs.uniqueCount {return false} + public static func ==(lhs: Clarifai_Api_TaskConcept, rhs: Clarifai_Api_TaskConcept) -> Bool { + if lhs._concept != rhs._concept {return false} + if lhs._autoAnnotationConfig != rhs._autoAnnotationConfig {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_Visibility: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Visibility" +extension Clarifai_Api_TaskMetrics: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".TaskMetrics" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "gettable"), + 2: .same(proto: "work"), + 3: .same(proto: "review"), + 4: .standard(proto: "input_source"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -25828,40 +24721,45 @@ extension Clarifai_Api_Visibility: 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.decodeSingularEnumField(value: &self.gettable) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._work) }() + case 3: try { try decoder.decodeSingularMessageField(value: &self._review) }() + case 4: try { try decoder.decodeSingularMessageField(value: &self._inputSource) }() default: break } } } public func traverse(visitor: inout V) throws { - if self.gettable != .unknownVisibility { - try visitor.visitSingularEnumField(value: self.gettable, fieldNumber: 1) - } + // 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._work { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + try { if let v = self._review { + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + } }() + try { if let v = self._inputSource { + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_Visibility, rhs: Clarifai_Api_Visibility) -> Bool { - if lhs.gettable != rhs.gettable {return false} + public static func ==(lhs: Clarifai_Api_TaskMetrics, rhs: Clarifai_Api_TaskMetrics) -> Bool { + if lhs._work != rhs._work {return false} + if lhs._review != rhs._review {return false} + if lhs._inputSource != rhs._inputSource {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_Visibility.Gettable: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "UNKNOWN_VISIBILITY"), - 10: .same(proto: "PRIVATE"), - 30: .same(proto: "ORG"), - 50: .same(proto: "PUBLIC"), - ] -} - -extension Clarifai_Api_FullTag: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".FullTag" +extension Clarifai_Api_TaskWorkMetrics: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".TaskWorkMetrics" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "name"), - 2: .same(proto: "id"), + 1: .standard(proto: "inputs_count_estimated"), + 2: .standard(proto: "inputs_percent_estimated"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -25870,37 +24768,37 @@ extension Clarifai_Api_FullTag: SwiftProtobuf.Message, SwiftProtobuf._MessageImp // 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.decodeSingularStringField(value: &self.id) }() + case 1: try { try decoder.decodeSingularUInt64Field(value: &self.inputsCountEstimated) }() + case 2: try { try decoder.decodeSingularUInt32Field(value: &self.inputsPercentEstimated) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.name.isEmpty { - try visitor.visitSingularStringField(value: self.name, fieldNumber: 1) + if self.inputsCountEstimated != 0 { + try visitor.visitSingularUInt64Field(value: self.inputsCountEstimated, fieldNumber: 1) } - if !self.id.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 2) + if self.inputsPercentEstimated != 0 { + try visitor.visitSingularUInt32Field(value: self.inputsPercentEstimated, fieldNumber: 2) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_FullTag, rhs: Clarifai_Api_FullTag) -> Bool { - if lhs.name != rhs.name {return false} - if lhs.id != rhs.id {return false} + public static func ==(lhs: Clarifai_Api_TaskWorkMetrics, rhs: Clarifai_Api_TaskWorkMetrics) -> Bool { + if lhs.inputsCountEstimated != rhs.inputsCountEstimated {return false} + if lhs.inputsPercentEstimated != rhs.inputsPercentEstimated {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_TimeSegment: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".TimeSegment" +extension Clarifai_Api_TaskReviewMetrics: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".TaskReviewMetrics" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .same(proto: "data"), - 3: .standard(proto: "time_info"), + 1: .standard(proto: "inputs_count_estimated"), + 3: .standard(proto: "inputs_count_estimated_per_reviewer"), + 2: .standard(proto: "inputs_percent_estimated"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -25909,46 +24807,40 @@ extension Clarifai_Api_TimeSegment: SwiftProtobuf.Message, SwiftProtobuf._Messag // 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.id) }() - case 2: try { try decoder.decodeSingularMessageField(value: &self._data) }() - case 3: try { try decoder.decodeSingularMessageField(value: &self._timeInfo) }() + case 1: try { try decoder.decodeSingularUInt64Field(value: &self.inputsCountEstimated) }() + case 2: try { try decoder.decodeSingularUInt32Field(value: &self.inputsPercentEstimated) }() + case 3: try { try decoder.decodeRepeatedUInt64Field(value: &self.inputsCountEstimatedPerReviewer) }() 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.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) + if self.inputsCountEstimated != 0 { + try visitor.visitSingularUInt64Field(value: self.inputsCountEstimated, fieldNumber: 1) + } + if self.inputsPercentEstimated != 0 { + try visitor.visitSingularUInt32Field(value: self.inputsPercentEstimated, fieldNumber: 2) + } + if !self.inputsCountEstimatedPerReviewer.isEmpty { + try visitor.visitPackedUInt64Field(value: self.inputsCountEstimatedPerReviewer, fieldNumber: 3) } - try { if let v = self._data { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - try { if let v = self._timeInfo { - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_TimeSegment, rhs: Clarifai_Api_TimeSegment) -> Bool { - if lhs.id != rhs.id {return false} - if lhs._data != rhs._data {return false} - if lhs._timeInfo != rhs._timeInfo {return false} + public static func ==(lhs: Clarifai_Api_TaskReviewMetrics, rhs: Clarifai_Api_TaskReviewMetrics) -> Bool { + if lhs.inputsCountEstimated != rhs.inputsCountEstimated {return false} + if lhs.inputsCountEstimatedPerReviewer != rhs.inputsCountEstimatedPerReviewer {return false} + if lhs.inputsPercentEstimated != rhs.inputsPercentEstimated {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_TimeInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".TimeInfo" +extension Clarifai_Api_TaskInputSourceMetrics: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".TaskInputSourceMetrics" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "num_frames"), - 4: .standard(proto: "begin_time"), - 5: .standard(proto: "end_time"), + 1: .standard(proto: "inputs_count_estimated"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -25957,40 +24849,37 @@ extension Clarifai_Api_TimeInfo: 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.decodeSingularUInt32Field(value: &self.numFrames) }() - case 4: try { try decoder.decodeSingularFloatField(value: &self.beginTime) }() - case 5: try { try decoder.decodeSingularFloatField(value: &self.endTime) }() + case 1: try { try decoder.decodeSingularUInt64Field(value: &self.inputsCountEstimated) }() default: break } } } public func traverse(visitor: inout V) throws { - if self.numFrames != 0 { - try visitor.visitSingularUInt32Field(value: self.numFrames, fieldNumber: 1) - } - if self.beginTime != 0 { - try visitor.visitSingularFloatField(value: self.beginTime, fieldNumber: 4) - } - if self.endTime != 0 { - try visitor.visitSingularFloatField(value: self.endTime, fieldNumber: 5) + if self.inputsCountEstimated != 0 { + try visitor.visitSingularUInt64Field(value: self.inputsCountEstimated, fieldNumber: 1) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_TimeInfo, rhs: Clarifai_Api_TimeInfo) -> Bool { - if lhs.numFrames != rhs.numFrames {return false} - if lhs.beginTime != rhs.beginTime {return false} - if lhs.endTime != rhs.endTime {return false} + public static func ==(lhs: Clarifai_Api_TaskInputSourceMetrics, rhs: Clarifai_Api_TaskInputSourceMetrics) -> Bool { + if lhs.inputsCountEstimated != rhs.inputsCountEstimated {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_DatasetStar: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".DatasetStar" +extension Clarifai_Api_Role: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Role" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "dataset_id"), + 1: .same(proto: "id"), + 2: .standard(proto: "created_at"), + 3: .standard(proto: "modified_at"), + 4: .same(proto: "name"), + 5: .same(proto: "description"), + 6: .same(proto: "scopes"), + 7: .same(proto: "endpoints"), + 8: .same(proto: "type"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -25999,30 +24888,73 @@ extension Clarifai_Api_DatasetStar: SwiftProtobuf.Message, SwiftProtobuf._Messag // 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.datasetID) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._createdAt) }() + case 3: try { try decoder.decodeSingularMessageField(value: &self._modifiedAt) }() + case 4: try { try decoder.decodeSingularStringField(value: &self.name) }() + case 5: try { try decoder.decodeSingularStringField(value: &self.description_p) }() + case 6: try { try decoder.decodeRepeatedStringField(value: &self.scopes) }() + case 7: try { try decoder.decodeRepeatedStringField(value: &self.endpoints) }() + case 8: try { try decoder.decodeSingularEnumField(value: &self.type) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.datasetID.isEmpty { - try visitor.visitSingularStringField(value: self.datasetID, fieldNumber: 1) + // 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.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) + } + try { if let v = self._createdAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + try { if let v = self._modifiedAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + } }() + if !self.name.isEmpty { + try visitor.visitSingularStringField(value: self.name, fieldNumber: 4) + } + if !self.description_p.isEmpty { + try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 5) + } + if !self.scopes.isEmpty { + try visitor.visitRepeatedStringField(value: self.scopes, fieldNumber: 6) + } + if !self.endpoints.isEmpty { + try visitor.visitRepeatedStringField(value: self.endpoints, fieldNumber: 7) + } + if self.type != .team { + try visitor.visitSingularEnumField(value: self.type, fieldNumber: 8) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_DatasetStar, rhs: Clarifai_Api_DatasetStar) -> Bool { - if lhs.datasetID != rhs.datasetID {return false} + public static func ==(lhs: Clarifai_Api_Role, rhs: Clarifai_Api_Role) -> Bool { + if lhs.id != rhs.id {return false} + if lhs._createdAt != rhs._createdAt {return false} + if lhs._modifiedAt != rhs._modifiedAt {return false} + if lhs.name != rhs.name {return false} + if lhs.description_p != rhs.description_p {return false} + if lhs.scopes != rhs.scopes {return false} + if lhs.endpoints != rhs.endpoints {return false} + if lhs.type != rhs.type {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_ModuleStar: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".ModuleStar" +extension Clarifai_Api_Team: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Team" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "module_id"), + 1: .same(proto: "id"), + 2: .standard(proto: "created_at"), + 3: .standard(proto: "modified_at"), + 4: .same(proto: "name"), + 5: .standard(proto: "default_role_id"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -26031,58 +24963,74 @@ extension Clarifai_Api_ModuleStar: 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.decodeSingularStringField(value: &self.moduleID) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._createdAt) }() + case 3: try { try decoder.decodeSingularMessageField(value: &self._modifiedAt) }() + case 4: try { try decoder.decodeSingularStringField(value: &self.name) }() + case 5: try { try decoder.decodeSingularStringField(value: &self.defaultRoleID) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.moduleID.isEmpty { - try visitor.visitSingularStringField(value: self.moduleID, fieldNumber: 1) + // 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.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) + } + try { if let v = self._createdAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + try { if let v = self._modifiedAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + } }() + if !self.name.isEmpty { + try visitor.visitSingularStringField(value: self.name, fieldNumber: 4) + } + if !self.defaultRoleID.isEmpty { + try visitor.visitSingularStringField(value: self.defaultRoleID, fieldNumber: 5) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_ModuleStar, rhs: Clarifai_Api_ModuleStar) -> Bool { - if lhs.moduleID != rhs.moduleID {return false} + public static func ==(lhs: Clarifai_Api_Team, rhs: Clarifai_Api_Team) -> Bool { + if lhs.id != rhs.id {return false} + if lhs._createdAt != rhs._createdAt {return false} + if lhs._modifiedAt != rhs._modifiedAt {return false} + if lhs.name != rhs.name {return false} + if lhs.defaultRoleID != rhs.defaultRoleID {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_Module: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Module" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 3: .same(proto: "description"), - 4: .standard(proto: "created_at"), - 5: .standard(proto: "modified_at"), - 7: .same(proto: "visibility"), - 8: .same(proto: "metadata"), - 9: .standard(proto: "user_id"), - 10: .standard(proto: "app_id"), - 11: .standard(proto: "module_version"), - 12: .standard(proto: "is_starred"), - 13: .standard(proto: "star_count"), - 14: .standard(proto: "bookmark_origin"), - 15: .same(proto: "image"), +extension Clarifai_Api_Collector: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Collector" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "id"), + 2: .same(proto: "description"), + 3: .standard(proto: "created_at"), + 4: .standard(proto: "pre_queue_workflow_id"), + 8: .standard(proto: "pre_queue_random_sample"), + 5: .standard(proto: "post_queue_workflow_id"), + 6: .standard(proto: "collector_source"), + 7: .same(proto: "status"), + 9: .standard(proto: "collect_outputs"), ] fileprivate class _StorageClass { var _id: String = String() var _description_p: String = String() var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _modifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _visibility: Clarifai_Api_Visibility? = nil - var _metadata: SwiftProtobuf.Google_Protobuf_Struct? = nil - var _userID: String = String() - var _appID: String = String() - var _moduleVersion: Clarifai_Api_ModuleVersion? = nil - var _isStarred: Bool = false - var _starCount: Int32 = 0 - var _bookmarkOrigin: Clarifai_Api_BookmarkOrigin? = nil - var _image: Clarifai_Api_Image? = nil + var _preQueueWorkflowID: String = String() + var _preQueueRandomSample: Float = 0 + 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() @@ -26092,16 +25040,12 @@ extension Clarifai_Api_Module: SwiftProtobuf.Message, SwiftProtobuf._MessageImpl _id = source._id _description_p = source._description_p _createdAt = source._createdAt - _modifiedAt = source._modifiedAt - _visibility = source._visibility - _metadata = source._metadata - _userID = source._userID - _appID = source._appID - _moduleVersion = source._moduleVersion - _isStarred = source._isStarred - _starCount = source._starCount - _bookmarkOrigin = source._bookmarkOrigin - _image = source._image + _preQueueWorkflowID = source._preQueueWorkflowID + _preQueueRandomSample = source._preQueueRandomSample + _postQueueWorkflowID = source._postQueueWorkflowID + _collectorSource = source._collectorSource + _status = source._status + _collectOutputs = source._collectOutputs } } @@ -26121,18 +25065,14 @@ extension Clarifai_Api_Module: SwiftProtobuf.Message, SwiftProtobuf._MessageImpl // enabled. https://github.com/apple/swift-protobuf/issues/1034 switch fieldNumber { case 1: try { try decoder.decodeSingularStringField(value: &_storage._id) }() - case 3: try { try decoder.decodeSingularStringField(value: &_storage._description_p) }() - case 4: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() - case 5: try { try decoder.decodeSingularMessageField(value: &_storage._modifiedAt) }() - case 7: try { try decoder.decodeSingularMessageField(value: &_storage._visibility) }() - case 8: try { try decoder.decodeSingularMessageField(value: &_storage._metadata) }() - case 9: try { try decoder.decodeSingularStringField(value: &_storage._userID) }() - case 10: try { try decoder.decodeSingularStringField(value: &_storage._appID) }() - case 11: try { try decoder.decodeSingularMessageField(value: &_storage._moduleVersion) }() - case 12: try { try decoder.decodeSingularBoolField(value: &_storage._isStarred) }() - case 13: try { try decoder.decodeSingularInt32Field(value: &_storage._starCount) }() - case 14: try { try decoder.decodeSingularMessageField(value: &_storage._bookmarkOrigin) }() - case 15: try { try decoder.decodeSingularMessageField(value: &_storage._image) }() + case 2: try { try decoder.decodeSingularStringField(value: &_storage._description_p) }() + case 3: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() + case 4: try { try decoder.decodeSingularStringField(value: &_storage._preQueueWorkflowID) }() + case 5: try { try decoder.decodeSingularStringField(value: &_storage._postQueueWorkflowID) }() + 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 } } @@ -26149,46 +25089,34 @@ extension Clarifai_Api_Module: SwiftProtobuf.Message, SwiftProtobuf._MessageImpl try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) } if !_storage._description_p.isEmpty { - try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 3) + try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 2) } try { if let v = _storage._createdAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 4) - } }() - try { if let v = _storage._modifiedAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 5) - } }() - try { if let v = _storage._visibility { - try visitor.visitSingularMessageField(value: v, fieldNumber: 7) - } }() - try { if let v = _storage._metadata { - try visitor.visitSingularMessageField(value: v, fieldNumber: 8) + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) } }() - if !_storage._userID.isEmpty { - try visitor.visitSingularStringField(value: _storage._userID, fieldNumber: 9) + if !_storage._preQueueWorkflowID.isEmpty { + try visitor.visitSingularStringField(value: _storage._preQueueWorkflowID, fieldNumber: 4) } - if !_storage._appID.isEmpty { - try visitor.visitSingularStringField(value: _storage._appID, fieldNumber: 10) + if !_storage._postQueueWorkflowID.isEmpty { + try visitor.visitSingularStringField(value: _storage._postQueueWorkflowID, fieldNumber: 5) } - try { if let v = _storage._moduleVersion { - try visitor.visitSingularMessageField(value: v, fieldNumber: 11) + try { if let v = _storage._collectorSource { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) } }() - if _storage._isStarred != false { - try visitor.visitSingularBoolField(value: _storage._isStarred, fieldNumber: 12) + try { if let v = _storage._status { + try visitor.visitSingularMessageField(value: v, fieldNumber: 7) + } }() + if _storage._preQueueRandomSample != 0 { + try visitor.visitSingularFloatField(value: _storage._preQueueRandomSample, fieldNumber: 8) } - if _storage._starCount != 0 { - try visitor.visitSingularInt32Field(value: _storage._starCount, fieldNumber: 13) + if _storage._collectOutputs != false { + try visitor.visitSingularBoolField(value: _storage._collectOutputs, fieldNumber: 9) } - try { if let v = _storage._bookmarkOrigin { - try visitor.visitSingularMessageField(value: v, fieldNumber: 14) - } }() - try { if let v = _storage._image { - try visitor.visitSingularMessageField(value: v, fieldNumber: 15) - } }() } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_Module, rhs: Clarifai_Api_Module) -> Bool { + public static func ==(lhs: Clarifai_Api_Collector, rhs: Clarifai_Api_Collector) -> Bool { if lhs._storage !== rhs._storage { let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in let _storage = _args.0 @@ -26196,16 +25124,12 @@ extension Clarifai_Api_Module: SwiftProtobuf.Message, SwiftProtobuf._MessageImpl if _storage._id != rhs_storage._id {return false} if _storage._description_p != rhs_storage._description_p {return false} if _storage._createdAt != rhs_storage._createdAt {return false} - if _storage._modifiedAt != rhs_storage._modifiedAt {return false} - if _storage._visibility != rhs_storage._visibility {return false} - if _storage._metadata != rhs_storage._metadata {return false} - if _storage._userID != rhs_storage._userID {return false} - if _storage._appID != rhs_storage._appID {return false} - if _storage._moduleVersion != rhs_storage._moduleVersion {return false} - if _storage._isStarred != rhs_storage._isStarred {return false} - if _storage._starCount != rhs_storage._starCount {return false} - if _storage._bookmarkOrigin != rhs_storage._bookmarkOrigin {return false} - if _storage._image != rhs_storage._image {return false} + if _storage._preQueueWorkflowID != rhs_storage._preQueueWorkflowID {return false} + if _storage._preQueueRandomSample != rhs_storage._preQueueRandomSample {return false} + 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} @@ -26215,22 +25139,10 @@ extension Clarifai_Api_Module: SwiftProtobuf.Message, SwiftProtobuf._MessageImpl } } -extension Clarifai_Api_ModuleVersion: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".ModuleVersion" +extension Clarifai_Api_CollectorSource: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".CollectorSource" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .standard(proto: "module_id"), - 3: .standard(proto: "app_id"), - 4: .standard(proto: "user_id"), - 6: .same(proto: "description"), - 7: .same(proto: "notes"), - 8: .standard(proto: "created_at"), - 9: .standard(proto: "modified_at"), - 10: .standard(proto: "git_commit_url"), - 11: .standard(proto: "module_nav"), - 12: .same(proto: "approved"), - 13: .same(proto: "visibility"), - 14: .same(proto: "metadata"), + 2: .standard(proto: "api_post_model_outputs_collector_source"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -26239,19 +25151,7 @@ extension Clarifai_Api_ModuleVersion: SwiftProtobuf.Message, SwiftProtobuf._Mess // 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.id) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.moduleID) }() - case 3: try { try decoder.decodeSingularStringField(value: &self.appID) }() - case 4: try { try decoder.decodeSingularStringField(value: &self.userID) }() - case 6: try { try decoder.decodeSingularStringField(value: &self.description_p) }() - case 7: try { try decoder.decodeSingularStringField(value: &self.notes) }() - case 8: try { try decoder.decodeSingularMessageField(value: &self._createdAt) }() - case 9: try { try decoder.decodeSingularMessageField(value: &self._modifiedAt) }() - case 10: try { try decoder.decodeSingularStringField(value: &self.gitCommitURL) }() - case 11: try { try decoder.decodeSingularMessageField(value: &self._moduleNav) }() - case 12: try { try decoder.decodeSingularBoolField(value: &self.approved) }() - case 13: try { try decoder.decodeSingularMessageField(value: &self._visibility) }() - case 14: try { try decoder.decodeSingularMessageField(value: &self._metadata) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._apiPostModelOutputsCollectorSource) }() default: break } } @@ -26262,73 +25162,87 @@ extension Clarifai_Api_ModuleVersion: SwiftProtobuf.Message, SwiftProtobuf._Mess // 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.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) - } - if !self.moduleID.isEmpty { - try visitor.visitSingularStringField(value: self.moduleID, fieldNumber: 2) + try { if let v = self._apiPostModelOutputsCollectorSource { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Clarifai_Api_CollectorSource, rhs: Clarifai_Api_CollectorSource) -> Bool { + if lhs._apiPostModelOutputsCollectorSource != rhs._apiPostModelOutputsCollectorSource {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Clarifai_Api_APIPostModelOutputsCollectorSource: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".APIPostModelOutputsCollectorSource" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "model_user_id"), + 2: .standard(proto: "model_app_id"), + 3: .standard(proto: "model_id"), + 4: .standard(proto: "model_version_id"), + 5: .standard(proto: "post_inputs_key_id"), + 6: .standard(proto: "caller_user_id"), + ] + + 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.modelUserID) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.modelAppID) }() + case 3: try { try decoder.decodeSingularStringField(value: &self.modelID) }() + case 4: try { try decoder.decodeSingularStringField(value: &self.modelVersionID) }() + case 5: try { try decoder.decodeSingularStringField(value: &self.postInputsKeyID) }() + case 6: try { try decoder.decodeSingularStringField(value: &self.callerUserID) }() + default: break + } } - if !self.appID.isEmpty { - try visitor.visitSingularStringField(value: self.appID, fieldNumber: 3) + } + + public func traverse(visitor: inout V) throws { + if !self.modelUserID.isEmpty { + try visitor.visitSingularStringField(value: self.modelUserID, fieldNumber: 1) } - if !self.userID.isEmpty { - try visitor.visitSingularStringField(value: self.userID, fieldNumber: 4) + if !self.modelAppID.isEmpty { + try visitor.visitSingularStringField(value: self.modelAppID, fieldNumber: 2) } - if !self.description_p.isEmpty { - try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 6) + if !self.modelID.isEmpty { + try visitor.visitSingularStringField(value: self.modelID, fieldNumber: 3) } - if !self.notes.isEmpty { - try visitor.visitSingularStringField(value: self.notes, fieldNumber: 7) + if !self.modelVersionID.isEmpty { + try visitor.visitSingularStringField(value: self.modelVersionID, fieldNumber: 4) } - try { if let v = self._createdAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 8) - } }() - try { if let v = self._modifiedAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 9) - } }() - if !self.gitCommitURL.isEmpty { - try visitor.visitSingularStringField(value: self.gitCommitURL, fieldNumber: 10) + if !self.postInputsKeyID.isEmpty { + try visitor.visitSingularStringField(value: self.postInputsKeyID, fieldNumber: 5) } - try { if let v = self._moduleNav { - try visitor.visitSingularMessageField(value: v, fieldNumber: 11) - } }() - if self.approved != false { - try visitor.visitSingularBoolField(value: self.approved, fieldNumber: 12) + if !self.callerUserID.isEmpty { + try visitor.visitSingularStringField(value: self.callerUserID, fieldNumber: 6) } - try { if let v = self._visibility { - try visitor.visitSingularMessageField(value: v, fieldNumber: 13) - } }() - try { if let v = self._metadata { - try visitor.visitSingularMessageField(value: v, fieldNumber: 14) - } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_ModuleVersion, rhs: Clarifai_Api_ModuleVersion) -> Bool { - if lhs.id != rhs.id {return false} - if lhs.moduleID != rhs.moduleID {return false} - if lhs.appID != rhs.appID {return false} - if lhs.userID != rhs.userID {return false} - if lhs.description_p != rhs.description_p {return false} - if lhs.notes != rhs.notes {return false} - if lhs._createdAt != rhs._createdAt {return false} - if lhs._modifiedAt != rhs._modifiedAt {return false} - if lhs.gitCommitURL != rhs.gitCommitURL {return false} - if lhs._moduleNav != rhs._moduleNav {return false} - if lhs.approved != rhs.approved {return false} - if lhs._visibility != rhs._visibility {return false} - if lhs._metadata != rhs._metadata {return false} + public static func ==(lhs: Clarifai_Api_APIPostModelOutputsCollectorSource, rhs: Clarifai_Api_APIPostModelOutputsCollectorSource) -> Bool { + if lhs.modelUserID != rhs.modelUserID {return false} + if lhs.modelAppID != rhs.modelAppID {return false} + if lhs.modelID != rhs.modelID {return false} + if lhs.modelVersionID != rhs.modelVersionID {return false} + if lhs.postInputsKeyID != rhs.postInputsKeyID {return false} + if lhs.callerUserID != rhs.callerUserID {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_ModuleVersion.ModuleSubNav: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = Clarifai_Api_ModuleVersion.protoMessageName + ".ModuleSubNav" +extension Clarifai_Api_StatValue: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".StatValue" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "title"), - 2: .standard(proto: "query_key"), - 3: .standard(proto: "query_value"), + 1: .same(proto: "time"), + 2: .same(proto: "value"), + 3: .same(proto: "tags"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -26337,41 +25251,45 @@ extension Clarifai_Api_ModuleVersion.ModuleSubNav: 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.decodeSingularStringField(value: &self.title) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.queryKey) }() - case 3: try { try decoder.decodeSingularStringField(value: &self.queryValue) }() + case 1: try { try decoder.decodeSingularMessageField(value: &self._time) }() + case 2: try { try decoder.decodeSingularFloatField(value: &self.value) }() + case 3: try { try decoder.decodeRepeatedStringField(value: &self.tags) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.title.isEmpty { - try visitor.visitSingularStringField(value: self.title, fieldNumber: 1) - } - if !self.queryKey.isEmpty { - try visitor.visitSingularStringField(value: self.queryKey, fieldNumber: 2) + // 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._time { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } }() + if self.value != 0 { + try visitor.visitSingularFloatField(value: self.value, fieldNumber: 2) } - if !self.queryValue.isEmpty { - try visitor.visitSingularStringField(value: self.queryValue, fieldNumber: 3) + if !self.tags.isEmpty { + try visitor.visitRepeatedStringField(value: self.tags, fieldNumber: 3) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_ModuleVersion.ModuleSubNav, rhs: Clarifai_Api_ModuleVersion.ModuleSubNav) -> Bool { - if lhs.title != rhs.title {return false} - if lhs.queryKey != rhs.queryKey {return false} - if lhs.queryValue != rhs.queryValue {return false} + public static func ==(lhs: Clarifai_Api_StatValue, rhs: Clarifai_Api_StatValue) -> Bool { + if lhs._time != rhs._time {return false} + if lhs.value != rhs.value {return false} + if lhs.tags != rhs.tags {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_ModuleVersion.ModuleNav: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = Clarifai_Api_ModuleVersion.protoMessageName + ".ModuleNav" +extension Clarifai_Api_StatValueAggregateResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".StatValueAggregateResult" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "title"), - 2: .standard(proto: "module_sub_navs"), + 1: .standard(proto: "stat_value_aggregates"), + 2: .standard(proto: "stat_value_aggregate_query"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -26380,370 +25298,235 @@ extension Clarifai_Api_ModuleVersion.ModuleNav: SwiftProtobuf.Message, SwiftProt // 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.title) }() - case 2: try { try decoder.decodeRepeatedMessageField(value: &self.moduleSubNavs) }() + case 1: try { try decoder.decodeRepeatedMessageField(value: &self.statValueAggregates) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._statValueAggregateQuery) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.title.isEmpty { - try visitor.visitSingularStringField(value: self.title, fieldNumber: 1) - } - if !self.moduleSubNavs.isEmpty { - try visitor.visitRepeatedMessageField(value: self.moduleSubNavs, fieldNumber: 2) + // 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.statValueAggregates.isEmpty { + try visitor.visitRepeatedMessageField(value: self.statValueAggregates, fieldNumber: 1) } + try { if let v = self._statValueAggregateQuery { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_ModuleVersion.ModuleNav, rhs: Clarifai_Api_ModuleVersion.ModuleNav) -> Bool { - if lhs.title != rhs.title {return false} - if lhs.moduleSubNavs != rhs.moduleSubNavs {return false} + public static func ==(lhs: Clarifai_Api_StatValueAggregateResult, rhs: Clarifai_Api_StatValueAggregateResult) -> Bool { + if lhs.statValueAggregates != rhs.statValueAggregates {return false} + if lhs._statValueAggregateQuery != rhs._statValueAggregateQuery {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_InstalledModuleVersion: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".InstalledModuleVersion" +extension Clarifai_Api_StatValueAggregate: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".StatValueAggregate" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .standard(proto: "module_version"), - 3: .standard(proto: "app_id"), - 4: .standard(proto: "user_id"), - 5: .standard(proto: "created_at"), - 6: .standard(proto: "modified_at"), - 7: .standard(proto: "deploy_url"), - 8: .same(proto: "visibility"), - 9: .standard(proto: "key_id"), + 1: .same(proto: "time"), + 2: .standard(proto: "aggregate_value"), + 3: .same(proto: "count"), + 4: .same(proto: "tags"), ] - fileprivate class _StorageClass { - var _id: String = String() - var _moduleVersion: Clarifai_Api_ModuleVersion? = nil - var _appID: String = String() - var _userID: String = String() - var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _modifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _deployURL: String = String() - var _visibility: Clarifai_Api_Visibility? = nil - var _keyID: String = String() - - static let defaultInstance = _StorageClass() - - private init() {} - - init(copying source: _StorageClass) { - _id = source._id - _moduleVersion = source._moduleVersion - _appID = source._appID - _userID = source._userID - _createdAt = source._createdAt - _modifiedAt = source._modifiedAt - _deployURL = source._deployURL - _visibility = source._visibility - _keyID = source._keyID + 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._time) }() + case 2: try { try decoder.decodeSingularFloatField(value: &self.aggregateValue) }() + case 3: try { try decoder.decodeSingularUInt64Field(value: &self.count) }() + case 4: try { try decoder.decodeRepeatedStringField(value: &self.tags) }() + default: break + } } } - fileprivate mutating func _uniqueStorage() -> _StorageClass { - if !isKnownUniquelyReferenced(&_storage) { - _storage = _StorageClass(copying: _storage) + 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._time { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } }() + if self.aggregateValue != 0 { + try visitor.visitSingularFloatField(value: self.aggregateValue, fieldNumber: 2) } - return _storage + if self.count != 0 { + try visitor.visitSingularUInt64Field(value: self.count, fieldNumber: 3) + } + if !self.tags.isEmpty { + try visitor.visitRepeatedStringField(value: self.tags, fieldNumber: 4) + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Clarifai_Api_StatValueAggregate, rhs: Clarifai_Api_StatValueAggregate) -> Bool { + if lhs._time != rhs._time {return false} + if lhs.aggregateValue != rhs.aggregateValue {return false} + if lhs.count != rhs.count {return false} + if lhs.tags != rhs.tags {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true } +} + +extension Clarifai_Api_StatValueAggregateQuery: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".StatValueAggregateQuery" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "tags"), + 2: .standard(proto: "tag_groups"), + 3: .standard(proto: "stat_value_agg_type"), + 4: .standard(proto: "stat_time_agg_type"), + 5: .standard(proto: "start_time"), + 6: .standard(proto: "end_time"), + ] 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.decodeSingularStringField(value: &_storage._id) }() - case 2: try { try decoder.decodeSingularMessageField(value: &_storage._moduleVersion) }() - case 3: try { try decoder.decodeSingularStringField(value: &_storage._appID) }() - case 4: try { try decoder.decodeSingularStringField(value: &_storage._userID) }() - case 5: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() - case 6: try { try decoder.decodeSingularMessageField(value: &_storage._modifiedAt) }() - case 7: try { try decoder.decodeSingularStringField(value: &_storage._deployURL) }() - case 8: try { try decoder.decodeSingularMessageField(value: &_storage._visibility) }() - case 9: try { try decoder.decodeSingularStringField(value: &_storage._keyID) }() - default: break - } + 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.decodeRepeatedStringField(value: &self.tags) }() + case 2: try { try decoder.decodeRepeatedStringField(value: &self.tagGroups) }() + case 3: try { try decoder.decodeSingularEnumField(value: &self.statValueAggType) }() + case 4: try { try decoder.decodeSingularEnumField(value: &self.statTimeAggType) }() + case 5: try { try decoder.decodeSingularMessageField(value: &self._startTime) }() + case 6: try { try decoder.decodeSingularMessageField(value: &self._endTime) }() + 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.isEmpty { - try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) - } - try { if let v = _storage._moduleVersion { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - if !_storage._appID.isEmpty { - try visitor.visitSingularStringField(value: _storage._appID, fieldNumber: 3) - } - if !_storage._userID.isEmpty { - try visitor.visitSingularStringField(value: _storage._userID, fieldNumber: 4) - } - try { if let v = _storage._createdAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 5) - } }() - try { if let v = _storage._modifiedAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) - } }() - if !_storage._deployURL.isEmpty { - try visitor.visitSingularStringField(value: _storage._deployURL, fieldNumber: 7) - } - try { if let v = _storage._visibility { - try visitor.visitSingularMessageField(value: v, fieldNumber: 8) - } }() - if !_storage._keyID.isEmpty { - try visitor.visitSingularStringField(value: _storage._keyID, fieldNumber: 9) - } + // 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.tags.isEmpty { + try visitor.visitRepeatedStringField(value: self.tags, fieldNumber: 1) + } + if !self.tagGroups.isEmpty { + try visitor.visitRepeatedStringField(value: self.tagGroups, fieldNumber: 2) + } + if self.statValueAggType != .sum { + try visitor.visitSingularEnumField(value: self.statValueAggType, fieldNumber: 3) + } + if self.statTimeAggType != .noTimeAgg { + try visitor.visitSingularEnumField(value: self.statTimeAggType, fieldNumber: 4) } + try { if let v = self._startTime { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } }() + try { if let v = self._endTime { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_InstalledModuleVersion, rhs: Clarifai_Api_InstalledModuleVersion) -> 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._moduleVersion != rhs_storage._moduleVersion {return false} - if _storage._appID != rhs_storage._appID {return false} - if _storage._userID != rhs_storage._userID {return false} - if _storage._createdAt != rhs_storage._createdAt {return false} - if _storage._modifiedAt != rhs_storage._modifiedAt {return false} - if _storage._deployURL != rhs_storage._deployURL {return false} - if _storage._visibility != rhs_storage._visibility {return false} - if _storage._keyID != rhs_storage._keyID {return false} - return true - } - if !storagesAreEqual {return false} - } + public static func ==(lhs: Clarifai_Api_StatValueAggregateQuery, rhs: Clarifai_Api_StatValueAggregateQuery) -> Bool { + if lhs.tags != rhs.tags {return false} + if lhs.tagGroups != rhs.tagGroups {return false} + if lhs.statValueAggType != rhs.statValueAggType {return false} + if lhs.statTimeAggType != rhs.statTimeAggType {return false} + if lhs._startTime != rhs._startTime {return false} + if lhs._endTime != rhs._endTime {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_BulkOperation: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".BulkOperation" +extension Clarifai_Api_PCAProjectionComparator: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".PCAProjectionComparator" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .standard(proto: "input_ids"), - 10: .same(proto: "search"), - 11: .same(proto: "dataset"), - 12: .standard(proto: "annotation_search"), - 3: .same(proto: "operation"), - 4: .standard(proto: "app_id"), - 5: .same(proto: "status"), - 6: .same(proto: "progress"), - 7: .standard(proto: "created_by"), - 8: .standard(proto: "created_at"), - 9: .standard(proto: "last_modified_at"), + 1: .standard(proto: "distance_threshold"), + 2: .standard(proto: "model_version_id"), ] - fileprivate class _StorageClass { - var _id: String = String() - var _inputSource: Clarifai_Api_BulkOperation.OneOf_InputSource? - var _annotationSource: Clarifai_Api_BulkOperation.OneOf_AnnotationSource? - var _operation: Clarifai_Api_Operation? = nil - var _appID: String = String() - var _status: Clarifai_Api_Status_Status? = nil - var _progress: Clarifai_Api_Progress? = nil - var _createdBy: String = String() - var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _lastModifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - - static let defaultInstance = _StorageClass() - - private init() {} - - init(copying source: _StorageClass) { - _id = source._id - _inputSource = source._inputSource - _annotationSource = source._annotationSource - _operation = source._operation - _appID = source._appID - _status = source._status - _progress = source._progress - _createdBy = source._createdBy - _createdAt = source._createdAt - _lastModifiedAt = source._lastModifiedAt + 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.decodeSingularFloatField(value: &self.distanceThreshold) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.modelVersionID) }() + default: break + } } } - fileprivate mutating func _uniqueStorage() -> _StorageClass { - if !isKnownUniquelyReferenced(&_storage) { - _storage = _StorageClass(copying: _storage) + public func traverse(visitor: inout V) throws { + if self.distanceThreshold != 0 { + try visitor.visitSingularFloatField(value: self.distanceThreshold, fieldNumber: 1) } - return _storage + if !self.modelVersionID.isEmpty { + try visitor.visitSingularStringField(value: self.modelVersionID, fieldNumber: 2) + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Clarifai_Api_PCAProjectionComparator, rhs: Clarifai_Api_PCAProjectionComparator) -> Bool { + if lhs.distanceThreshold != rhs.distanceThreshold {return false} + if lhs.modelVersionID != rhs.modelVersionID {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true } +} + +extension Clarifai_Api_DuplicateAnnotationsResults: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".DuplicateAnnotationsResults" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "duplicate_cfid"), + 2: .standard(proto: "unique_count"), + ] 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.decodeSingularStringField(value: &_storage._id) }() - case 2: try { - var v: Clarifai_Api_InputIDs? - var hadOneofValue = false - if let current = _storage._inputSource { - hadOneofValue = true - if case .inputIds(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - _storage._inputSource = .inputIds(v) - } - }() - case 3: try { try decoder.decodeSingularMessageField(value: &_storage._operation) }() - case 4: try { try decoder.decodeSingularStringField(value: &_storage._appID) }() - case 5: try { try decoder.decodeSingularMessageField(value: &_storage._status) }() - case 6: try { try decoder.decodeSingularMessageField(value: &_storage._progress) }() - case 7: try { try decoder.decodeSingularStringField(value: &_storage._createdBy) }() - case 8: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() - case 9: try { try decoder.decodeSingularMessageField(value: &_storage._lastModifiedAt) }() - case 10: try { - var v: Clarifai_Api_Search? - var hadOneofValue = false - if let current = _storage._inputSource { - hadOneofValue = true - if case .search(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - _storage._inputSource = .search(v) - } - }() - case 11: try { - var v: Clarifai_Api_Dataset? - var hadOneofValue = false - if let current = _storage._inputSource { - hadOneofValue = true - if case .dataset(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - _storage._inputSource = .dataset(v) - } - }() - case 12: try { - var v: Clarifai_Api_Search? - var hadOneofValue = false - if let current = _storage._annotationSource { - hadOneofValue = true - if case .annotationSearch(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - _storage._annotationSource = .annotationSearch(v) - } - }() - default: break - } + 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.decodeRepeatedStringField(value: &self.duplicateCfid) }() + case 2: try { try decoder.decodeSingularInt32Field(value: &self.uniqueCount) }() + 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.isEmpty { - try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) - } - try { if case .inputIds(let v)? = _storage._inputSource { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - try { if let v = _storage._operation { - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - } }() - if !_storage._appID.isEmpty { - try visitor.visitSingularStringField(value: _storage._appID, fieldNumber: 4) - } - try { if let v = _storage._status { - try visitor.visitSingularMessageField(value: v, fieldNumber: 5) - } }() - try { if let v = _storage._progress { - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) - } }() - if !_storage._createdBy.isEmpty { - try visitor.visitSingularStringField(value: _storage._createdBy, fieldNumber: 7) - } - try { if let v = _storage._createdAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 8) - } }() - try { if let v = _storage._lastModifiedAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 9) - } }() - switch _storage._inputSource { - case .search?: try { - guard case .search(let v)? = _storage._inputSource else { preconditionFailure() } - try visitor.visitSingularMessageField(value: v, fieldNumber: 10) - }() - case .dataset?: try { - guard case .dataset(let v)? = _storage._inputSource else { preconditionFailure() } - try visitor.visitSingularMessageField(value: v, fieldNumber: 11) - }() - default: break - } - try { if case .annotationSearch(let v)? = _storage._annotationSource { - try visitor.visitSingularMessageField(value: v, fieldNumber: 12) - } }() + if !self.duplicateCfid.isEmpty { + try visitor.visitRepeatedStringField(value: self.duplicateCfid, fieldNumber: 1) + } + if self.uniqueCount != 0 { + try visitor.visitSingularInt32Field(value: self.uniqueCount, fieldNumber: 2) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_BulkOperation, rhs: Clarifai_Api_BulkOperation) -> 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._inputSource != rhs_storage._inputSource {return false} - if _storage._annotationSource != rhs_storage._annotationSource {return false} - if _storage._operation != rhs_storage._operation {return false} - if _storage._appID != rhs_storage._appID {return false} - if _storage._status != rhs_storage._status {return false} - if _storage._progress != rhs_storage._progress {return false} - if _storage._createdBy != rhs_storage._createdBy {return false} - if _storage._createdAt != rhs_storage._createdAt {return false} - if _storage._lastModifiedAt != rhs_storage._lastModifiedAt {return false} - return true - } - if !storagesAreEqual {return false} - } + public static func ==(lhs: Clarifai_Api_DuplicateAnnotationsResults, rhs: Clarifai_Api_DuplicateAnnotationsResults) -> Bool { + if lhs.duplicateCfid != rhs.duplicateCfid {return false} + if lhs.uniqueCount != rhs.uniqueCount {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_InputIDs: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".InputIDs" +extension Clarifai_Api_Visibility: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Visibility" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "input_ids"), + 1: .same(proto: "gettable"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -26752,31 +25535,40 @@ extension Clarifai_Api_InputIDs: 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.decodeRepeatedStringField(value: &self.inputIds) }() + case 1: try { try decoder.decodeSingularEnumField(value: &self.gettable) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.inputIds.isEmpty { - try visitor.visitRepeatedStringField(value: self.inputIds, fieldNumber: 1) + if self.gettable != .unknownVisibility { + try visitor.visitSingularEnumField(value: self.gettable, fieldNumber: 1) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_InputIDs, rhs: Clarifai_Api_InputIDs) -> Bool { - if lhs.inputIds != rhs.inputIds {return false} + public static func ==(lhs: Clarifai_Api_Visibility, rhs: Clarifai_Api_Visibility) -> Bool { + if lhs.gettable != rhs.gettable {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_Progress: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Progress" +extension Clarifai_Api_Visibility.Gettable: SwiftProtobuf._ProtoNameProviding { public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "processed"), - 2: .standard(proto: "last_processed_id"), + 0: .same(proto: "UNKNOWN_VISIBILITY"), + 10: .same(proto: "PRIVATE"), + 30: .same(proto: "ORG"), + 50: .same(proto: "PUBLIC"), + ] +} + +extension Clarifai_Api_FullTag: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".FullTag" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "name"), + 2: .same(proto: "id"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -26785,44 +25577,37 @@ extension Clarifai_Api_Progress: 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.decodeSingularUInt32Field(value: &self.processed) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.lastProcessedID) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.name) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.id) }() default: break } } } public func traverse(visitor: inout V) throws { - if self.processed != 0 { - try visitor.visitSingularUInt32Field(value: self.processed, fieldNumber: 1) + if !self.name.isEmpty { + try visitor.visitSingularStringField(value: self.name, fieldNumber: 1) } - if !self.lastProcessedID.isEmpty { - try visitor.visitSingularStringField(value: self.lastProcessedID, fieldNumber: 2) + if !self.id.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 2) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_Progress, rhs: Clarifai_Api_Progress) -> Bool { - if lhs.processed != rhs.processed {return false} - if lhs.lastProcessedID != rhs.lastProcessedID {return false} + public static func ==(lhs: Clarifai_Api_FullTag, rhs: Clarifai_Api_FullTag) -> Bool { + if lhs.name != rhs.name {return false} + if lhs.id != rhs.id {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_Operation: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Operation" +extension Clarifai_Api_TimeSegment: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".TimeSegment" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "add_concepts"), - 2: .standard(proto: "delete_concepts"), - 3: .standard(proto: "add_metadata"), - 4: .standard(proto: "delete_metadata"), - 5: .standard(proto: "overwrite_geo"), - 6: .standard(proto: "delete_geo"), - 7: .standard(proto: "delete_from_dataset"), - 8: .standard(proto: "add_to_dataset"), - 9: .standard(proto: "split_into_datasets"), - 10: .standard(proto: "delete_annotations"), + 1: .same(proto: "id"), + 2: .same(proto: "data"), + 3: .standard(proto: "time_info"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -26831,136 +25616,9 @@ extension Clarifai_Api_Operation: 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 { - var v: Clarifai_Api_AddConcepts? - var hadOneofValue = false - if let current = self.operation { - hadOneofValue = true - if case .addConcepts(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - self.operation = .addConcepts(v) - } - }() - case 2: try { - var v: Clarifai_Api_DeleteConcepts? - var hadOneofValue = false - if let current = self.operation { - hadOneofValue = true - if case .deleteConcepts(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - self.operation = .deleteConcepts(v) - } - }() - case 3: try { - var v: Clarifai_Api_AddMetadata? - var hadOneofValue = false - if let current = self.operation { - hadOneofValue = true - if case .addMetadata(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - self.operation = .addMetadata(v) - } - }() - case 4: try { - var v: Clarifai_Api_DeleteMetadata? - var hadOneofValue = false - if let current = self.operation { - hadOneofValue = true - if case .deleteMetadata(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - self.operation = .deleteMetadata(v) - } - }() - case 5: try { - var v: Clarifai_Api_OverwriteGeo? - var hadOneofValue = false - if let current = self.operation { - hadOneofValue = true - if case .overwriteGeo(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - self.operation = .overwriteGeo(v) - } - }() - case 6: try { - var v: Clarifai_Api_DeleteGeo? - var hadOneofValue = false - if let current = self.operation { - hadOneofValue = true - if case .deleteGeo(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - self.operation = .deleteGeo(v) - } - }() - case 7: try { - var v: Clarifai_Api_DeleteFromDataset? - var hadOneofValue = false - if let current = self.operation { - hadOneofValue = true - if case .deleteFromDataset(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - self.operation = .deleteFromDataset(v) - } - }() - case 8: try { - var v: Clarifai_Api_AddToDataset? - var hadOneofValue = false - if let current = self.operation { - hadOneofValue = true - if case .addToDataset(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - self.operation = .addToDataset(v) - } - }() - case 9: try { - var v: Clarifai_Api_SplitIntoDatasets? - var hadOneofValue = false - if let current = self.operation { - hadOneofValue = true - if case .splitIntoDatasets(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - self.operation = .splitIntoDatasets(v) - } - }() - case 10: try { - var v: Clarifai_Api_DeleteAnnotations? - var hadOneofValue = false - if let current = self.annotationOperation { - hadOneofValue = true - if case .deleteAnnotations(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - self.annotationOperation = .deleteAnnotations(v) - } - }() + case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._data) }() + case 3: try { try decoder.decodeSingularMessageField(value: &self._timeInfo) }() default: break } } @@ -26971,63 +25629,75 @@ extension Clarifai_Api_Operation: SwiftProtobuf.Message, SwiftProtobuf._MessageI // 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 - switch self.operation { - case .addConcepts?: try { - guard case .addConcepts(let v)? = self.operation else { preconditionFailure() } - try visitor.visitSingularMessageField(value: v, fieldNumber: 1) - }() - case .deleteConcepts?: try { - guard case .deleteConcepts(let v)? = self.operation else { preconditionFailure() } + if !self.id.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) + } + try { if let v = self._data { try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - }() - case .addMetadata?: try { - guard case .addMetadata(let v)? = self.operation else { preconditionFailure() } + } }() + try { if let v = self._timeInfo { try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - }() - case .deleteMetadata?: try { - guard case .deleteMetadata(let v)? = self.operation else { preconditionFailure() } - try visitor.visitSingularMessageField(value: v, fieldNumber: 4) - }() - case .overwriteGeo?: try { - guard case .overwriteGeo(let v)? = self.operation else { preconditionFailure() } - try visitor.visitSingularMessageField(value: v, fieldNumber: 5) - }() - case .deleteGeo?: try { - guard case .deleteGeo(let v)? = self.operation else { preconditionFailure() } - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) - }() - case .deleteFromDataset?: try { - guard case .deleteFromDataset(let v)? = self.operation else { preconditionFailure() } - try visitor.visitSingularMessageField(value: v, fieldNumber: 7) - }() - case .addToDataset?: try { - guard case .addToDataset(let v)? = self.operation else { preconditionFailure() } - try visitor.visitSingularMessageField(value: v, fieldNumber: 8) - }() - case .splitIntoDatasets?: try { - guard case .splitIntoDatasets(let v)? = self.operation else { preconditionFailure() } - try visitor.visitSingularMessageField(value: v, fieldNumber: 9) - }() - case nil: break + } }() + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Clarifai_Api_TimeSegment, rhs: Clarifai_Api_TimeSegment) -> Bool { + if lhs.id != rhs.id {return false} + if lhs._data != rhs._data {return false} + if lhs._timeInfo != rhs._timeInfo {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Clarifai_Api_TimeInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".TimeInfo" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "num_frames"), + 4: .standard(proto: "begin_time"), + 5: .standard(proto: "end_time"), + ] + + 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.decodeSingularUInt32Field(value: &self.numFrames) }() + case 4: try { try decoder.decodeSingularFloatField(value: &self.beginTime) }() + case 5: try { try decoder.decodeSingularFloatField(value: &self.endTime) }() + default: break + } + } + } + + public func traverse(visitor: inout V) throws { + if self.numFrames != 0 { + try visitor.visitSingularUInt32Field(value: self.numFrames, fieldNumber: 1) + } + if self.beginTime != 0 { + try visitor.visitSingularFloatField(value: self.beginTime, fieldNumber: 4) + } + if self.endTime != 0 { + try visitor.visitSingularFloatField(value: self.endTime, fieldNumber: 5) } - try { if case .deleteAnnotations(let v)? = self.annotationOperation { - try visitor.visitSingularMessageField(value: v, fieldNumber: 10) - } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_Operation, rhs: Clarifai_Api_Operation) -> Bool { - if lhs.operation != rhs.operation {return false} - if lhs.annotationOperation != rhs.annotationOperation {return false} + public static func ==(lhs: Clarifai_Api_TimeInfo, rhs: Clarifai_Api_TimeInfo) -> Bool { + if lhs.numFrames != rhs.numFrames {return false} + if lhs.beginTime != rhs.beginTime {return false} + if lhs.endTime != rhs.endTime {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_AddConcepts: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".AddConcepts" +extension Clarifai_Api_DatasetStar: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".DatasetStar" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "concepts"), + 1: .standard(proto: "dataset_id"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -27036,31 +25706,30 @@ extension Clarifai_Api_AddConcepts: SwiftProtobuf.Message, SwiftProtobuf._Messag // 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.concepts) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.datasetID) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.concepts.isEmpty { - try visitor.visitRepeatedMessageField(value: self.concepts, fieldNumber: 1) + if !self.datasetID.isEmpty { + try visitor.visitSingularStringField(value: self.datasetID, fieldNumber: 1) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_AddConcepts, rhs: Clarifai_Api_AddConcepts) -> Bool { - if lhs.concepts != rhs.concepts {return false} + public static func ==(lhs: Clarifai_Api_DatasetStar, rhs: Clarifai_Api_DatasetStar) -> Bool { + if lhs.datasetID != rhs.datasetID {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_DeleteConcepts: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".DeleteConcepts" +extension Clarifai_Api_ModuleStar: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".ModuleStar" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "concepts"), - 2: .standard(proto: "user_ids"), + 1: .standard(proto: "module_id"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -27069,35 +25738,206 @@ extension Clarifai_Api_DeleteConcepts: 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.concepts) }() - case 2: try { try decoder.decodeRepeatedStringField(value: &self.userIds) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.moduleID) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.concepts.isEmpty { - try visitor.visitRepeatedMessageField(value: self.concepts, fieldNumber: 1) + if !self.moduleID.isEmpty { + try visitor.visitSingularStringField(value: self.moduleID, fieldNumber: 1) } - if !self.userIds.isEmpty { - try visitor.visitRepeatedStringField(value: self.userIds, fieldNumber: 2) + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Clarifai_Api_ModuleStar, rhs: Clarifai_Api_ModuleStar) -> Bool { + if lhs.moduleID != rhs.moduleID {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Clarifai_Api_Module: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Module" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "id"), + 3: .same(proto: "description"), + 4: .standard(proto: "created_at"), + 5: .standard(proto: "modified_at"), + 7: .same(proto: "visibility"), + 8: .same(proto: "metadata"), + 9: .standard(proto: "user_id"), + 10: .standard(proto: "app_id"), + 11: .standard(proto: "module_version"), + 12: .standard(proto: "is_starred"), + 13: .standard(proto: "star_count"), + 14: .standard(proto: "bookmark_origin"), + 15: .same(proto: "image"), + ] + + fileprivate class _StorageClass { + var _id: String = String() + var _description_p: String = String() + var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _modifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _visibility: Clarifai_Api_Visibility? = nil + var _metadata: SwiftProtobuf.Google_Protobuf_Struct? = nil + var _userID: String = String() + var _appID: String = String() + var _moduleVersion: Clarifai_Api_ModuleVersion? = nil + var _isStarred: Bool = false + var _starCount: Int32 = 0 + var _bookmarkOrigin: Clarifai_Api_BookmarkOrigin? = nil + var _image: Clarifai_Api_Image? = nil + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _id = source._id + _description_p = source._description_p + _createdAt = source._createdAt + _modifiedAt = source._modifiedAt + _visibility = source._visibility + _metadata = source._metadata + _userID = source._userID + _appID = source._appID + _moduleVersion = source._moduleVersion + _isStarred = source._isStarred + _starCount = source._starCount + _bookmarkOrigin = source._bookmarkOrigin + _image = source._image + } + } + + 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.decodeSingularStringField(value: &_storage._id) }() + case 3: try { try decoder.decodeSingularStringField(value: &_storage._description_p) }() + case 4: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() + case 5: try { try decoder.decodeSingularMessageField(value: &_storage._modifiedAt) }() + case 7: try { try decoder.decodeSingularMessageField(value: &_storage._visibility) }() + case 8: try { try decoder.decodeSingularMessageField(value: &_storage._metadata) }() + case 9: try { try decoder.decodeSingularStringField(value: &_storage._userID) }() + case 10: try { try decoder.decodeSingularStringField(value: &_storage._appID) }() + case 11: try { try decoder.decodeSingularMessageField(value: &_storage._moduleVersion) }() + case 12: try { try decoder.decodeSingularBoolField(value: &_storage._isStarred) }() + case 13: try { try decoder.decodeSingularInt32Field(value: &_storage._starCount) }() + case 14: try { try decoder.decodeSingularMessageField(value: &_storage._bookmarkOrigin) }() + case 15: try { try decoder.decodeSingularMessageField(value: &_storage._image) }() + 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.isEmpty { + try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) + } + if !_storage._description_p.isEmpty { + try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 3) + } + try { if let v = _storage._createdAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + } }() + try { if let v = _storage._modifiedAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } }() + try { if let v = _storage._visibility { + try visitor.visitSingularMessageField(value: v, fieldNumber: 7) + } }() + try { if let v = _storage._metadata { + try visitor.visitSingularMessageField(value: v, fieldNumber: 8) + } }() + if !_storage._userID.isEmpty { + try visitor.visitSingularStringField(value: _storage._userID, fieldNumber: 9) + } + if !_storage._appID.isEmpty { + try visitor.visitSingularStringField(value: _storage._appID, fieldNumber: 10) + } + try { if let v = _storage._moduleVersion { + try visitor.visitSingularMessageField(value: v, fieldNumber: 11) + } }() + if _storage._isStarred != false { + try visitor.visitSingularBoolField(value: _storage._isStarred, fieldNumber: 12) + } + if _storage._starCount != 0 { + try visitor.visitSingularInt32Field(value: _storage._starCount, fieldNumber: 13) + } + try { if let v = _storage._bookmarkOrigin { + try visitor.visitSingularMessageField(value: v, fieldNumber: 14) + } }() + try { if let v = _storage._image { + try visitor.visitSingularMessageField(value: v, fieldNumber: 15) + } }() } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_DeleteConcepts, rhs: Clarifai_Api_DeleteConcepts) -> Bool { - if lhs.concepts != rhs.concepts {return false} - if lhs.userIds != rhs.userIds {return false} + public static func ==(lhs: Clarifai_Api_Module, rhs: Clarifai_Api_Module) -> 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._description_p != rhs_storage._description_p {return false} + if _storage._createdAt != rhs_storage._createdAt {return false} + if _storage._modifiedAt != rhs_storage._modifiedAt {return false} + if _storage._visibility != rhs_storage._visibility {return false} + if _storage._metadata != rhs_storage._metadata {return false} + if _storage._userID != rhs_storage._userID {return false} + if _storage._appID != rhs_storage._appID {return false} + if _storage._moduleVersion != rhs_storage._moduleVersion {return false} + if _storage._isStarred != rhs_storage._isStarred {return false} + if _storage._starCount != rhs_storage._starCount {return false} + if _storage._bookmarkOrigin != rhs_storage._bookmarkOrigin {return false} + if _storage._image != rhs_storage._image {return false} + return true + } + if !storagesAreEqual {return false} + } if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_AddMetadata: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".AddMetadata" +extension Clarifai_Api_ModuleVersion: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".ModuleVersion" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "metadata"), + 1: .same(proto: "id"), + 2: .standard(proto: "module_id"), + 3: .standard(proto: "app_id"), + 4: .standard(proto: "user_id"), + 6: .same(proto: "description"), + 7: .same(proto: "notes"), + 8: .standard(proto: "created_at"), + 9: .standard(proto: "modified_at"), + 10: .standard(proto: "git_commit_url"), + 11: .standard(proto: "module_nav"), + 12: .same(proto: "approved"), + 13: .same(proto: "visibility"), + 14: .same(proto: "metadata"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -27106,7 +25946,19 @@ extension Clarifai_Api_AddMetadata: SwiftProtobuf.Message, SwiftProtobuf._Messag // 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._metadata) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.moduleID) }() + case 3: try { try decoder.decodeSingularStringField(value: &self.appID) }() + case 4: try { try decoder.decodeSingularStringField(value: &self.userID) }() + case 6: try { try decoder.decodeSingularStringField(value: &self.description_p) }() + case 7: try { try decoder.decodeSingularStringField(value: &self.notes) }() + case 8: try { try decoder.decodeSingularMessageField(value: &self._createdAt) }() + case 9: try { try decoder.decodeSingularMessageField(value: &self._modifiedAt) }() + case 10: try { try decoder.decodeSingularStringField(value: &self.gitCommitURL) }() + case 11: try { try decoder.decodeSingularMessageField(value: &self._moduleNav) }() + case 12: try { try decoder.decodeSingularBoolField(value: &self.approved) }() + case 13: try { try decoder.decodeSingularMessageField(value: &self._visibility) }() + case 14: try { try decoder.decodeSingularMessageField(value: &self._metadata) }() default: break } } @@ -27117,23 +25969,73 @@ extension Clarifai_Api_AddMetadata: SwiftProtobuf.Message, SwiftProtobuf._Messag // 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.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) + } + if !self.moduleID.isEmpty { + try visitor.visitSingularStringField(value: self.moduleID, fieldNumber: 2) + } + if !self.appID.isEmpty { + try visitor.visitSingularStringField(value: self.appID, fieldNumber: 3) + } + if !self.userID.isEmpty { + try visitor.visitSingularStringField(value: self.userID, fieldNumber: 4) + } + if !self.description_p.isEmpty { + try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 6) + } + if !self.notes.isEmpty { + try visitor.visitSingularStringField(value: self.notes, fieldNumber: 7) + } + try { if let v = self._createdAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 8) + } }() + try { if let v = self._modifiedAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 9) + } }() + if !self.gitCommitURL.isEmpty { + try visitor.visitSingularStringField(value: self.gitCommitURL, fieldNumber: 10) + } + try { if let v = self._moduleNav { + try visitor.visitSingularMessageField(value: v, fieldNumber: 11) + } }() + if self.approved != false { + try visitor.visitSingularBoolField(value: self.approved, fieldNumber: 12) + } + try { if let v = self._visibility { + try visitor.visitSingularMessageField(value: v, fieldNumber: 13) + } }() try { if let v = self._metadata { - try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + try visitor.visitSingularMessageField(value: v, fieldNumber: 14) } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_AddMetadata, rhs: Clarifai_Api_AddMetadata) -> Bool { + public static func ==(lhs: Clarifai_Api_ModuleVersion, rhs: Clarifai_Api_ModuleVersion) -> Bool { + if lhs.id != rhs.id {return false} + if lhs.moduleID != rhs.moduleID {return false} + if lhs.appID != rhs.appID {return false} + if lhs.userID != rhs.userID {return false} + if lhs.description_p != rhs.description_p {return false} + if lhs.notes != rhs.notes {return false} + if lhs._createdAt != rhs._createdAt {return false} + if lhs._modifiedAt != rhs._modifiedAt {return false} + if lhs.gitCommitURL != rhs.gitCommitURL {return false} + if lhs._moduleNav != rhs._moduleNav {return false} + if lhs.approved != rhs.approved {return false} + if lhs._visibility != rhs._visibility {return false} if lhs._metadata != rhs._metadata {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_DeleteMetadata: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".DeleteMetadata" +extension Clarifai_Api_ModuleVersion.ModuleSubNav: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = Clarifai_Api_ModuleVersion.protoMessageName + ".ModuleSubNav" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "metadata"), + 1: .same(proto: "title"), + 2: .standard(proto: "query_key"), + 3: .standard(proto: "query_value"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -27142,34 +26044,41 @@ extension Clarifai_Api_DeleteMetadata: 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.decodeSingularMessageField(value: &self._metadata) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.title) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.queryKey) }() + case 3: try { try decoder.decodeSingularStringField(value: &self.queryValue) }() 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._metadata { - try visitor.visitSingularMessageField(value: v, fieldNumber: 1) - } }() + if !self.title.isEmpty { + try visitor.visitSingularStringField(value: self.title, fieldNumber: 1) + } + if !self.queryKey.isEmpty { + try visitor.visitSingularStringField(value: self.queryKey, fieldNumber: 2) + } + if !self.queryValue.isEmpty { + try visitor.visitSingularStringField(value: self.queryValue, fieldNumber: 3) + } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_DeleteMetadata, rhs: Clarifai_Api_DeleteMetadata) -> Bool { - if lhs._metadata != rhs._metadata {return false} + public static func ==(lhs: Clarifai_Api_ModuleVersion.ModuleSubNav, rhs: Clarifai_Api_ModuleVersion.ModuleSubNav) -> Bool { + if lhs.title != rhs.title {return false} + if lhs.queryKey != rhs.queryKey {return false} + if lhs.queryValue != rhs.queryValue {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_OverwriteGeo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".OverwriteGeo" +extension Clarifai_Api_ModuleVersion.ModuleNav: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = Clarifai_Api_ModuleVersion.protoMessageName + ".ModuleNav" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "geo"), + 1: .same(proto: "title"), + 2: .standard(proto: "module_sub_navs"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -27178,85 +26087,370 @@ extension Clarifai_Api_OverwriteGeo: SwiftProtobuf.Message, SwiftProtobuf._Messa // 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._geo) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.title) }() + case 2: try { try decoder.decodeRepeatedMessageField(value: &self.moduleSubNavs) }() 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._geo { - try visitor.visitSingularMessageField(value: v, fieldNumber: 1) - } }() + if !self.title.isEmpty { + try visitor.visitSingularStringField(value: self.title, fieldNumber: 1) + } + if !self.moduleSubNavs.isEmpty { + try visitor.visitRepeatedMessageField(value: self.moduleSubNavs, fieldNumber: 2) + } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_OverwriteGeo, rhs: Clarifai_Api_OverwriteGeo) -> Bool { - if lhs._geo != rhs._geo {return false} + public static func ==(lhs: Clarifai_Api_ModuleVersion.ModuleNav, rhs: Clarifai_Api_ModuleVersion.ModuleNav) -> Bool { + if lhs.title != rhs.title {return false} + if lhs.moduleSubNavs != rhs.moduleSubNavs {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_DeleteGeo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".DeleteGeo" - public static let _protobuf_nameMap = SwiftProtobuf._NameMap() +extension Clarifai_Api_InstalledModuleVersion: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".InstalledModuleVersion" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "id"), + 2: .standard(proto: "module_version"), + 3: .standard(proto: "app_id"), + 4: .standard(proto: "user_id"), + 5: .standard(proto: "created_at"), + 6: .standard(proto: "modified_at"), + 7: .standard(proto: "deploy_url"), + 8: .same(proto: "visibility"), + 9: .standard(proto: "key_id"), + ] + + fileprivate class _StorageClass { + var _id: String = String() + var _moduleVersion: Clarifai_Api_ModuleVersion? = nil + var _appID: String = String() + var _userID: String = String() + var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _modifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _deployURL: String = String() + var _visibility: Clarifai_Api_Visibility? = nil + var _keyID: String = String() + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _id = source._id + _moduleVersion = source._moduleVersion + _appID = source._appID + _userID = source._userID + _createdAt = source._createdAt + _modifiedAt = source._modifiedAt + _deployURL = source._deployURL + _visibility = source._visibility + _keyID = source._keyID + } + } + + fileprivate mutating func _uniqueStorage() -> _StorageClass { + if !isKnownUniquelyReferenced(&_storage) { + _storage = _StorageClass(copying: _storage) + } + return _storage + } public mutating func decodeMessage(decoder: inout D) throws { - while let _ = try decoder.nextFieldNumber() { + _ = _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.decodeSingularStringField(value: &_storage._id) }() + case 2: try { try decoder.decodeSingularMessageField(value: &_storage._moduleVersion) }() + case 3: try { try decoder.decodeSingularStringField(value: &_storage._appID) }() + case 4: try { try decoder.decodeSingularStringField(value: &_storage._userID) }() + case 5: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() + case 6: try { try decoder.decodeSingularMessageField(value: &_storage._modifiedAt) }() + case 7: try { try decoder.decodeSingularStringField(value: &_storage._deployURL) }() + case 8: try { try decoder.decodeSingularMessageField(value: &_storage._visibility) }() + case 9: try { try decoder.decodeSingularStringField(value: &_storage._keyID) }() + 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.isEmpty { + try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) + } + try { if let v = _storage._moduleVersion { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + if !_storage._appID.isEmpty { + try visitor.visitSingularStringField(value: _storage._appID, fieldNumber: 3) + } + if !_storage._userID.isEmpty { + try visitor.visitSingularStringField(value: _storage._userID, fieldNumber: 4) + } + try { if let v = _storage._createdAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } }() + try { if let v = _storage._modifiedAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + } }() + if !_storage._deployURL.isEmpty { + try visitor.visitSingularStringField(value: _storage._deployURL, fieldNumber: 7) + } + try { if let v = _storage._visibility { + try visitor.visitSingularMessageField(value: v, fieldNumber: 8) + } }() + if !_storage._keyID.isEmpty { + try visitor.visitSingularStringField(value: _storage._keyID, fieldNumber: 9) + } + } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_DeleteGeo, rhs: Clarifai_Api_DeleteGeo) -> Bool { + public static func ==(lhs: Clarifai_Api_InstalledModuleVersion, rhs: Clarifai_Api_InstalledModuleVersion) -> 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._moduleVersion != rhs_storage._moduleVersion {return false} + if _storage._appID != rhs_storage._appID {return false} + if _storage._userID != rhs_storage._userID {return false} + if _storage._createdAt != rhs_storage._createdAt {return false} + if _storage._modifiedAt != rhs_storage._modifiedAt {return false} + if _storage._deployURL != rhs_storage._deployURL {return false} + if _storage._visibility != rhs_storage._visibility {return false} + if _storage._keyID != rhs_storage._keyID {return false} + return true + } + if !storagesAreEqual {return false} + } if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_AddToDataset: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".AddToDataset" +extension Clarifai_Api_BulkOperation: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".BulkOperation" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "dataset_id"), + 1: .same(proto: "id"), + 2: .standard(proto: "input_ids"), + 10: .same(proto: "search"), + 11: .same(proto: "dataset"), + 12: .standard(proto: "annotation_search"), + 3: .same(proto: "operation"), + 4: .standard(proto: "app_id"), + 5: .same(proto: "status"), + 6: .same(proto: "progress"), + 7: .standard(proto: "created_by"), + 8: .standard(proto: "created_at"), + 9: .standard(proto: "last_modified_at"), ] + fileprivate class _StorageClass { + var _id: String = String() + var _inputSource: Clarifai_Api_BulkOperation.OneOf_InputSource? + var _annotationSource: Clarifai_Api_BulkOperation.OneOf_AnnotationSource? + var _operation: Clarifai_Api_Operation? = nil + var _appID: String = String() + var _status: Clarifai_Api_Status_Status? = nil + var _progress: Clarifai_Api_Progress? = nil + var _createdBy: String = String() + var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _lastModifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _id = source._id + _inputSource = source._inputSource + _annotationSource = source._annotationSource + _operation = source._operation + _appID = source._appID + _status = source._status + _progress = source._progress + _createdBy = source._createdBy + _createdAt = source._createdAt + _lastModifiedAt = source._lastModifiedAt + } + } + + 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.datasetID) }() - 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.decodeSingularStringField(value: &_storage._id) }() + case 2: try { + var v: Clarifai_Api_InputIDs? + var hadOneofValue = false + if let current = _storage._inputSource { + hadOneofValue = true + if case .inputIds(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + _storage._inputSource = .inputIds(v) + } + }() + case 3: try { try decoder.decodeSingularMessageField(value: &_storage._operation) }() + case 4: try { try decoder.decodeSingularStringField(value: &_storage._appID) }() + case 5: try { try decoder.decodeSingularMessageField(value: &_storage._status) }() + case 6: try { try decoder.decodeSingularMessageField(value: &_storage._progress) }() + case 7: try { try decoder.decodeSingularStringField(value: &_storage._createdBy) }() + case 8: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() + case 9: try { try decoder.decodeSingularMessageField(value: &_storage._lastModifiedAt) }() + case 10: try { + var v: Clarifai_Api_Search? + var hadOneofValue = false + if let current = _storage._inputSource { + hadOneofValue = true + if case .search(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + _storage._inputSource = .search(v) + } + }() + case 11: try { + var v: Clarifai_Api_Dataset? + var hadOneofValue = false + if let current = _storage._inputSource { + hadOneofValue = true + if case .dataset(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + _storage._inputSource = .dataset(v) + } + }() + case 12: try { + var v: Clarifai_Api_Search? + var hadOneofValue = false + if let current = _storage._annotationSource { + hadOneofValue = true + if case .annotationSearch(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + _storage._annotationSource = .annotationSearch(v) + } + }() + default: break + } } } } public func traverse(visitor: inout V) throws { - if !self.datasetID.isEmpty { - try visitor.visitSingularStringField(value: self.datasetID, fieldNumber: 1) + 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.isEmpty { + try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) + } + try { if case .inputIds(let v)? = _storage._inputSource { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + try { if let v = _storage._operation { + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + } }() + if !_storage._appID.isEmpty { + try visitor.visitSingularStringField(value: _storage._appID, fieldNumber: 4) + } + try { if let v = _storage._status { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } }() + try { if let v = _storage._progress { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + } }() + if !_storage._createdBy.isEmpty { + try visitor.visitSingularStringField(value: _storage._createdBy, fieldNumber: 7) + } + try { if let v = _storage._createdAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 8) + } }() + try { if let v = _storage._lastModifiedAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 9) + } }() + switch _storage._inputSource { + case .search?: try { + guard case .search(let v)? = _storage._inputSource else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 10) + }() + case .dataset?: try { + guard case .dataset(let v)? = _storage._inputSource else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 11) + }() + default: break + } + try { if case .annotationSearch(let v)? = _storage._annotationSource { + try visitor.visitSingularMessageField(value: v, fieldNumber: 12) + } }() } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_AddToDataset, rhs: Clarifai_Api_AddToDataset) -> Bool { - if lhs.datasetID != rhs.datasetID {return false} + public static func ==(lhs: Clarifai_Api_BulkOperation, rhs: Clarifai_Api_BulkOperation) -> 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._inputSource != rhs_storage._inputSource {return false} + if _storage._annotationSource != rhs_storage._annotationSource {return false} + if _storage._operation != rhs_storage._operation {return false} + if _storage._appID != rhs_storage._appID {return false} + if _storage._status != rhs_storage._status {return false} + if _storage._progress != rhs_storage._progress {return false} + if _storage._createdBy != rhs_storage._createdBy {return false} + if _storage._createdAt != rhs_storage._createdAt {return false} + if _storage._lastModifiedAt != rhs_storage._lastModifiedAt {return false} + return true + } + if !storagesAreEqual {return false} + } if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_DeleteFromDataset: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".DeleteFromDataset" +extension Clarifai_Api_InputIDs: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".InputIDs" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "dataset_id"), + 1: .standard(proto: "input_ids"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -27265,31 +26459,31 @@ extension Clarifai_Api_DeleteFromDataset: SwiftProtobuf.Message, SwiftProtobuf._ // 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.datasetID) }() + case 1: try { try decoder.decodeRepeatedStringField(value: &self.inputIds) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.datasetID.isEmpty { - try visitor.visitSingularStringField(value: self.datasetID, fieldNumber: 1) + if !self.inputIds.isEmpty { + try visitor.visitRepeatedStringField(value: self.inputIds, fieldNumber: 1) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_DeleteFromDataset, rhs: Clarifai_Api_DeleteFromDataset) -> Bool { - if lhs.datasetID != rhs.datasetID {return false} + public static func ==(lhs: Clarifai_Api_InputIDs, rhs: Clarifai_Api_InputIDs) -> Bool { + if lhs.inputIds != rhs.inputIds {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_SplitIntoDatasets: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".SplitIntoDatasets" +extension Clarifai_Api_Progress: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Progress" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "dataset_splits"), - 2: .same(proto: "method"), + 1: .same(proto: "processed"), + 2: .standard(proto: "last_processed_id"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -27298,43 +26492,44 @@ extension Clarifai_Api_SplitIntoDatasets: SwiftProtobuf.Message, SwiftProtobuf._ // 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.datasetSplits) }() - case 2: try { try decoder.decodeSingularEnumField(value: &self.method) }() + case 1: try { try decoder.decodeSingularUInt32Field(value: &self.processed) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.lastProcessedID) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.datasetSplits.isEmpty { - try visitor.visitRepeatedMessageField(value: self.datasetSplits, fieldNumber: 1) + if self.processed != 0 { + try visitor.visitSingularUInt32Field(value: self.processed, fieldNumber: 1) } - if self.method != .notSet { - try visitor.visitSingularEnumField(value: self.method, fieldNumber: 2) + if !self.lastProcessedID.isEmpty { + try visitor.visitSingularStringField(value: self.lastProcessedID, fieldNumber: 2) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_SplitIntoDatasets, rhs: Clarifai_Api_SplitIntoDatasets) -> Bool { - if lhs.datasetSplits != rhs.datasetSplits {return false} - if lhs.method != rhs.method {return false} + public static func ==(lhs: Clarifai_Api_Progress, rhs: Clarifai_Api_Progress) -> Bool { + if lhs.processed != rhs.processed {return false} + if lhs.lastProcessedID != rhs.lastProcessedID {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_SplitIntoDatasets.DatasetSplitMethod: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "NOT_SET"), - 1: .same(proto: "RANDOM_PERCENTAGE_SPLIT"), - ] -} - -extension Clarifai_Api_DatasetSplit: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".DatasetSplit" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "dataset"), - 2: .same(proto: "percentage"), +extension Clarifai_Api_Operation: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Operation" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "add_concepts"), + 2: .standard(proto: "delete_concepts"), + 3: .standard(proto: "add_metadata"), + 4: .standard(proto: "delete_metadata"), + 5: .standard(proto: "overwrite_geo"), + 6: .standard(proto: "delete_geo"), + 7: .standard(proto: "delete_from_dataset"), + 8: .standard(proto: "add_to_dataset"), + 9: .standard(proto: "split_into_datasets"), + 10: .standard(proto: "delete_annotations"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -27343,13 +26538,134 @@ extension Clarifai_Api_DatasetSplit: SwiftProtobuf.Message, SwiftProtobuf._Messa // 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._dataset) }() + case 1: try { + var v: Clarifai_Api_AddConcepts? + var hadOneofValue = false + if let current = self.operation { + hadOneofValue = true + if case .addConcepts(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.operation = .addConcepts(v) + } + }() case 2: try { - var v: UInt32? - try decoder.decodeSingularUInt32Field(value: &v) + var v: Clarifai_Api_DeleteConcepts? + var hadOneofValue = false + if let current = self.operation { + hadOneofValue = true + if case .deleteConcepts(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) if let v = v { - if self.methodInfo != nil {try decoder.handleConflictingOneOf()} - self.methodInfo = .percentage(v) + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.operation = .deleteConcepts(v) + } + }() + case 3: try { + var v: Clarifai_Api_AddMetadata? + var hadOneofValue = false + if let current = self.operation { + hadOneofValue = true + if case .addMetadata(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.operation = .addMetadata(v) + } + }() + case 4: try { + var v: Clarifai_Api_DeleteMetadata? + var hadOneofValue = false + if let current = self.operation { + hadOneofValue = true + if case .deleteMetadata(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.operation = .deleteMetadata(v) + } + }() + case 5: try { + var v: Clarifai_Api_OverwriteGeo? + var hadOneofValue = false + if let current = self.operation { + hadOneofValue = true + if case .overwriteGeo(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.operation = .overwriteGeo(v) + } + }() + case 6: try { + var v: Clarifai_Api_DeleteGeo? + var hadOneofValue = false + if let current = self.operation { + hadOneofValue = true + if case .deleteGeo(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.operation = .deleteGeo(v) + } + }() + case 7: try { + var v: Clarifai_Api_DeleteFromDataset? + var hadOneofValue = false + if let current = self.operation { + hadOneofValue = true + if case .deleteFromDataset(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.operation = .deleteFromDataset(v) + } + }() + case 8: try { + var v: Clarifai_Api_AddToDataset? + var hadOneofValue = false + if let current = self.operation { + hadOneofValue = true + if case .addToDataset(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.operation = .addToDataset(v) + } + }() + case 9: try { + var v: Clarifai_Api_SplitIntoDatasets? + var hadOneofValue = false + if let current = self.operation { + hadOneofValue = true + if case .splitIntoDatasets(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.operation = .splitIntoDatasets(v) + } + }() + case 10: try { + var v: Clarifai_Api_DeleteAnnotations? + var hadOneofValue = false + if let current = self.annotationOperation { + hadOneofValue = true + if case .deleteAnnotations(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.annotationOperation = .deleteAnnotations(v) } }() default: break @@ -27362,181 +26678,96 @@ extension Clarifai_Api_DatasetSplit: SwiftProtobuf.Message, SwiftProtobuf._Messa // 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._dataset { + switch self.operation { + case .addConcepts?: try { + guard case .addConcepts(let v)? = self.operation else { preconditionFailure() } try visitor.visitSingularMessageField(value: v, fieldNumber: 1) - } }() - try { if case .percentage(let v)? = self.methodInfo { - try visitor.visitSingularUInt32Field(value: v, fieldNumber: 2) - } }() - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_DatasetSplit, rhs: Clarifai_Api_DatasetSplit) -> Bool { - if lhs._dataset != rhs._dataset {return false} - if lhs.methodInfo != rhs.methodInfo {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Clarifai_Api_DeleteAnnotations: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".DeleteAnnotations" - public static let _protobuf_nameMap = SwiftProtobuf._NameMap() - - public mutating func decodeMessage(decoder: inout D) throws { - while let _ = try decoder.nextFieldNumber() { + }() + case .deleteConcepts?: try { + guard case .deleteConcepts(let v)? = self.operation else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + }() + case .addMetadata?: try { + guard case .addMetadata(let v)? = self.operation else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + }() + case .deleteMetadata?: try { + guard case .deleteMetadata(let v)? = self.operation else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + }() + case .overwriteGeo?: try { + guard case .overwriteGeo(let v)? = self.operation else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + }() + case .deleteGeo?: try { + guard case .deleteGeo(let v)? = self.operation else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + }() + case .deleteFromDataset?: try { + guard case .deleteFromDataset(let v)? = self.operation else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 7) + }() + case .addToDataset?: try { + guard case .addToDataset(let v)? = self.operation else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 8) + }() + case .splitIntoDatasets?: try { + guard case .splitIntoDatasets(let v)? = self.operation else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 9) + }() + case nil: break } - } - - public func traverse(visitor: inout V) throws { + try { if case .deleteAnnotations(let v)? = self.annotationOperation { + try visitor.visitSingularMessageField(value: v, fieldNumber: 10) + } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_DeleteAnnotations, rhs: Clarifai_Api_DeleteAnnotations) -> Bool { - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Clarifai_Api_InputsAddJob: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".InputsAddJob" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 3: .standard(proto: "call_back_url"), - 4: .standard(proto: "app_pat"), - 7: .same(proto: "progress"), - 8: .standard(proto: "created_at"), - 9: .standard(proto: "modified_at"), - 10: .standard(proto: "extraction_jobs"), - 11: .same(proto: "uploads"), - 12: .same(proto: "status"), - ] - - fileprivate class _StorageClass { - var _id: String = String() - var _callBackURL: String = String() - var _appPat: String = String() - var _progress: Clarifai_Api_InputsAddJobProgress? = nil - var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _modifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _extractionJobs: [Clarifai_Api_InputsExtractionJob] = [] - var _uploads: [Clarifai_Api_Upload] = [] - var _status: Clarifai_Api_Status_Status? = nil - - static let defaultInstance = _StorageClass() - - private init() {} - - init(copying source: _StorageClass) { - _id = source._id - _callBackURL = source._callBackURL - _appPat = source._appPat - _progress = source._progress - _createdAt = source._createdAt - _modifiedAt = source._modifiedAt - _extractionJobs = source._extractionJobs - _uploads = source._uploads - _status = source._status - } + public static func ==(lhs: Clarifai_Api_Operation, rhs: Clarifai_Api_Operation) -> Bool { + if lhs.operation != rhs.operation {return false} + if lhs.annotationOperation != rhs.annotationOperation {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true } +} - fileprivate mutating func _uniqueStorage() -> _StorageClass { - if !isKnownUniquelyReferenced(&_storage) { - _storage = _StorageClass(copying: _storage) - } - return _storage - } +extension Clarifai_Api_AddConcepts: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".AddConcepts" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "concepts"), + ] 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.decodeSingularStringField(value: &_storage._id) }() - case 3: try { try decoder.decodeSingularStringField(value: &_storage._callBackURL) }() - case 4: try { try decoder.decodeSingularStringField(value: &_storage._appPat) }() - case 7: try { try decoder.decodeSingularMessageField(value: &_storage._progress) }() - case 8: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() - case 9: try { try decoder.decodeSingularMessageField(value: &_storage._modifiedAt) }() - case 10: try { try decoder.decodeRepeatedMessageField(value: &_storage._extractionJobs) }() - case 11: try { try decoder.decodeRepeatedMessageField(value: &_storage._uploads) }() - case 12: try { try decoder.decodeSingularMessageField(value: &_storage._status) }() - default: break - } + 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.concepts) }() + 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.isEmpty { - try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) - } - if !_storage._callBackURL.isEmpty { - try visitor.visitSingularStringField(value: _storage._callBackURL, fieldNumber: 3) - } - if !_storage._appPat.isEmpty { - try visitor.visitSingularStringField(value: _storage._appPat, fieldNumber: 4) - } - try { if let v = _storage._progress { - try visitor.visitSingularMessageField(value: v, fieldNumber: 7) - } }() - try { if let v = _storage._createdAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 8) - } }() - try { if let v = _storage._modifiedAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 9) - } }() - if !_storage._extractionJobs.isEmpty { - try visitor.visitRepeatedMessageField(value: _storage._extractionJobs, fieldNumber: 10) - } - if !_storage._uploads.isEmpty { - try visitor.visitRepeatedMessageField(value: _storage._uploads, fieldNumber: 11) - } - try { if let v = _storage._status { - try visitor.visitSingularMessageField(value: v, fieldNumber: 12) - } }() + if !self.concepts.isEmpty { + try visitor.visitRepeatedMessageField(value: self.concepts, fieldNumber: 1) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_InputsAddJob, rhs: Clarifai_Api_InputsAddJob) -> 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._callBackURL != rhs_storage._callBackURL {return false} - if _storage._appPat != rhs_storage._appPat {return false} - if _storage._progress != rhs_storage._progress {return false} - if _storage._createdAt != rhs_storage._createdAt {return false} - if _storage._modifiedAt != rhs_storage._modifiedAt {return false} - if _storage._extractionJobs != rhs_storage._extractionJobs {return false} - if _storage._uploads != rhs_storage._uploads {return false} - if _storage._status != rhs_storage._status {return false} - return true - } - if !storagesAreEqual {return false} - } + public static func ==(lhs: Clarifai_Api_AddConcepts, rhs: Clarifai_Api_AddConcepts) -> Bool { + if lhs.concepts != rhs.concepts {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_InputsAddJobProgress: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".InputsAddJobProgress" +extension Clarifai_Api_DeleteConcepts: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".DeleteConcepts" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "pending_count"), - 2: .standard(proto: "in_progress_count"), - 3: .standard(proto: "success_count"), - 4: .standard(proto: "failed_count"), + 1: .same(proto: "concepts"), + 2: .standard(proto: "user_ids"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -27545,171 +26776,71 @@ extension Clarifai_Api_InputsAddJobProgress: SwiftProtobuf.Message, SwiftProtobu // 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.pendingCount) }() - case 2: try { try decoder.decodeSingularUInt64Field(value: &self.inProgressCount) }() - case 3: try { try decoder.decodeSingularUInt64Field(value: &self.successCount) }() - case 4: try { try decoder.decodeSingularUInt64Field(value: &self.failedCount) }() + case 1: try { try decoder.decodeRepeatedMessageField(value: &self.concepts) }() + case 2: try { try decoder.decodeRepeatedStringField(value: &self.userIds) }() default: break } } } public func traverse(visitor: inout V) throws { - if self.pendingCount != 0 { - try visitor.visitSingularUInt64Field(value: self.pendingCount, fieldNumber: 1) - } - if self.inProgressCount != 0 { - try visitor.visitSingularUInt64Field(value: self.inProgressCount, fieldNumber: 2) - } - if self.successCount != 0 { - try visitor.visitSingularUInt64Field(value: self.successCount, fieldNumber: 3) + if !self.concepts.isEmpty { + try visitor.visitRepeatedMessageField(value: self.concepts, fieldNumber: 1) } - if self.failedCount != 0 { - try visitor.visitSingularUInt64Field(value: self.failedCount, fieldNumber: 4) + if !self.userIds.isEmpty { + try visitor.visitRepeatedStringField(value: self.userIds, fieldNumber: 2) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_InputsAddJobProgress, rhs: Clarifai_Api_InputsAddJobProgress) -> Bool { - if lhs.pendingCount != rhs.pendingCount {return false} - if lhs.inProgressCount != rhs.inProgressCount {return false} - if lhs.successCount != rhs.successCount {return false} - if lhs.failedCount != rhs.failedCount {return false} + public static func ==(lhs: Clarifai_Api_DeleteConcepts, rhs: Clarifai_Api_DeleteConcepts) -> Bool { + if lhs.concepts != rhs.concepts {return false} + if lhs.userIds != rhs.userIds {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_Upload: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Upload" +extension Clarifai_Api_AddMetadata: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".AddMetadata" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .standard(proto: "created_at"), - 3: .standard(proto: "modified_at"), - 4: .standard(proto: "expires_at"), - 5: .same(proto: "status"), - 8: .standard(proto: "content_name"), - 6: .standard(proto: "content_length"), - 7: .standard(proto: "content_url"), + 1: .same(proto: "metadata"), ] - fileprivate class _StorageClass { - var _id: String = String() - var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _modifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _expiresAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _status: Clarifai_Api_Status_Status? = nil - var _contentName: String = String() - var _contentLength: UInt64 = 0 - var _contentURL: String = String() - - static let defaultInstance = _StorageClass() - - private init() {} - - init(copying source: _StorageClass) { - _id = source._id - _createdAt = source._createdAt - _modifiedAt = source._modifiedAt - _expiresAt = source._expiresAt - _status = source._status - _contentName = source._contentName - _contentLength = source._contentLength - _contentURL = source._contentURL - } - } - - 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.decodeSingularStringField(value: &_storage._id) }() - case 2: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() - case 3: try { try decoder.decodeSingularMessageField(value: &_storage._modifiedAt) }() - case 4: try { try decoder.decodeSingularMessageField(value: &_storage._expiresAt) }() - case 5: try { try decoder.decodeSingularMessageField(value: &_storage._status) }() - case 6: try { try decoder.decodeSingularUInt64Field(value: &_storage._contentLength) }() - case 7: try { try decoder.decodeSingularStringField(value: &_storage._contentURL) }() - case 8: try { try decoder.decodeSingularStringField(value: &_storage._contentName) }() - default: break - } + 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._metadata) }() + 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.isEmpty { - try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) - } - try { if let v = _storage._createdAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - try { if let v = _storage._modifiedAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - } }() - try { if let v = _storage._expiresAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 4) - } }() - try { if let v = _storage._status { - try visitor.visitSingularMessageField(value: v, fieldNumber: 5) - } }() - if _storage._contentLength != 0 { - try visitor.visitSingularUInt64Field(value: _storage._contentLength, fieldNumber: 6) - } - if !_storage._contentURL.isEmpty { - try visitor.visitSingularStringField(value: _storage._contentURL, fieldNumber: 7) - } - if !_storage._contentName.isEmpty { - try visitor.visitSingularStringField(value: _storage._contentName, fieldNumber: 8) - } - } + // 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._metadata { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_Upload, rhs: Clarifai_Api_Upload) -> 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._modifiedAt != rhs_storage._modifiedAt {return false} - if _storage._expiresAt != rhs_storage._expiresAt {return false} - if _storage._status != rhs_storage._status {return false} - if _storage._contentName != rhs_storage._contentName {return false} - if _storage._contentLength != rhs_storage._contentLength {return false} - if _storage._contentURL != rhs_storage._contentURL {return false} - return true - } - if !storagesAreEqual {return false} - } + public static func ==(lhs: Clarifai_Api_AddMetadata, rhs: Clarifai_Api_AddMetadata) -> Bool { + if lhs._metadata != rhs._metadata {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_UploadContentPart: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".UploadContentPart" +extension Clarifai_Api_DeleteMetadata: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".DeleteMetadata" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "range_start"), - 2: .standard(proto: "part_number"), - 3: .same(proto: "data"), + 1: .same(proto: "metadata"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -27718,171 +26849,121 @@ extension Clarifai_Api_UploadContentPart: SwiftProtobuf.Message, SwiftProtobuf._ // 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.rangeStart) }() - case 2: try { try decoder.decodeSingularInt64Field(value: &self.partNumber) }() - case 3: try { try decoder.decodeSingularBytesField(value: &self.data) }() + case 1: try { try decoder.decodeSingularMessageField(value: &self._metadata) }() default: break } } } public func traverse(visitor: inout V) throws { - if self.rangeStart != 0 { - try visitor.visitSingularUInt64Field(value: self.rangeStart, fieldNumber: 1) - } - if self.partNumber != 0 { - try visitor.visitSingularInt64Field(value: self.partNumber, fieldNumber: 2) - } - if !self.data.isEmpty { - try visitor.visitSingularBytesField(value: self.data, fieldNumber: 3) - } + // 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._metadata { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_UploadContentPart, rhs: Clarifai_Api_UploadContentPart) -> Bool { - if lhs.rangeStart != rhs.rangeStart {return false} - if lhs.partNumber != rhs.partNumber {return false} - if lhs.data != rhs.data {return false} + public static func ==(lhs: Clarifai_Api_DeleteMetadata, rhs: Clarifai_Api_DeleteMetadata) -> Bool { + if lhs._metadata != rhs._metadata {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_InputsExtractionJob: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".InputsExtractionJob" +extension Clarifai_Api_OverwriteGeo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".OverwriteGeo" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "status"), - 2: .same(proto: "id"), - 3: .same(proto: "url"), - 4: .same(proto: "progress"), - 5: .standard(proto: "created_at"), - 6: .standard(proto: "modified_at"), - 7: .standard(proto: "input_id_conflict_resolution"), - 8: .standard(proto: "input_template"), + 1: .same(proto: "geo"), ] - fileprivate class _StorageClass { - var _status: Clarifai_Api_Status_Status? = nil - var _id: String = String() - var _url: String = String() - var _progress: Clarifai_Api_InputsExtractionJobProgress? = nil - var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _modifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _inputIDConflictResolution: Clarifai_Api_InputIDConflictResolution = .notSet - var _inputTemplate: Clarifai_Api_Input? = nil + 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._geo) }() + default: break + } + } + } - static let defaultInstance = _StorageClass() + 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._geo { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } }() + try unknownFields.traverse(visitor: &visitor) + } - private init() {} + public static func ==(lhs: Clarifai_Api_OverwriteGeo, rhs: Clarifai_Api_OverwriteGeo) -> Bool { + if lhs._geo != rhs._geo {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} - init(copying source: _StorageClass) { - _status = source._status - _id = source._id - _url = source._url - _progress = source._progress - _createdAt = source._createdAt - _modifiedAt = source._modifiedAt - _inputIDConflictResolution = source._inputIDConflictResolution - _inputTemplate = source._inputTemplate +extension Clarifai_Api_DeleteGeo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".DeleteGeo" + public static let _protobuf_nameMap = SwiftProtobuf._NameMap() + + public mutating func decodeMessage(decoder: inout D) throws { + while let _ = try decoder.nextFieldNumber() { } } - fileprivate mutating func _uniqueStorage() -> _StorageClass { - if !isKnownUniquelyReferenced(&_storage) { - _storage = _StorageClass(copying: _storage) - } - return _storage + public func traverse(visitor: inout V) throws { + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Clarifai_Api_DeleteGeo, rhs: Clarifai_Api_DeleteGeo) -> Bool { + if lhs.unknownFields != rhs.unknownFields {return false} + return true } +} + +extension Clarifai_Api_AddToDataset: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".AddToDataset" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "dataset_id"), + ] 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.decodeSingularMessageField(value: &_storage._status) }() - case 2: try { try decoder.decodeSingularStringField(value: &_storage._id) }() - case 3: try { try decoder.decodeSingularStringField(value: &_storage._url) }() - case 4: try { try decoder.decodeSingularMessageField(value: &_storage._progress) }() - case 5: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() - case 6: try { try decoder.decodeSingularMessageField(value: &_storage._modifiedAt) }() - case 7: try { try decoder.decodeSingularEnumField(value: &_storage._inputIDConflictResolution) }() - case 8: try { try decoder.decodeSingularMessageField(value: &_storage._inputTemplate) }() - default: break - } + 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.datasetID) }() + 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 - try { if let v = _storage._status { - try visitor.visitSingularMessageField(value: v, fieldNumber: 1) - } }() - if !_storage._id.isEmpty { - try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 2) - } - if !_storage._url.isEmpty { - try visitor.visitSingularStringField(value: _storage._url, fieldNumber: 3) - } - try { if let v = _storage._progress { - try visitor.visitSingularMessageField(value: v, fieldNumber: 4) - } }() - try { if let v = _storage._createdAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 5) - } }() - try { if let v = _storage._modifiedAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) - } }() - if _storage._inputIDConflictResolution != .notSet { - try visitor.visitSingularEnumField(value: _storage._inputIDConflictResolution, fieldNumber: 7) - } - try { if let v = _storage._inputTemplate { - try visitor.visitSingularMessageField(value: v, fieldNumber: 8) - } }() + if !self.datasetID.isEmpty { + try visitor.visitSingularStringField(value: self.datasetID, fieldNumber: 1) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_InputsExtractionJob, rhs: Clarifai_Api_InputsExtractionJob) -> 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._status != rhs_storage._status {return false} - if _storage._id != rhs_storage._id {return false} - if _storage._url != rhs_storage._url {return false} - if _storage._progress != rhs_storage._progress {return false} - if _storage._createdAt != rhs_storage._createdAt {return false} - if _storage._modifiedAt != rhs_storage._modifiedAt {return false} - if _storage._inputIDConflictResolution != rhs_storage._inputIDConflictResolution {return false} - if _storage._inputTemplate != rhs_storage._inputTemplate {return false} - return true - } - if !storagesAreEqual {return false} - } + public static func ==(lhs: Clarifai_Api_AddToDataset, rhs: Clarifai_Api_AddToDataset) -> Bool { + if lhs.datasetID != rhs.datasetID {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_InputsExtractionJobProgress: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".InputsExtractionJobProgress" +extension Clarifai_Api_DeleteFromDataset: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".DeleteFromDataset" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 2: .standard(proto: "audio_inputs_count"), - 3: .standard(proto: "image_inputs_count"), - 4: .standard(proto: "video_inputs_count"), - 5: .standard(proto: "text_inputs_count"), - 6: .standard(proto: "pending_archives_count"), - 7: .standard(proto: "in_progress_archives_count"), - 8: .standard(proto: "completed_archives_count"), - 9: .standard(proto: "failed_archives_count"), + 1: .standard(proto: "dataset_id"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -27891,68 +26972,31 @@ extension Clarifai_Api_InputsExtractionJobProgress: SwiftProtobuf.Message, Swift // allocates stack space for every case branch when no optimizations are // enabled. https://github.com/apple/swift-protobuf/issues/1034 switch fieldNumber { - case 2: try { try decoder.decodeSingularUInt64Field(value: &self.audioInputsCount) }() - case 3: try { try decoder.decodeSingularUInt64Field(value: &self.imageInputsCount) }() - case 4: try { try decoder.decodeSingularUInt64Field(value: &self.videoInputsCount) }() - case 5: try { try decoder.decodeSingularUInt64Field(value: &self.textInputsCount) }() - case 6: try { try decoder.decodeSingularUInt64Field(value: &self.pendingArchivesCount) }() - case 7: try { try decoder.decodeSingularUInt64Field(value: &self.inProgressArchivesCount) }() - case 8: try { try decoder.decodeSingularUInt64Field(value: &self.completedArchivesCount) }() - case 9: try { try decoder.decodeSingularUInt64Field(value: &self.failedArchivesCount) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.datasetID) }() default: break } } } public func traverse(visitor: inout V) throws { - if self.audioInputsCount != 0 { - try visitor.visitSingularUInt64Field(value: self.audioInputsCount, fieldNumber: 2) - } - if self.imageInputsCount != 0 { - try visitor.visitSingularUInt64Field(value: self.imageInputsCount, fieldNumber: 3) - } - if self.videoInputsCount != 0 { - try visitor.visitSingularUInt64Field(value: self.videoInputsCount, fieldNumber: 4) - } - if self.textInputsCount != 0 { - try visitor.visitSingularUInt64Field(value: self.textInputsCount, fieldNumber: 5) - } - if self.pendingArchivesCount != 0 { - try visitor.visitSingularUInt64Field(value: self.pendingArchivesCount, fieldNumber: 6) - } - if self.inProgressArchivesCount != 0 { - try visitor.visitSingularUInt64Field(value: self.inProgressArchivesCount, fieldNumber: 7) - } - if self.completedArchivesCount != 0 { - try visitor.visitSingularUInt64Field(value: self.completedArchivesCount, fieldNumber: 8) - } - if self.failedArchivesCount != 0 { - try visitor.visitSingularUInt64Field(value: self.failedArchivesCount, fieldNumber: 9) + if !self.datasetID.isEmpty { + try visitor.visitSingularStringField(value: self.datasetID, fieldNumber: 1) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_InputsExtractionJobProgress, rhs: Clarifai_Api_InputsExtractionJobProgress) -> Bool { - if lhs.audioInputsCount != rhs.audioInputsCount {return false} - if lhs.imageInputsCount != rhs.imageInputsCount {return false} - if lhs.videoInputsCount != rhs.videoInputsCount {return false} - if lhs.textInputsCount != rhs.textInputsCount {return false} - if lhs.pendingArchivesCount != rhs.pendingArchivesCount {return false} - if lhs.inProgressArchivesCount != rhs.inProgressArchivesCount {return false} - if lhs.completedArchivesCount != rhs.completedArchivesCount {return false} - if lhs.failedArchivesCount != rhs.failedArchivesCount {return false} + public static func ==(lhs: Clarifai_Api_DeleteFromDataset, rhs: Clarifai_Api_DeleteFromDataset) -> Bool { + if lhs.datasetID != rhs.datasetID {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_InputsDataSource: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".InputsDataSource" +extension Clarifai_Api_SplitIntoDatasets: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".SplitIntoDatasets" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "inputs_add_job_id"), - 2: .same(proto: "url"), - 3: .standard(proto: "input_id_conflict_resolution"), - 4: .standard(proto: "input_template"), + 1: .standard(proto: "dataset_splits"), + 2: .same(proto: "method"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -27961,50 +27005,43 @@ extension Clarifai_Api_InputsDataSource: SwiftProtobuf.Message, SwiftProtobuf._M // 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.inputsAddJobID) }() - case 2: try { try decoder.decodeSingularMessageField(value: &self._url) }() - case 3: try { try decoder.decodeSingularEnumField(value: &self.inputIDConflictResolution) }() - case 4: try { try decoder.decodeSingularMessageField(value: &self._inputTemplate) }() + case 1: try { try decoder.decodeRepeatedMessageField(value: &self.datasetSplits) }() + case 2: try { try decoder.decodeSingularEnumField(value: &self.method) }() 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.inputsAddJobID.isEmpty { - try visitor.visitSingularStringField(value: self.inputsAddJobID, fieldNumber: 1) + if !self.datasetSplits.isEmpty { + try visitor.visitRepeatedMessageField(value: self.datasetSplits, fieldNumber: 1) } - try { if let v = self._url { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - if self.inputIDConflictResolution != .notSet { - try visitor.visitSingularEnumField(value: self.inputIDConflictResolution, fieldNumber: 3) + if self.method != .notSet { + try visitor.visitSingularEnumField(value: self.method, fieldNumber: 2) } - try { if let v = self._inputTemplate { - try visitor.visitSingularMessageField(value: v, fieldNumber: 4) - } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_InputsDataSource, rhs: Clarifai_Api_InputsDataSource) -> Bool { - if lhs.inputsAddJobID != rhs.inputsAddJobID {return false} - if lhs._url != rhs._url {return false} - if lhs.inputIDConflictResolution != rhs.inputIDConflictResolution {return false} - if lhs._inputTemplate != rhs._inputTemplate {return false} + public static func ==(lhs: Clarifai_Api_SplitIntoDatasets, rhs: Clarifai_Api_SplitIntoDatasets) -> Bool { + if lhs.datasetSplits != rhs.datasetSplits {return false} + if lhs.method != rhs.method {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_DataSourceURL: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".DataSourceURL" +extension Clarifai_Api_SplitIntoDatasets.DatasetSplitMethod: SwiftProtobuf._ProtoNameProviding { public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "url"), - 2: .same(proto: "credentials"), + 0: .same(proto: "NOT_SET"), + 1: .same(proto: "RANDOM_PERCENTAGE_SPLIT"), + ] +} + +extension Clarifai_Api_DatasetSplit: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".DatasetSplit" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "dataset"), + 2: .same(proto: "percentage"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -28013,8 +27050,15 @@ extension Clarifai_Api_DataSourceURL: SwiftProtobuf.Message, SwiftProtobuf._Mess // 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.url) }() - case 2: try { try decoder.decodeSingularMessageField(value: &self._credentials) }() + case 1: try { try decoder.decodeSingularMessageField(value: &self._dataset) }() + case 2: try { + var v: UInt32? + try decoder.decodeSingularUInt32Field(value: &v) + if let v = v { + if self.methodInfo != nil {try decoder.handleConflictingOneOf()} + self.methodInfo = .percentage(v) + } + }() default: break } } @@ -28025,113 +27069,181 @@ extension Clarifai_Api_DataSourceURL: SwiftProtobuf.Message, SwiftProtobuf._Mess // 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.url.isEmpty { - try visitor.visitSingularStringField(value: self.url, fieldNumber: 1) - } - try { if let v = self._credentials { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + try { if let v = self._dataset { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } }() + try { if case .percentage(let v)? = self.methodInfo { + try visitor.visitSingularUInt32Field(value: v, fieldNumber: 2) } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_DataSourceURL, rhs: Clarifai_Api_DataSourceURL) -> Bool { - if lhs.url != rhs.url {return false} - if lhs._credentials != rhs._credentials {return false} + public static func ==(lhs: Clarifai_Api_DatasetSplit, rhs: Clarifai_Api_DatasetSplit) -> Bool { + if lhs._dataset != rhs._dataset {return false} + if lhs.methodInfo != rhs.methodInfo {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_DataSourceCredentials: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".DataSourceCredentials" +extension Clarifai_Api_DeleteAnnotations: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".DeleteAnnotations" + public static let _protobuf_nameMap = SwiftProtobuf._NameMap() + + public mutating func decodeMessage(decoder: inout D) throws { + while let _ = try decoder.nextFieldNumber() { + } + } + + public func traverse(visitor: inout V) throws { + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Clarifai_Api_DeleteAnnotations, rhs: Clarifai_Api_DeleteAnnotations) -> Bool { + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Clarifai_Api_InputsAddJob: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".InputsAddJob" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "s3_creds"), - 2: .standard(proto: "gcp_creds"), - 4: .standard(proto: "azure_blob_creds"), + 1: .same(proto: "id"), + 3: .standard(proto: "call_back_url"), + 4: .standard(proto: "app_pat"), + 7: .same(proto: "progress"), + 8: .standard(proto: "created_at"), + 9: .standard(proto: "modified_at"), + 10: .standard(proto: "extraction_jobs"), + 11: .same(proto: "uploads"), + 12: .same(proto: "status"), ] + fileprivate class _StorageClass { + var _id: String = String() + var _callBackURL: String = String() + var _appPat: String = String() + var _progress: Clarifai_Api_InputsAddJobProgress? = nil + var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _modifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _extractionJobs: [Clarifai_Api_InputsExtractionJob] = [] + var _uploads: [Clarifai_Api_Upload] = [] + var _status: Clarifai_Api_Status_Status? = nil + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _id = source._id + _callBackURL = source._callBackURL + _appPat = source._appPat + _progress = source._progress + _createdAt = source._createdAt + _modifiedAt = source._modifiedAt + _extractionJobs = source._extractionJobs + _uploads = source._uploads + _status = source._status + } + } + + 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 { - var v: Clarifai_Api_AWSCreds? - var hadOneofValue = false - if let current = self.credentials { - hadOneofValue = true - if case .s3Creds(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - self.credentials = .s3Creds(v) - } - }() - case 2: try { - var v: Data? - try decoder.decodeSingularBytesField(value: &v) - if let v = v { - if self.credentials != nil {try decoder.handleConflictingOneOf()} - self.credentials = .gcpCreds(v) - } - }() - case 4: try { - var v: Clarifai_Api_AzureBlobCreds? - var hadOneofValue = false - if let current = self.credentials { - hadOneofValue = true - if case .azureBlobCreds(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - self.credentials = .azureBlobCreds(v) + _ = _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.decodeSingularStringField(value: &_storage._id) }() + case 3: try { try decoder.decodeSingularStringField(value: &_storage._callBackURL) }() + case 4: try { try decoder.decodeSingularStringField(value: &_storage._appPat) }() + case 7: try { try decoder.decodeSingularMessageField(value: &_storage._progress) }() + case 8: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() + case 9: try { try decoder.decodeSingularMessageField(value: &_storage._modifiedAt) }() + case 10: try { try decoder.decodeRepeatedMessageField(value: &_storage._extractionJobs) }() + case 11: try { try decoder.decodeRepeatedMessageField(value: &_storage._uploads) }() + case 12: try { try decoder.decodeSingularMessageField(value: &_storage._status) }() + default: break } - }() - 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 - switch self.credentials { - case .s3Creds?: try { - guard case .s3Creds(let v)? = self.credentials else { preconditionFailure() } - try visitor.visitSingularMessageField(value: v, fieldNumber: 1) - }() - case .gcpCreds?: try { - guard case .gcpCreds(let v)? = self.credentials else { preconditionFailure() } - try visitor.visitSingularBytesField(value: v, fieldNumber: 2) - }() - case .azureBlobCreds?: try { - guard case .azureBlobCreds(let v)? = self.credentials else { preconditionFailure() } - try visitor.visitSingularMessageField(value: v, fieldNumber: 4) - }() - case nil: break + 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.isEmpty { + try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) + } + if !_storage._callBackURL.isEmpty { + try visitor.visitSingularStringField(value: _storage._callBackURL, fieldNumber: 3) + } + if !_storage._appPat.isEmpty { + try visitor.visitSingularStringField(value: _storage._appPat, fieldNumber: 4) + } + try { if let v = _storage._progress { + try visitor.visitSingularMessageField(value: v, fieldNumber: 7) + } }() + try { if let v = _storage._createdAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 8) + } }() + try { if let v = _storage._modifiedAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 9) + } }() + if !_storage._extractionJobs.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._extractionJobs, fieldNumber: 10) + } + if !_storage._uploads.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._uploads, fieldNumber: 11) + } + try { if let v = _storage._status { + try visitor.visitSingularMessageField(value: v, fieldNumber: 12) + } }() } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_DataSourceCredentials, rhs: Clarifai_Api_DataSourceCredentials) -> Bool { - if lhs.credentials != rhs.credentials {return false} + public static func ==(lhs: Clarifai_Api_InputsAddJob, rhs: Clarifai_Api_InputsAddJob) -> 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._callBackURL != rhs_storage._callBackURL {return false} + if _storage._appPat != rhs_storage._appPat {return false} + if _storage._progress != rhs_storage._progress {return false} + if _storage._createdAt != rhs_storage._createdAt {return false} + if _storage._modifiedAt != rhs_storage._modifiedAt {return false} + if _storage._extractionJobs != rhs_storage._extractionJobs {return false} + if _storage._uploads != rhs_storage._uploads {return false} + if _storage._status != rhs_storage._status {return false} + return true + } + if !storagesAreEqual {return false} + } if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_AWSCreds: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".AWSCreds" +extension Clarifai_Api_InputsAddJobProgress: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".InputsAddJobProgress" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 2: .same(proto: "region"), - 3: .same(proto: "id"), - 4: .same(proto: "secret"), - 5: .same(proto: "token"), + 1: .standard(proto: "pending_count"), + 2: .standard(proto: "in_progress_count"), + 3: .standard(proto: "success_count"), + 4: .standard(proto: "failed_count"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -28140,146 +27252,171 @@ extension Clarifai_Api_AWSCreds: 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 2: try { try decoder.decodeSingularStringField(value: &self.region) }() - case 3: try { try decoder.decodeSingularStringField(value: &self.id) }() - case 4: try { try decoder.decodeSingularStringField(value: &self.secret) }() - case 5: try { try decoder.decodeSingularStringField(value: &self.token) }() + case 1: try { try decoder.decodeSingularUInt64Field(value: &self.pendingCount) }() + case 2: try { try decoder.decodeSingularUInt64Field(value: &self.inProgressCount) }() + case 3: try { try decoder.decodeSingularUInt64Field(value: &self.successCount) }() + case 4: try { try decoder.decodeSingularUInt64Field(value: &self.failedCount) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.region.isEmpty { - try visitor.visitSingularStringField(value: self.region, fieldNumber: 2) + if self.pendingCount != 0 { + try visitor.visitSingularUInt64Field(value: self.pendingCount, fieldNumber: 1) } - if !self.id.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 3) + if self.inProgressCount != 0 { + try visitor.visitSingularUInt64Field(value: self.inProgressCount, fieldNumber: 2) } - if !self.secret.isEmpty { - try visitor.visitSingularStringField(value: self.secret, fieldNumber: 4) + if self.successCount != 0 { + try visitor.visitSingularUInt64Field(value: self.successCount, fieldNumber: 3) } - if !self.token.isEmpty { - try visitor.visitSingularStringField(value: self.token, fieldNumber: 5) + if self.failedCount != 0 { + try visitor.visitSingularUInt64Field(value: self.failedCount, fieldNumber: 4) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_AWSCreds, rhs: Clarifai_Api_AWSCreds) -> Bool { - if lhs.region != rhs.region {return false} - if lhs.id != rhs.id {return false} - if lhs.secret != rhs.secret {return false} - if lhs.token != rhs.token {return false} + public static func ==(lhs: Clarifai_Api_InputsAddJobProgress, rhs: Clarifai_Api_InputsAddJobProgress) -> Bool { + if lhs.pendingCount != rhs.pendingCount {return false} + if lhs.inProgressCount != rhs.inProgressCount {return false} + if lhs.successCount != rhs.successCount {return false} + if lhs.failedCount != rhs.failedCount {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_AzureBlobCreds: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".AzureBlobCreds" +extension Clarifai_Api_Upload: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Upload" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "account_name"), - 2: .standard(proto: "account_key"), + 1: .same(proto: "id"), + 2: .standard(proto: "created_at"), + 3: .standard(proto: "modified_at"), + 4: .standard(proto: "expires_at"), + 5: .same(proto: "status"), + 8: .standard(proto: "content_name"), + 6: .standard(proto: "content_length"), + 7: .standard(proto: "content_url"), ] - 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.accountName) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.accountKey) }() - default: break - } - } - } + fileprivate class _StorageClass { + var _id: String = String() + var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _modifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _expiresAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _status: Clarifai_Api_Status_Status? = nil + var _contentName: String = String() + var _contentLength: UInt64 = 0 + var _contentURL: String = String() - public func traverse(visitor: inout V) throws { - if !self.accountName.isEmpty { - try visitor.visitSingularStringField(value: self.accountName, fieldNumber: 1) - } - if !self.accountKey.isEmpty { - try visitor.visitSingularStringField(value: self.accountKey, fieldNumber: 2) + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _id = source._id + _createdAt = source._createdAt + _modifiedAt = source._modifiedAt + _expiresAt = source._expiresAt + _status = source._status + _contentName = source._contentName + _contentLength = source._contentLength + _contentURL = source._contentURL } - try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_AzureBlobCreds, rhs: Clarifai_Api_AzureBlobCreds) -> Bool { - if lhs.accountName != rhs.accountName {return false} - if lhs.accountKey != rhs.accountKey {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true + fileprivate mutating func _uniqueStorage() -> _StorageClass { + if !isKnownUniquelyReferenced(&_storage) { + _storage = _StorageClass(copying: _storage) + } + return _storage } -} - -extension Clarifai_Api_InputsUpload: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".InputsUpload" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "inputs_add_job_id"), - 2: .standard(proto: "app_pat"), - 3: .same(proto: "upload"), - 4: .standard(proto: "input_id_conflict_resolution"), - 5: .standard(proto: "input_template"), - ] 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.inputsAddJobID) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.appPat) }() - case 3: try { try decoder.decodeSingularMessageField(value: &self._upload) }() - case 4: try { try decoder.decodeSingularEnumField(value: &self.inputIDConflictResolution) }() - case 5: try { try decoder.decodeSingularMessageField(value: &self._inputTemplate) }() - 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.decodeSingularStringField(value: &_storage._id) }() + case 2: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() + case 3: try { try decoder.decodeSingularMessageField(value: &_storage._modifiedAt) }() + case 4: try { try decoder.decodeSingularMessageField(value: &_storage._expiresAt) }() + case 5: try { try decoder.decodeSingularMessageField(value: &_storage._status) }() + case 6: try { try decoder.decodeSingularUInt64Field(value: &_storage._contentLength) }() + case 7: try { try decoder.decodeSingularStringField(value: &_storage._contentURL) }() + case 8: try { try decoder.decodeSingularStringField(value: &_storage._contentName) }() + 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.inputsAddJobID.isEmpty { - try visitor.visitSingularStringField(value: self.inputsAddJobID, fieldNumber: 1) - } - if !self.appPat.isEmpty { - try visitor.visitSingularStringField(value: self.appPat, fieldNumber: 2) - } - try { if let v = self._upload { - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - } }() - if self.inputIDConflictResolution != .notSet { - try visitor.visitSingularEnumField(value: self.inputIDConflictResolution, fieldNumber: 4) + 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.isEmpty { + try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) + } + try { if let v = _storage._createdAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + try { if let v = _storage._modifiedAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + } }() + try { if let v = _storage._expiresAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + } }() + try { if let v = _storage._status { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } }() + if _storage._contentLength != 0 { + try visitor.visitSingularUInt64Field(value: _storage._contentLength, fieldNumber: 6) + } + if !_storage._contentURL.isEmpty { + try visitor.visitSingularStringField(value: _storage._contentURL, fieldNumber: 7) + } + if !_storage._contentName.isEmpty { + try visitor.visitSingularStringField(value: _storage._contentName, fieldNumber: 8) + } } - try { if let v = self._inputTemplate { - try visitor.visitSingularMessageField(value: v, fieldNumber: 5) - } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_InputsUpload, rhs: Clarifai_Api_InputsUpload) -> Bool { - if lhs.inputsAddJobID != rhs.inputsAddJobID {return false} - if lhs.appPat != rhs.appPat {return false} - if lhs._upload != rhs._upload {return false} - if lhs.inputIDConflictResolution != rhs.inputIDConflictResolution {return false} - if lhs._inputTemplate != rhs._inputTemplate {return false} + public static func ==(lhs: Clarifai_Api_Upload, rhs: Clarifai_Api_Upload) -> 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._modifiedAt != rhs_storage._modifiedAt {return false} + if _storage._expiresAt != rhs_storage._expiresAt {return false} + if _storage._status != rhs_storage._status {return false} + if _storage._contentName != rhs_storage._contentName {return false} + if _storage._contentLength != rhs_storage._contentLength {return false} + if _storage._contentURL != rhs_storage._contentURL {return false} + return true + } + if !storagesAreEqual {return false} + } if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_BookmarkOrigin: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".BookmarkOrigin" +extension Clarifai_Api_UploadContentPart: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".UploadContentPart" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .standard(proto: "app_id"), - 3: .standard(proto: "user_id"), - 4: .standard(proto: "resource_type"), + 1: .standard(proto: "range_start"), + 2: .standard(proto: "part_number"), + 3: .same(proto: "data"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -28288,93 +27425,72 @@ extension Clarifai_Api_BookmarkOrigin: 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.decodeSingularStringField(value: &self.id) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.appID) }() - case 3: try { try decoder.decodeSingularStringField(value: &self.userID) }() - case 4: try { try decoder.decodeSingularEnumField(value: &self.resourceType) }() + case 1: try { try decoder.decodeSingularUInt64Field(value: &self.rangeStart) }() + case 2: try { try decoder.decodeSingularInt64Field(value: &self.partNumber) }() + case 3: try { try decoder.decodeSingularBytesField(value: &self.data) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.id.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) - } - if !self.appID.isEmpty { - try visitor.visitSingularStringField(value: self.appID, fieldNumber: 2) + if self.rangeStart != 0 { + try visitor.visitSingularUInt64Field(value: self.rangeStart, fieldNumber: 1) } - if !self.userID.isEmpty { - try visitor.visitSingularStringField(value: self.userID, fieldNumber: 3) + if self.partNumber != 0 { + try visitor.visitSingularInt64Field(value: self.partNumber, fieldNumber: 2) } - if self.resourceType != .unknown { - try visitor.visitSingularEnumField(value: self.resourceType, fieldNumber: 4) + if !self.data.isEmpty { + try visitor.visitSingularBytesField(value: self.data, fieldNumber: 3) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_BookmarkOrigin, rhs: Clarifai_Api_BookmarkOrigin) -> Bool { - if lhs.id != rhs.id {return false} - if lhs.appID != rhs.appID {return false} - if lhs.userID != rhs.userID {return false} - if lhs.resourceType != rhs.resourceType {return false} + public static func ==(lhs: Clarifai_Api_UploadContentPart, rhs: Clarifai_Api_UploadContentPart) -> Bool { + if lhs.rangeStart != rhs.rangeStart {return false} + if lhs.partNumber != rhs.partNumber {return false} + if lhs.data != rhs.data {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_BookmarkOrigin.BookmarkType: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "unknown"), - 1: .same(proto: "model"), - 2: .same(proto: "workflow"), - 3: .same(proto: "dataset"), - 4: .same(proto: "module"), - ] -} - -extension Clarifai_Api_Runner: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Runner" +extension Clarifai_Api_InputsExtractionJob: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".InputsExtractionJob" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .same(proto: "description"), - 3: .standard(proto: "created_at"), - 4: .standard(proto: "modified_at"), - 5: .same(proto: "metadata"), - 7: .same(proto: "labels"), - 8: .same(proto: "worker"), - 9: .same(proto: "nodepool"), - 10: .standard(proto: "compute_info"), - 11: .standard(proto: "num_replicas"), + 1: .same(proto: "status"), + 2: .same(proto: "id"), + 3: .same(proto: "url"), + 4: .same(proto: "progress"), + 5: .standard(proto: "created_at"), + 6: .standard(proto: "modified_at"), + 7: .standard(proto: "input_id_conflict_resolution"), + 8: .standard(proto: "input_template"), ] fileprivate class _StorageClass { + var _status: Clarifai_Api_Status_Status? = nil var _id: String = String() - var _description_p: String = String() + var _url: String = String() + var _progress: Clarifai_Api_InputsExtractionJobProgress? = nil var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil var _modifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _metadata: SwiftProtobuf.Google_Protobuf_Struct? = nil - var _labels: [String] = [] - var _worker: Clarifai_Api_Worker? = nil - var _nodepool: Clarifai_Api_Nodepool? = nil - var _computeInfo: Clarifai_Api_ComputeInfo? = nil - var _numReplicas: UInt32 = 0 + var _inputIDConflictResolution: Clarifai_Api_InputIDConflictResolution = .notSet + var _inputTemplate: Clarifai_Api_Input? = nil static let defaultInstance = _StorageClass() private init() {} init(copying source: _StorageClass) { + _status = source._status _id = source._id - _description_p = source._description_p + _url = source._url + _progress = source._progress _createdAt = source._createdAt _modifiedAt = source._modifiedAt - _metadata = source._metadata - _labels = source._labels - _worker = source._worker - _nodepool = source._nodepool - _computeInfo = source._computeInfo - _numReplicas = source._numReplicas + _inputIDConflictResolution = source._inputIDConflictResolution + _inputTemplate = source._inputTemplate } } @@ -28393,16 +27509,14 @@ extension Clarifai_Api_Runner: 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.decodeSingularStringField(value: &_storage._id) }() - case 2: try { try decoder.decodeSingularStringField(value: &_storage._description_p) }() - case 3: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() - case 4: try { try decoder.decodeSingularMessageField(value: &_storage._modifiedAt) }() - case 5: try { try decoder.decodeSingularMessageField(value: &_storage._metadata) }() - case 7: try { try decoder.decodeRepeatedStringField(value: &_storage._labels) }() - case 8: try { try decoder.decodeSingularMessageField(value: &_storage._worker) }() - case 9: try { try decoder.decodeSingularMessageField(value: &_storage._nodepool) }() - case 10: try { try decoder.decodeSingularMessageField(value: &_storage._computeInfo) }() - case 11: try { try decoder.decodeSingularUInt32Field(value: &_storage._numReplicas) }() + case 1: try { try decoder.decodeSingularMessageField(value: &_storage._status) }() + case 2: try { try decoder.decodeSingularStringField(value: &_storage._id) }() + case 3: try { try decoder.decodeSingularStringField(value: &_storage._url) }() + case 4: try { try decoder.decodeSingularMessageField(value: &_storage._progress) }() + case 5: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() + case 6: try { try decoder.decodeSingularMessageField(value: &_storage._modifiedAt) }() + case 7: try { try decoder.decodeSingularEnumField(value: &_storage._inputIDConflictResolution) }() + case 8: try { try decoder.decodeSingularMessageField(value: &_storage._inputTemplate) }() default: break } } @@ -28415,55 +27529,47 @@ extension Clarifai_Api_Runner: SwiftProtobuf.Message, SwiftProtobuf._MessageImpl // 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._id.isEmpty { - try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) + try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 2) } - if !_storage._description_p.isEmpty { - try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 2) + if !_storage._url.isEmpty { + try visitor.visitSingularStringField(value: _storage._url, fieldNumber: 3) } - try { if let v = _storage._createdAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - } }() - try { if let v = _storage._modifiedAt { + try { if let v = _storage._progress { try visitor.visitSingularMessageField(value: v, fieldNumber: 4) } }() - try { if let v = _storage._metadata { + try { if let v = _storage._createdAt { try visitor.visitSingularMessageField(value: v, fieldNumber: 5) } }() - if !_storage._labels.isEmpty { - try visitor.visitRepeatedStringField(value: _storage._labels, fieldNumber: 7) + try { if let v = _storage._modifiedAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + } }() + if _storage._inputIDConflictResolution != .notSet { + try visitor.visitSingularEnumField(value: _storage._inputIDConflictResolution, fieldNumber: 7) } - try { if let v = _storage._worker { + try { if let v = _storage._inputTemplate { try visitor.visitSingularMessageField(value: v, fieldNumber: 8) } }() - try { if let v = _storage._nodepool { - try visitor.visitSingularMessageField(value: v, fieldNumber: 9) - } }() - try { if let v = _storage._computeInfo { - try visitor.visitSingularMessageField(value: v, fieldNumber: 10) - } }() - if _storage._numReplicas != 0 { - try visitor.visitSingularUInt32Field(value: _storage._numReplicas, fieldNumber: 11) - } } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_Runner, rhs: Clarifai_Api_Runner) -> Bool { + public static func ==(lhs: Clarifai_Api_InputsExtractionJob, rhs: Clarifai_Api_InputsExtractionJob) -> 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._status != rhs_storage._status {return false} if _storage._id != rhs_storage._id {return false} - if _storage._description_p != rhs_storage._description_p {return false} + if _storage._url != rhs_storage._url {return false} + if _storage._progress != rhs_storage._progress {return false} if _storage._createdAt != rhs_storage._createdAt {return false} if _storage._modifiedAt != rhs_storage._modifiedAt {return false} - if _storage._metadata != rhs_storage._metadata {return false} - if _storage._labels != rhs_storage._labels {return false} - if _storage._worker != rhs_storage._worker {return false} - if _storage._nodepool != rhs_storage._nodepool {return false} - if _storage._computeInfo != rhs_storage._computeInfo {return false} - if _storage._numReplicas != rhs_storage._numReplicas {return false} + if _storage._inputIDConflictResolution != rhs_storage._inputIDConflictResolution {return false} + if _storage._inputTemplate != rhs_storage._inputTemplate {return false} return true } if !storagesAreEqual {return false} @@ -28473,20 +27579,17 @@ extension Clarifai_Api_Runner: SwiftProtobuf.Message, SwiftProtobuf._MessageImpl } } -extension Clarifai_Api_Nodepool: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Nodepool" +extension Clarifai_Api_InputsExtractionJobProgress: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".InputsExtractionJobProgress" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .same(proto: "description"), - 3: .standard(proto: "created_at"), - 4: .standard(proto: "modified_at"), - 6: .standard(proto: "compute_cluster"), - 7: .standard(proto: "node_capacity_type"), - 8: .standard(proto: "instance_types"), - 9: .standard(proto: "min_instances"), - 10: .standard(proto: "max_instances"), - 11: .same(proto: "visibility"), - 12: .same(proto: "metadata"), + 2: .standard(proto: "audio_inputs_count"), + 3: .standard(proto: "image_inputs_count"), + 4: .standard(proto: "video_inputs_count"), + 5: .standard(proto: "text_inputs_count"), + 6: .standard(proto: "pending_archives_count"), + 7: .standard(proto: "in_progress_archives_count"), + 8: .standard(proto: "completed_archives_count"), + 9: .standard(proto: "failed_archives_count"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -28495,84 +27598,68 @@ extension Clarifai_Api_Nodepool: 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.decodeSingularStringField(value: &self.id) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.description_p) }() - case 3: try { try decoder.decodeSingularMessageField(value: &self._createdAt) }() - case 4: try { try decoder.decodeSingularMessageField(value: &self._modifiedAt) }() - case 6: try { try decoder.decodeSingularMessageField(value: &self._computeCluster) }() - case 7: try { try decoder.decodeSingularMessageField(value: &self._nodeCapacityType) }() - case 8: try { try decoder.decodeRepeatedMessageField(value: &self.instanceTypes) }() - case 9: try { try decoder.decodeSingularUInt32Field(value: &self.minInstances) }() - case 10: try { try decoder.decodeSingularUInt32Field(value: &self.maxInstances) }() - case 11: try { try decoder.decodeSingularMessageField(value: &self._visibility) }() - case 12: try { try decoder.decodeSingularMessageField(value: &self._metadata) }() + case 2: try { try decoder.decodeSingularUInt64Field(value: &self.audioInputsCount) }() + case 3: try { try decoder.decodeSingularUInt64Field(value: &self.imageInputsCount) }() + case 4: try { try decoder.decodeSingularUInt64Field(value: &self.videoInputsCount) }() + case 5: try { try decoder.decodeSingularUInt64Field(value: &self.textInputsCount) }() + case 6: try { try decoder.decodeSingularUInt64Field(value: &self.pendingArchivesCount) }() + case 7: try { try decoder.decodeSingularUInt64Field(value: &self.inProgressArchivesCount) }() + case 8: try { try decoder.decodeSingularUInt64Field(value: &self.completedArchivesCount) }() + case 9: try { try decoder.decodeSingularUInt64Field(value: &self.failedArchivesCount) }() 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.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) + if self.audioInputsCount != 0 { + try visitor.visitSingularUInt64Field(value: self.audioInputsCount, fieldNumber: 2) } - if !self.description_p.isEmpty { - try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 2) + if self.imageInputsCount != 0 { + try visitor.visitSingularUInt64Field(value: self.imageInputsCount, fieldNumber: 3) } - try { if let v = self._createdAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - } }() - try { if let v = self._modifiedAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 4) - } }() - try { if let v = self._computeCluster { - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) - } }() - try { if let v = self._nodeCapacityType { - try visitor.visitSingularMessageField(value: v, fieldNumber: 7) - } }() - if !self.instanceTypes.isEmpty { - try visitor.visitRepeatedMessageField(value: self.instanceTypes, fieldNumber: 8) + if self.videoInputsCount != 0 { + try visitor.visitSingularUInt64Field(value: self.videoInputsCount, fieldNumber: 4) } - if self.minInstances != 0 { - try visitor.visitSingularUInt32Field(value: self.minInstances, fieldNumber: 9) + if self.textInputsCount != 0 { + try visitor.visitSingularUInt64Field(value: self.textInputsCount, fieldNumber: 5) } - if self.maxInstances != 0 { - try visitor.visitSingularUInt32Field(value: self.maxInstances, fieldNumber: 10) + if self.pendingArchivesCount != 0 { + try visitor.visitSingularUInt64Field(value: self.pendingArchivesCount, fieldNumber: 6) + } + if self.inProgressArchivesCount != 0 { + try visitor.visitSingularUInt64Field(value: self.inProgressArchivesCount, fieldNumber: 7) + } + if self.completedArchivesCount != 0 { + try visitor.visitSingularUInt64Field(value: self.completedArchivesCount, fieldNumber: 8) + } + if self.failedArchivesCount != 0 { + try visitor.visitSingularUInt64Field(value: self.failedArchivesCount, fieldNumber: 9) } - try { if let v = self._visibility { - try visitor.visitSingularMessageField(value: v, fieldNumber: 11) - } }() - try { if let v = self._metadata { - try visitor.visitSingularMessageField(value: v, fieldNumber: 12) - } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_Nodepool, rhs: Clarifai_Api_Nodepool) -> Bool { - if lhs.id != rhs.id {return false} - if lhs.description_p != rhs.description_p {return false} - if lhs._createdAt != rhs._createdAt {return false} - if lhs._modifiedAt != rhs._modifiedAt {return false} - if lhs._computeCluster != rhs._computeCluster {return false} - if lhs._nodeCapacityType != rhs._nodeCapacityType {return false} - if lhs.instanceTypes != rhs.instanceTypes {return false} - if lhs.minInstances != rhs.minInstances {return false} - if lhs.maxInstances != rhs.maxInstances {return false} - if lhs._visibility != rhs._visibility {return false} - if lhs._metadata != rhs._metadata {return false} + public static func ==(lhs: Clarifai_Api_InputsExtractionJobProgress, rhs: Clarifai_Api_InputsExtractionJobProgress) -> Bool { + if lhs.audioInputsCount != rhs.audioInputsCount {return false} + if lhs.imageInputsCount != rhs.imageInputsCount {return false} + if lhs.videoInputsCount != rhs.videoInputsCount {return false} + if lhs.textInputsCount != rhs.textInputsCount {return false} + if lhs.pendingArchivesCount != rhs.pendingArchivesCount {return false} + if lhs.inProgressArchivesCount != rhs.inProgressArchivesCount {return false} + if lhs.completedArchivesCount != rhs.completedArchivesCount {return false} + if lhs.failedArchivesCount != rhs.failedArchivesCount {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_NodeCapacityType: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".NodeCapacityType" +extension Clarifai_Api_InputsDataSource: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".InputsDataSource" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "capacity_types"), + 1: .standard(proto: "inputs_add_job_id"), + 2: .same(proto: "url"), + 3: .standard(proto: "input_id_conflict_resolution"), + 4: .standard(proto: "input_template"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -28581,40 +27668,50 @@ extension Clarifai_Api_NodeCapacityType: SwiftProtobuf.Message, SwiftProtobuf._M // 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.decodeRepeatedEnumField(value: &self.capacityTypes) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.inputsAddJobID) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._url) }() + case 3: try { try decoder.decodeSingularEnumField(value: &self.inputIDConflictResolution) }() + case 4: try { try decoder.decodeSingularMessageField(value: &self._inputTemplate) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.capacityTypes.isEmpty { - try visitor.visitPackedEnumField(value: self.capacityTypes, fieldNumber: 1) + // 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.inputsAddJobID.isEmpty { + try visitor.visitSingularStringField(value: self.inputsAddJobID, fieldNumber: 1) + } + try { if let v = self._url { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + if self.inputIDConflictResolution != .notSet { + try visitor.visitSingularEnumField(value: self.inputIDConflictResolution, fieldNumber: 3) } + try { if let v = self._inputTemplate { + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_NodeCapacityType, rhs: Clarifai_Api_NodeCapacityType) -> Bool { - if lhs.capacityTypes != rhs.capacityTypes {return false} + public static func ==(lhs: Clarifai_Api_InputsDataSource, rhs: Clarifai_Api_InputsDataSource) -> Bool { + if lhs.inputsAddJobID != rhs.inputsAddJobID {return false} + if lhs._url != rhs._url {return false} + if lhs.inputIDConflictResolution != rhs.inputIDConflictResolution {return false} + if lhs._inputTemplate != rhs._inputTemplate {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_NodeCapacityType.CapacityType: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "UKNOWN_CAPACITY_TYPE"), - 1: .same(proto: "ON_DEMAND_TYPE"), - 2: .same(proto: "SPOT_TYPE"), - ] -} - -extension Clarifai_Api_InstanceType: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".InstanceType" +extension Clarifai_Api_DataSourceURL: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".DataSourceURL" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .same(proto: "description"), - 3: .standard(proto: "compute_info"), + 1: .same(proto: "url"), + 2: .same(proto: "credentials"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -28623,9 +27720,8 @@ extension Clarifai_Api_InstanceType: SwiftProtobuf.Message, SwiftProtobuf._Messa // 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.id) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.description_p) }() - case 3: try { try decoder.decodeSingularMessageField(value: &self._computeInfo) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.url) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._credentials) }() default: break } } @@ -28636,32 +27732,29 @@ extension Clarifai_Api_InstanceType: SwiftProtobuf.Message, SwiftProtobuf._Messa // 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.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) - } - if !self.description_p.isEmpty { - try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 2) + if !self.url.isEmpty { + try visitor.visitSingularStringField(value: self.url, fieldNumber: 1) } - try { if let v = self._computeInfo { - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + try { if let v = self._credentials { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_InstanceType, rhs: Clarifai_Api_InstanceType) -> Bool { - if lhs.id != rhs.id {return false} - if lhs.description_p != rhs.description_p {return false} - if lhs._computeInfo != rhs._computeInfo {return false} + public static func ==(lhs: Clarifai_Api_DataSourceURL, rhs: Clarifai_Api_DataSourceURL) -> Bool { + if lhs.url != rhs.url {return false} + if lhs._credentials != rhs._credentials {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_CloudProvider: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".CloudProvider" +extension Clarifai_Api_DataSourceCredentials: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".DataSourceCredentials" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .same(proto: "name"), + 1: .standard(proto: "s3_creds"), + 2: .standard(proto: "gcp_creds"), + 4: .standard(proto: "azure_blob_creds"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -28670,187 +27763,171 @@ extension Clarifai_Api_CloudProvider: SwiftProtobuf.Message, SwiftProtobuf._Mess // 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.id) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.name) }() + case 1: try { + var v: Clarifai_Api_AWSCreds? + var hadOneofValue = false + if let current = self.credentials { + hadOneofValue = true + if case .s3Creds(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.credentials = .s3Creds(v) + } + }() + case 2: try { + var v: Data? + try decoder.decodeSingularBytesField(value: &v) + if let v = v { + if self.credentials != nil {try decoder.handleConflictingOneOf()} + self.credentials = .gcpCreds(v) + } + }() + case 4: try { + var v: Clarifai_Api_AzureBlobCreds? + var hadOneofValue = false + if let current = self.credentials { + hadOneofValue = true + if case .azureBlobCreds(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.credentials = .azureBlobCreds(v) + } + }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.id.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) - } - if !self.name.isEmpty { - try visitor.visitSingularStringField(value: self.name, fieldNumber: 2) + // 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 + switch self.credentials { + case .s3Creds?: try { + guard case .s3Creds(let v)? = self.credentials else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + }() + case .gcpCreds?: try { + guard case .gcpCreds(let v)? = self.credentials else { preconditionFailure() } + try visitor.visitSingularBytesField(value: v, fieldNumber: 2) + }() + case .azureBlobCreds?: try { + guard case .azureBlobCreds(let v)? = self.credentials else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + }() + case nil: break } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_CloudProvider, rhs: Clarifai_Api_CloudProvider) -> Bool { - if lhs.id != rhs.id {return false} - if lhs.name != rhs.name {return false} + public static func ==(lhs: Clarifai_Api_DataSourceCredentials, rhs: Clarifai_Api_DataSourceCredentials) -> Bool { + if lhs.credentials != rhs.credentials {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_ComputeCluster: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".ComputeCluster" +extension Clarifai_Api_AWSCreds: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".AWSCreds" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .same(proto: "description"), - 3: .standard(proto: "cloud_provider"), - 4: .same(proto: "region"), - 5: .standard(proto: "user_id"), - 6: .standard(proto: "created_at"), - 7: .standard(proto: "modified_at"), - 8: .same(proto: "visibility"), - 9: .standard(proto: "cluster_type"), - 10: .standard(proto: "managed_by"), - 11: .same(proto: "key"), + 2: .same(proto: "region"), + 3: .same(proto: "id"), + 4: .same(proto: "secret"), + 5: .same(proto: "token"), ] - fileprivate class _StorageClass { - var _id: String = String() - var _description_p: String = String() - var _cloudProvider: Clarifai_Api_CloudProvider? = nil - var _region: String = String() - var _userID: String = String() - var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _modifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _visibility: Clarifai_Api_Visibility? = nil - var _clusterType: String = String() - var _managedBy: String = String() - var _key: Clarifai_Api_Key? = nil - - static let defaultInstance = _StorageClass() - - private init() {} - - init(copying source: _StorageClass) { - _id = source._id - _description_p = source._description_p - _cloudProvider = source._cloudProvider - _region = source._region - _userID = source._userID - _createdAt = source._createdAt - _modifiedAt = source._modifiedAt - _visibility = source._visibility - _clusterType = source._clusterType - _managedBy = source._managedBy - _key = source._key + 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 2: try { try decoder.decodeSingularStringField(value: &self.region) }() + case 3: try { try decoder.decodeSingularStringField(value: &self.id) }() + case 4: try { try decoder.decodeSingularStringField(value: &self.secret) }() + case 5: try { try decoder.decodeSingularStringField(value: &self.token) }() + default: break + } } } - fileprivate mutating func _uniqueStorage() -> _StorageClass { - if !isKnownUniquelyReferenced(&_storage) { - _storage = _StorageClass(copying: _storage) + public func traverse(visitor: inout V) throws { + if !self.region.isEmpty { + try visitor.visitSingularStringField(value: self.region, fieldNumber: 2) } - return _storage + if !self.id.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 3) + } + if !self.secret.isEmpty { + try visitor.visitSingularStringField(value: self.secret, fieldNumber: 4) + } + if !self.token.isEmpty { + try visitor.visitSingularStringField(value: self.token, fieldNumber: 5) + } + try unknownFields.traverse(visitor: &visitor) } - - 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.decodeSingularStringField(value: &_storage._id) }() - case 2: try { try decoder.decodeSingularStringField(value: &_storage._description_p) }() - case 3: try { try decoder.decodeSingularMessageField(value: &_storage._cloudProvider) }() - case 4: try { try decoder.decodeSingularStringField(value: &_storage._region) }() - case 5: try { try decoder.decodeSingularStringField(value: &_storage._userID) }() - case 6: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() - case 7: try { try decoder.decodeSingularMessageField(value: &_storage._modifiedAt) }() - case 8: try { try decoder.decodeSingularMessageField(value: &_storage._visibility) }() - case 9: try { try decoder.decodeSingularStringField(value: &_storage._clusterType) }() - case 10: try { try decoder.decodeSingularStringField(value: &_storage._managedBy) }() - case 11: try { try decoder.decodeSingularMessageField(value: &_storage._key) }() - default: break - } + + public static func ==(lhs: Clarifai_Api_AWSCreds, rhs: Clarifai_Api_AWSCreds) -> Bool { + if lhs.region != rhs.region {return false} + if lhs.id != rhs.id {return false} + if lhs.secret != rhs.secret {return false} + if lhs.token != rhs.token {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Clarifai_Api_AzureBlobCreds: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".AzureBlobCreds" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "account_name"), + 2: .standard(proto: "account_key"), + ] + + 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.accountName) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.accountKey) }() + 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.isEmpty { - try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) - } - if !_storage._description_p.isEmpty { - try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 2) - } - try { if let v = _storage._cloudProvider { - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - } }() - if !_storage._region.isEmpty { - try visitor.visitSingularStringField(value: _storage._region, fieldNumber: 4) - } - if !_storage._userID.isEmpty { - try visitor.visitSingularStringField(value: _storage._userID, fieldNumber: 5) - } - try { if let v = _storage._createdAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) - } }() - try { if let v = _storage._modifiedAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 7) - } }() - try { if let v = _storage._visibility { - try visitor.visitSingularMessageField(value: v, fieldNumber: 8) - } }() - if !_storage._clusterType.isEmpty { - try visitor.visitSingularStringField(value: _storage._clusterType, fieldNumber: 9) - } - if !_storage._managedBy.isEmpty { - try visitor.visitSingularStringField(value: _storage._managedBy, fieldNumber: 10) - } - try { if let v = _storage._key { - try visitor.visitSingularMessageField(value: v, fieldNumber: 11) - } }() + if !self.accountName.isEmpty { + try visitor.visitSingularStringField(value: self.accountName, fieldNumber: 1) + } + if !self.accountKey.isEmpty { + try visitor.visitSingularStringField(value: self.accountKey, fieldNumber: 2) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_ComputeCluster, rhs: Clarifai_Api_ComputeCluster) -> 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._description_p != rhs_storage._description_p {return false} - if _storage._cloudProvider != rhs_storage._cloudProvider {return false} - if _storage._region != rhs_storage._region {return false} - if _storage._userID != rhs_storage._userID {return false} - if _storage._createdAt != rhs_storage._createdAt {return false} - if _storage._modifiedAt != rhs_storage._modifiedAt {return false} - if _storage._visibility != rhs_storage._visibility {return false} - if _storage._clusterType != rhs_storage._clusterType {return false} - if _storage._managedBy != rhs_storage._managedBy {return false} - if _storage._key != rhs_storage._key {return false} - return true - } - if !storagesAreEqual {return false} - } + public static func ==(lhs: Clarifai_Api_AzureBlobCreds, rhs: Clarifai_Api_AzureBlobCreds) -> Bool { + if lhs.accountName != rhs.accountName {return false} + if lhs.accountKey != rhs.accountKey {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_ComputeInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".ComputeInfo" +extension Clarifai_Api_InputsUpload: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".InputsUpload" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 6: .standard(proto: "cpu_limit"), - 2: .standard(proto: "cpu_memory"), - 3: .standard(proto: "num_accelerators"), - 4: .standard(proto: "accelerator_memory"), - 5: .standard(proto: "accelerator_type"), + 1: .standard(proto: "inputs_add_job_id"), + 2: .standard(proto: "app_pat"), + 3: .same(proto: "upload"), + 4: .standard(proto: "input_id_conflict_resolution"), + 5: .standard(proto: "input_template"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -28859,55 +27936,57 @@ extension Clarifai_Api_ComputeInfo: SwiftProtobuf.Message, SwiftProtobuf._Messag // allocates stack space for every case branch when no optimizations are // enabled. https://github.com/apple/swift-protobuf/issues/1034 switch fieldNumber { - case 2: try { try decoder.decodeSingularStringField(value: &self.cpuMemory) }() - case 3: try { try decoder.decodeSingularUInt32Field(value: &self.numAccelerators) }() - case 4: try { try decoder.decodeSingularStringField(value: &self.acceleratorMemory) }() - case 5: try { try decoder.decodeRepeatedStringField(value: &self.acceleratorType) }() - case 6: try { try decoder.decodeSingularStringField(value: &self.cpuLimit) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.inputsAddJobID) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.appPat) }() + case 3: try { try decoder.decodeSingularMessageField(value: &self._upload) }() + case 4: try { try decoder.decodeSingularEnumField(value: &self.inputIDConflictResolution) }() + case 5: try { try decoder.decodeSingularMessageField(value: &self._inputTemplate) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.cpuMemory.isEmpty { - try visitor.visitSingularStringField(value: self.cpuMemory, fieldNumber: 2) - } - if self.numAccelerators != 0 { - try visitor.visitSingularUInt32Field(value: self.numAccelerators, fieldNumber: 3) - } - if !self.acceleratorMemory.isEmpty { - try visitor.visitSingularStringField(value: self.acceleratorMemory, fieldNumber: 4) + // 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.inputsAddJobID.isEmpty { + try visitor.visitSingularStringField(value: self.inputsAddJobID, fieldNumber: 1) } - if !self.acceleratorType.isEmpty { - try visitor.visitRepeatedStringField(value: self.acceleratorType, fieldNumber: 5) + if !self.appPat.isEmpty { + try visitor.visitSingularStringField(value: self.appPat, fieldNumber: 2) } - if !self.cpuLimit.isEmpty { - try visitor.visitSingularStringField(value: self.cpuLimit, fieldNumber: 6) + try { if let v = self._upload { + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + } }() + if self.inputIDConflictResolution != .notSet { + try visitor.visitSingularEnumField(value: self.inputIDConflictResolution, fieldNumber: 4) } + try { if let v = self._inputTemplate { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_ComputeInfo, rhs: Clarifai_Api_ComputeInfo) -> Bool { - if lhs.cpuLimit != rhs.cpuLimit {return false} - if lhs.cpuMemory != rhs.cpuMemory {return false} - if lhs.numAccelerators != rhs.numAccelerators {return false} - if lhs.acceleratorMemory != rhs.acceleratorMemory {return false} - if lhs.acceleratorType != rhs.acceleratorType {return false} + public static func ==(lhs: Clarifai_Api_InputsUpload, rhs: Clarifai_Api_InputsUpload) -> Bool { + if lhs.inputsAddJobID != rhs.inputsAddJobID {return false} + if lhs.appPat != rhs.appPat {return false} + if lhs._upload != rhs._upload {return false} + if lhs.inputIDConflictResolution != rhs.inputIDConflictResolution {return false} + if lhs._inputTemplate != rhs._inputTemplate {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_AutoscaleConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".AutoscaleConfig" +extension Clarifai_Api_BookmarkOrigin: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".BookmarkOrigin" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "min_replicas"), - 2: .standard(proto: "max_replicas"), - 3: .standard(proto: "traffic_history_seconds"), - 4: .standard(proto: "scale_down_delay_seconds"), - 5: .standard(proto: "scale_up_delay_seconds"), - 7: .standard(proto: "disable_packing"), + 1: .same(proto: "id"), + 2: .standard(proto: "app_id"), + 3: .standard(proto: "user_id"), + 4: .standard(proto: "resource_type"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -28916,79 +27995,77 @@ extension Clarifai_Api_AutoscaleConfig: 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.decodeSingularUInt32Field(value: &self.minReplicas) }() - case 2: try { try decoder.decodeSingularUInt32Field(value: &self.maxReplicas) }() - case 3: try { try decoder.decodeSingularUInt32Field(value: &self.trafficHistorySeconds) }() - case 4: try { try decoder.decodeSingularUInt32Field(value: &self.scaleDownDelaySeconds) }() - case 5: try { try decoder.decodeSingularUInt32Field(value: &self.scaleUpDelaySeconds) }() - case 7: try { try decoder.decodeSingularBoolField(value: &self.disablePacking) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.appID) }() + case 3: try { try decoder.decodeSingularStringField(value: &self.userID) }() + case 4: try { try decoder.decodeSingularEnumField(value: &self.resourceType) }() default: break } } } public func traverse(visitor: inout V) throws { - if self.minReplicas != 0 { - try visitor.visitSingularUInt32Field(value: self.minReplicas, fieldNumber: 1) - } - if self.maxReplicas != 0 { - try visitor.visitSingularUInt32Field(value: self.maxReplicas, fieldNumber: 2) - } - if self.trafficHistorySeconds != 0 { - try visitor.visitSingularUInt32Field(value: self.trafficHistorySeconds, fieldNumber: 3) + if !self.id.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) } - if self.scaleDownDelaySeconds != 0 { - try visitor.visitSingularUInt32Field(value: self.scaleDownDelaySeconds, fieldNumber: 4) + if !self.appID.isEmpty { + try visitor.visitSingularStringField(value: self.appID, fieldNumber: 2) } - if self.scaleUpDelaySeconds != 0 { - try visitor.visitSingularUInt32Field(value: self.scaleUpDelaySeconds, fieldNumber: 5) + if !self.userID.isEmpty { + try visitor.visitSingularStringField(value: self.userID, fieldNumber: 3) } - if self.disablePacking != false { - try visitor.visitSingularBoolField(value: self.disablePacking, fieldNumber: 7) + if self.resourceType != .unknown { + try visitor.visitSingularEnumField(value: self.resourceType, fieldNumber: 4) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_AutoscaleConfig, rhs: Clarifai_Api_AutoscaleConfig) -> Bool { - if lhs.minReplicas != rhs.minReplicas {return false} - if lhs.maxReplicas != rhs.maxReplicas {return false} - if lhs.trafficHistorySeconds != rhs.trafficHistorySeconds {return false} - if lhs.scaleDownDelaySeconds != rhs.scaleDownDelaySeconds {return false} - if lhs.scaleUpDelaySeconds != rhs.scaleUpDelaySeconds {return false} - if lhs.disablePacking != rhs.disablePacking {return false} + public static func ==(lhs: Clarifai_Api_BookmarkOrigin, rhs: Clarifai_Api_BookmarkOrigin) -> Bool { + if lhs.id != rhs.id {return false} + if lhs.appID != rhs.appID {return false} + if lhs.userID != rhs.userID {return false} + if lhs.resourceType != rhs.resourceType {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_Deployment: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Deployment" +extension Clarifai_Api_BookmarkOrigin.BookmarkType: SwiftProtobuf._ProtoNameProviding { public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .standard(proto: "user_id"), - 3: .standard(proto: "autoscale_config"), - 4: .same(proto: "nodepools"), - 7: .standard(proto: "scheduling_choice"), - 8: .same(proto: "visibility"), - 9: .same(proto: "metadata"), - 10: .same(proto: "description"), - 11: .same(proto: "worker"), - 12: .standard(proto: "created_at"), - 13: .standard(proto: "modified_at"), + 0: .same(proto: "unknown"), + 1: .same(proto: "model"), + 2: .same(proto: "workflow"), + 3: .same(proto: "dataset"), + 4: .same(proto: "module"), ] +} - fileprivate class _StorageClass { - var _id: String = String() - var _userID: String = String() - var _autoscaleConfig: Clarifai_Api_AutoscaleConfig? = nil - var _nodepools: [Clarifai_Api_Nodepool] = [] - var _schedulingChoice: Clarifai_Api_Deployment.SchedulingChoice = .unknownSchedulingChoice - var _visibility: Clarifai_Api_Visibility? = nil - var _metadata: SwiftProtobuf.Google_Protobuf_Struct? = nil +extension Clarifai_Api_Runner: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Runner" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "id"), + 2: .same(proto: "description"), + 3: .standard(proto: "created_at"), + 4: .standard(proto: "modified_at"), + 5: .same(proto: "metadata"), + 7: .same(proto: "labels"), + 8: .same(proto: "worker"), + 9: .same(proto: "nodepool"), + 10: .standard(proto: "compute_info"), + 11: .standard(proto: "num_replicas"), + ] + + fileprivate class _StorageClass { + var _id: String = String() var _description_p: String = String() - var _worker: Clarifai_Api_Worker? = nil var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil var _modifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _metadata: SwiftProtobuf.Google_Protobuf_Struct? = nil + var _labels: [String] = [] + var _worker: Clarifai_Api_Worker? = nil + var _nodepool: Clarifai_Api_Nodepool? = nil + var _computeInfo: Clarifai_Api_ComputeInfo? = nil + var _numReplicas: UInt32 = 0 static let defaultInstance = _StorageClass() @@ -28996,16 +28073,15 @@ extension Clarifai_Api_Deployment: SwiftProtobuf.Message, SwiftProtobuf._Message init(copying source: _StorageClass) { _id = source._id - _userID = source._userID - _autoscaleConfig = source._autoscaleConfig - _nodepools = source._nodepools - _schedulingChoice = source._schedulingChoice - _visibility = source._visibility - _metadata = source._metadata _description_p = source._description_p - _worker = source._worker _createdAt = source._createdAt _modifiedAt = source._modifiedAt + _metadata = source._metadata + _labels = source._labels + _worker = source._worker + _nodepool = source._nodepool + _computeInfo = source._computeInfo + _numReplicas = source._numReplicas } } @@ -29025,16 +28101,15 @@ extension Clarifai_Api_Deployment: SwiftProtobuf.Message, SwiftProtobuf._Message // enabled. https://github.com/apple/swift-protobuf/issues/1034 switch fieldNumber { case 1: try { try decoder.decodeSingularStringField(value: &_storage._id) }() - case 2: try { try decoder.decodeSingularStringField(value: &_storage._userID) }() - case 3: try { try decoder.decodeSingularMessageField(value: &_storage._autoscaleConfig) }() - case 4: try { try decoder.decodeRepeatedMessageField(value: &_storage._nodepools) }() - case 7: try { try decoder.decodeSingularEnumField(value: &_storage._schedulingChoice) }() - case 8: try { try decoder.decodeSingularMessageField(value: &_storage._visibility) }() - case 9: try { try decoder.decodeSingularMessageField(value: &_storage._metadata) }() - case 10: try { try decoder.decodeSingularStringField(value: &_storage._description_p) }() - case 11: try { try decoder.decodeSingularMessageField(value: &_storage._worker) }() - case 12: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() - case 13: try { try decoder.decodeSingularMessageField(value: &_storage._modifiedAt) }() + case 2: try { try decoder.decodeSingularStringField(value: &_storage._description_p) }() + case 3: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() + case 4: try { try decoder.decodeSingularMessageField(value: &_storage._modifiedAt) }() + case 5: try { try decoder.decodeSingularMessageField(value: &_storage._metadata) }() + case 7: try { try decoder.decodeRepeatedStringField(value: &_storage._labels) }() + case 8: try { try decoder.decodeSingularMessageField(value: &_storage._worker) }() + case 9: try { try decoder.decodeSingularMessageField(value: &_storage._nodepool) }() + case 10: try { try decoder.decodeSingularMessageField(value: &_storage._computeInfo) }() + case 11: try { try decoder.decodeSingularUInt32Field(value: &_storage._numReplicas) }() default: break } } @@ -29050,56 +28125,52 @@ extension Clarifai_Api_Deployment: SwiftProtobuf.Message, SwiftProtobuf._Message if !_storage._id.isEmpty { try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) } - if !_storage._userID.isEmpty { - try visitor.visitSingularStringField(value: _storage._userID, fieldNumber: 2) + if !_storage._description_p.isEmpty { + try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 2) } - try { if let v = _storage._autoscaleConfig { + try { if let v = _storage._createdAt { try visitor.visitSingularMessageField(value: v, fieldNumber: 3) } }() - if !_storage._nodepools.isEmpty { - try visitor.visitRepeatedMessageField(value: _storage._nodepools, fieldNumber: 4) - } - if _storage._schedulingChoice != .unknownSchedulingChoice { - try visitor.visitSingularEnumField(value: _storage._schedulingChoice, fieldNumber: 7) - } - try { if let v = _storage._visibility { - try visitor.visitSingularMessageField(value: v, fieldNumber: 8) + try { if let v = _storage._modifiedAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) } }() try { if let v = _storage._metadata { - try visitor.visitSingularMessageField(value: v, fieldNumber: 9) + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) } }() - if !_storage._description_p.isEmpty { - try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 10) + if !_storage._labels.isEmpty { + try visitor.visitRepeatedStringField(value: _storage._labels, fieldNumber: 7) } try { if let v = _storage._worker { - try visitor.visitSingularMessageField(value: v, fieldNumber: 11) + try visitor.visitSingularMessageField(value: v, fieldNumber: 8) } }() - try { if let v = _storage._createdAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 12) + try { if let v = _storage._nodepool { + try visitor.visitSingularMessageField(value: v, fieldNumber: 9) } }() - try { if let v = _storage._modifiedAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 13) + try { if let v = _storage._computeInfo { + try visitor.visitSingularMessageField(value: v, fieldNumber: 10) } }() + if _storage._numReplicas != 0 { + try visitor.visitSingularUInt32Field(value: _storage._numReplicas, fieldNumber: 11) + } } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_Deployment, rhs: Clarifai_Api_Deployment) -> Bool { + public static func ==(lhs: Clarifai_Api_Runner, rhs: Clarifai_Api_Runner) -> 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._userID != rhs_storage._userID {return false} - if _storage._autoscaleConfig != rhs_storage._autoscaleConfig {return false} - if _storage._nodepools != rhs_storage._nodepools {return false} - if _storage._schedulingChoice != rhs_storage._schedulingChoice {return false} - if _storage._visibility != rhs_storage._visibility {return false} - if _storage._metadata != rhs_storage._metadata {return false} if _storage._description_p != rhs_storage._description_p {return false} - if _storage._worker != rhs_storage._worker {return false} if _storage._createdAt != rhs_storage._createdAt {return false} if _storage._modifiedAt != rhs_storage._modifiedAt {return false} + if _storage._metadata != rhs_storage._metadata {return false} + if _storage._labels != rhs_storage._labels {return false} + if _storage._worker != rhs_storage._worker {return false} + if _storage._nodepool != rhs_storage._nodepool {return false} + if _storage._computeInfo != rhs_storage._computeInfo {return false} + if _storage._numReplicas != rhs_storage._numReplicas {return false} return true } if !storagesAreEqual {return false} @@ -29109,26 +28180,20 @@ extension Clarifai_Api_Deployment: SwiftProtobuf.Message, SwiftProtobuf._Message } } -extension Clarifai_Api_Deployment.SchedulingChoice: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "UNKNOWN_SCHEDULING_CHOICE"), - 1: .same(proto: "FAIL"), - 2: .same(proto: "RANDOM"), - 3: .same(proto: "PRICE"), - 4: .same(proto: "PERFORMANCE"), - 5: .same(proto: "NETWORK"), - 6: .same(proto: "UTILIZATION"), - 7: .same(proto: "PREFER_SPOT"), - 8: .same(proto: "PREFER_ONDEMAND"), - ] -} - -extension Clarifai_Api_RunnerSelector: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".RunnerSelector" +extension Clarifai_Api_Nodepool: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Nodepool" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "nodepool"), - 2: .same(proto: "runner"), - 3: .same(proto: "deployment"), + 1: .same(proto: "id"), + 2: .same(proto: "description"), + 3: .standard(proto: "created_at"), + 4: .standard(proto: "modified_at"), + 6: .standard(proto: "compute_cluster"), + 7: .standard(proto: "node_capacity_type"), + 8: .standard(proto: "instance_types"), + 9: .standard(proto: "min_instances"), + 10: .standard(proto: "max_instances"), + 11: .same(proto: "visibility"), + 12: .same(proto: "metadata"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -29137,9 +28202,17 @@ extension Clarifai_Api_RunnerSelector: 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.decodeSingularMessageField(value: &self._nodepool) }() - case 2: try { try decoder.decodeSingularMessageField(value: &self._runner) }() - case 3: try { try decoder.decodeSingularMessageField(value: &self._deployment) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.description_p) }() + case 3: try { try decoder.decodeSingularMessageField(value: &self._createdAt) }() + case 4: try { try decoder.decodeSingularMessageField(value: &self._modifiedAt) }() + case 6: try { try decoder.decodeSingularMessageField(value: &self._computeCluster) }() + case 7: try { try decoder.decodeSingularMessageField(value: &self._nodeCapacityType) }() + case 8: try { try decoder.decodeRepeatedMessageField(value: &self.instanceTypes) }() + case 9: try { try decoder.decodeSingularUInt32Field(value: &self.minInstances) }() + case 10: try { try decoder.decodeSingularUInt32Field(value: &self.maxInstances) }() + case 11: try { try decoder.decodeSingularMessageField(value: &self._visibility) }() + case 12: try { try decoder.decodeSingularMessageField(value: &self._metadata) }() default: break } } @@ -29150,33 +28223,152 @@ extension Clarifai_Api_RunnerSelector: SwiftProtobuf.Message, SwiftProtobuf._Mes // 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._nodepool { - try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + if !self.id.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) + } + if !self.description_p.isEmpty { + try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 2) + } + try { if let v = self._createdAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) } }() - try { if let v = self._runner { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + try { if let v = self._modifiedAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) } }() - try { if let v = self._deployment { + try { if let v = self._computeCluster { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + } }() + try { if let v = self._nodeCapacityType { + try visitor.visitSingularMessageField(value: v, fieldNumber: 7) + } }() + if !self.instanceTypes.isEmpty { + try visitor.visitRepeatedMessageField(value: self.instanceTypes, fieldNumber: 8) + } + if self.minInstances != 0 { + try visitor.visitSingularUInt32Field(value: self.minInstances, fieldNumber: 9) + } + if self.maxInstances != 0 { + try visitor.visitSingularUInt32Field(value: self.maxInstances, fieldNumber: 10) + } + try { if let v = self._visibility { + try visitor.visitSingularMessageField(value: v, fieldNumber: 11) + } }() + try { if let v = self._metadata { + try visitor.visitSingularMessageField(value: v, fieldNumber: 12) + } }() + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Clarifai_Api_Nodepool, rhs: Clarifai_Api_Nodepool) -> Bool { + if lhs.id != rhs.id {return false} + if lhs.description_p != rhs.description_p {return false} + if lhs._createdAt != rhs._createdAt {return false} + if lhs._modifiedAt != rhs._modifiedAt {return false} + if lhs._computeCluster != rhs._computeCluster {return false} + if lhs._nodeCapacityType != rhs._nodeCapacityType {return false} + if lhs.instanceTypes != rhs.instanceTypes {return false} + if lhs.minInstances != rhs.minInstances {return false} + if lhs.maxInstances != rhs.maxInstances {return false} + if lhs._visibility != rhs._visibility {return false} + if lhs._metadata != rhs._metadata {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Clarifai_Api_NodeCapacityType: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".NodeCapacityType" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "capacity_types"), + ] + + 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.decodeRepeatedEnumField(value: &self.capacityTypes) }() + default: break + } + } + } + + public func traverse(visitor: inout V) throws { + if !self.capacityTypes.isEmpty { + try visitor.visitPackedEnumField(value: self.capacityTypes, fieldNumber: 1) + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Clarifai_Api_NodeCapacityType, rhs: Clarifai_Api_NodeCapacityType) -> Bool { + if lhs.capacityTypes != rhs.capacityTypes {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Clarifai_Api_NodeCapacityType.CapacityType: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "UKNOWN_CAPACITY_TYPE"), + 1: .same(proto: "ON_DEMAND_TYPE"), + 2: .same(proto: "SPOT_TYPE"), + ] +} + +extension Clarifai_Api_InstanceType: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".InstanceType" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "id"), + 2: .same(proto: "description"), + 3: .standard(proto: "compute_info"), + ] + + 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.id) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.description_p) }() + case 3: try { try decoder.decodeSingularMessageField(value: &self._computeInfo) }() + 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.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) + } + if !self.description_p.isEmpty { + try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 2) + } + try { if let v = self._computeInfo { try visitor.visitSingularMessageField(value: v, fieldNumber: 3) } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_RunnerSelector, rhs: Clarifai_Api_RunnerSelector) -> Bool { - if lhs._nodepool != rhs._nodepool {return false} - if lhs._runner != rhs._runner {return false} - if lhs._deployment != rhs._deployment {return false} + public static func ==(lhs: Clarifai_Api_InstanceType, rhs: Clarifai_Api_InstanceType) -> Bool { + if lhs.id != rhs.id {return false} + if lhs.description_p != rhs.description_p {return false} + if lhs._computeInfo != rhs._computeInfo {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_ProcessingInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".ProcessingInfo" +extension Clarifai_Api_CloudProvider: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".CloudProvider" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "runner_method_type"), - 2: .same(proto: "status"), - 3: .standard(proto: "processing_id"), + 1: .same(proto: "id"), + 2: .same(proto: "name"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -29185,230 +28377,187 @@ extension Clarifai_Api_ProcessingInfo: 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.decodeSingularEnumField(value: &self.runnerMethodType) }() - case 2: try { try decoder.decodeSingularMessageField(value: &self._status) }() - case 3: try { try decoder.decodeSingularStringField(value: &self.processingID) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.name) }() 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.runnerMethodType != .unknown { - try visitor.visitSingularEnumField(value: self.runnerMethodType, fieldNumber: 1) + if !self.id.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) } - try { if let v = self._status { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - if !self.processingID.isEmpty { - try visitor.visitSingularStringField(value: self.processingID, fieldNumber: 3) + if !self.name.isEmpty { + try visitor.visitSingularStringField(value: self.name, fieldNumber: 2) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_ProcessingInfo, rhs: Clarifai_Api_ProcessingInfo) -> Bool { - if lhs.runnerMethodType != rhs.runnerMethodType {return false} - if lhs._status != rhs._status {return false} - if lhs.processingID != rhs.processingID {return false} + public static func ==(lhs: Clarifai_Api_CloudProvider, rhs: Clarifai_Api_CloudProvider) -> Bool { + if lhs.id != rhs.id {return false} + if lhs.name != rhs.name {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_AuditLogTarget: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".AuditLogTarget" +extension Clarifai_Api_ComputeCluster: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".ComputeCluster" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "user"), - 2: .same(proto: "role"), - 3: .same(proto: "team"), - 4: .same(proto: "app"), - 5: .same(proto: "module"), - 6: .standard(proto: "module_version"), - 7: .same(proto: "workflow"), - 8: .standard(proto: "workflow_version"), + 1: .same(proto: "id"), + 2: .same(proto: "description"), + 3: .standard(proto: "cloud_provider"), + 4: .same(proto: "region"), + 5: .standard(proto: "user_id"), + 6: .standard(proto: "created_at"), + 7: .standard(proto: "modified_at"), + 8: .same(proto: "visibility"), + 9: .standard(proto: "cluster_type"), + 10: .standard(proto: "managed_by"), + 11: .same(proto: "key"), ] + fileprivate class _StorageClass { + var _id: String = String() + var _description_p: String = String() + var _cloudProvider: Clarifai_Api_CloudProvider? = nil + var _region: String = String() + var _userID: String = String() + var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _modifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _visibility: Clarifai_Api_Visibility? = nil + var _clusterType: String = String() + var _managedBy: String = String() + var _key: Clarifai_Api_Key? = nil + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _id = source._id + _description_p = source._description_p + _cloudProvider = source._cloudProvider + _region = source._region + _userID = source._userID + _createdAt = source._createdAt + _modifiedAt = source._modifiedAt + _visibility = source._visibility + _clusterType = source._clusterType + _managedBy = source._managedBy + _key = source._key + } + } + + 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 { - var v: Clarifai_Api_User? - var hadOneofValue = false - if let current = self.target { - hadOneofValue = true - if case .user(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - self.target = .user(v) - } - }() - case 2: try { - var v: Clarifai_Api_Role? - var hadOneofValue = false - if let current = self.target { - hadOneofValue = true - if case .role(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - self.target = .role(v) - } - }() - case 3: try { - var v: Clarifai_Api_Team? - var hadOneofValue = false - if let current = self.target { - hadOneofValue = true - if case .team(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - self.target = .team(v) - } - }() - case 4: try { - var v: Clarifai_Api_App? - var hadOneofValue = false - if let current = self.target { - hadOneofValue = true - if case .app(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - self.target = .app(v) - } - }() - case 5: try { - var v: Clarifai_Api_Module? - var hadOneofValue = false - if let current = self.target { - hadOneofValue = true - if case .module(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - self.target = .module(v) - } - }() - case 6: try { - var v: Clarifai_Api_ModuleVersion? - var hadOneofValue = false - if let current = self.target { - hadOneofValue = true - if case .moduleVersion(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - self.target = .moduleVersion(v) - } - }() - case 7: try { - var v: Clarifai_Api_Workflow? - var hadOneofValue = false - if let current = self.target { - hadOneofValue = true - if case .workflow(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - self.target = .workflow(v) - } - }() - case 8: try { - var v: Clarifai_Api_WorkflowVersion? - var hadOneofValue = false - if let current = self.target { - hadOneofValue = true - if case .workflowVersion(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - self.target = .workflowVersion(v) + _ = _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.decodeSingularStringField(value: &_storage._id) }() + case 2: try { try decoder.decodeSingularStringField(value: &_storage._description_p) }() + case 3: try { try decoder.decodeSingularMessageField(value: &_storage._cloudProvider) }() + case 4: try { try decoder.decodeSingularStringField(value: &_storage._region) }() + case 5: try { try decoder.decodeSingularStringField(value: &_storage._userID) }() + case 6: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() + case 7: try { try decoder.decodeSingularMessageField(value: &_storage._modifiedAt) }() + case 8: try { try decoder.decodeSingularMessageField(value: &_storage._visibility) }() + case 9: try { try decoder.decodeSingularStringField(value: &_storage._clusterType) }() + case 10: try { try decoder.decodeSingularStringField(value: &_storage._managedBy) }() + case 11: try { try decoder.decodeSingularMessageField(value: &_storage._key) }() + default: break } - }() - 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 - switch self.target { - case .user?: try { - guard case .user(let v)? = self.target else { preconditionFailure() } - try visitor.visitSingularMessageField(value: v, fieldNumber: 1) - }() - case .role?: try { - guard case .role(let v)? = self.target else { preconditionFailure() } - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - }() - case .team?: try { - guard case .team(let v)? = self.target else { preconditionFailure() } - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - }() - case .app?: try { - guard case .app(let v)? = self.target else { preconditionFailure() } - try visitor.visitSingularMessageField(value: v, fieldNumber: 4) - }() - case .module?: try { - guard case .module(let v)? = self.target else { preconditionFailure() } - try visitor.visitSingularMessageField(value: v, fieldNumber: 5) - }() - case .moduleVersion?: try { - guard case .moduleVersion(let v)? = self.target else { preconditionFailure() } - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) - }() - case .workflow?: try { - guard case .workflow(let v)? = self.target else { preconditionFailure() } - try visitor.visitSingularMessageField(value: v, fieldNumber: 7) - }() - case .workflowVersion?: try { - guard case .workflowVersion(let v)? = self.target else { preconditionFailure() } - try visitor.visitSingularMessageField(value: v, fieldNumber: 8) - }() - case nil: 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.isEmpty { + try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) + } + if !_storage._description_p.isEmpty { + try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 2) + } + try { if let v = _storage._cloudProvider { + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + } }() + if !_storage._region.isEmpty { + try visitor.visitSingularStringField(value: _storage._region, fieldNumber: 4) + } + if !_storage._userID.isEmpty { + try visitor.visitSingularStringField(value: _storage._userID, fieldNumber: 5) + } + try { if let v = _storage._createdAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + } }() + try { if let v = _storage._modifiedAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 7) + } }() + try { if let v = _storage._visibility { + try visitor.visitSingularMessageField(value: v, fieldNumber: 8) + } }() + if !_storage._clusterType.isEmpty { + try visitor.visitSingularStringField(value: _storage._clusterType, fieldNumber: 9) + } + if !_storage._managedBy.isEmpty { + try visitor.visitSingularStringField(value: _storage._managedBy, fieldNumber: 10) + } + try { if let v = _storage._key { + try visitor.visitSingularMessageField(value: v, fieldNumber: 11) + } }() } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_AuditLogTarget, rhs: Clarifai_Api_AuditLogTarget) -> Bool { - if lhs.target != rhs.target {return false} + public static func ==(lhs: Clarifai_Api_ComputeCluster, rhs: Clarifai_Api_ComputeCluster) -> 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._description_p != rhs_storage._description_p {return false} + if _storage._cloudProvider != rhs_storage._cloudProvider {return false} + if _storage._region != rhs_storage._region {return false} + if _storage._userID != rhs_storage._userID {return false} + if _storage._createdAt != rhs_storage._createdAt {return false} + if _storage._modifiedAt != rhs_storage._modifiedAt {return false} + if _storage._visibility != rhs_storage._visibility {return false} + if _storage._clusterType != rhs_storage._clusterType {return false} + if _storage._managedBy != rhs_storage._managedBy {return false} + if _storage._key != rhs_storage._key {return false} + return true + } + if !storagesAreEqual {return false} + } if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_AuditLogEntry: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".AuditLogEntry" +extension Clarifai_Api_ComputeInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".ComputeInfo" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "timestamp"), - 2: .same(proto: "user"), - 3: .same(proto: "operation"), - 4: .same(proto: "description"), - 5: .same(proto: "targets"), - 6: .same(proto: "details"), - 7: .same(proto: "success"), - 8: .standard(proto: "req_id"), - 9: .standard(proto: "source_ip"), + 6: .standard(proto: "cpu_limit"), + 2: .standard(proto: "cpu_memory"), + 3: .standard(proto: "num_accelerators"), + 4: .standard(proto: "accelerator_memory"), + 5: .standard(proto: "accelerator_type"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -29417,80 +28566,55 @@ extension Clarifai_Api_AuditLogEntry: SwiftProtobuf.Message, SwiftProtobuf._Mess // 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._timestamp) }() - case 2: try { try decoder.decodeSingularMessageField(value: &self._user) }() - case 3: try { try decoder.decodeSingularEnumField(value: &self.operation) }() - case 4: try { try decoder.decodeSingularStringField(value: &self.description_p) }() - case 5: try { try decoder.decodeRepeatedMessageField(value: &self.targets) }() - case 6: try { try decoder.decodeRepeatedStringField(value: &self.details) }() - case 7: try { try decoder.decodeSingularBoolField(value: &self.success) }() - case 8: try { try decoder.decodeSingularStringField(value: &self.reqID) }() - case 9: try { try decoder.decodeSingularStringField(value: &self.sourceIp) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.cpuMemory) }() + case 3: try { try decoder.decodeSingularUInt32Field(value: &self.numAccelerators) }() + case 4: try { try decoder.decodeSingularStringField(value: &self.acceleratorMemory) }() + case 5: try { try decoder.decodeRepeatedStringField(value: &self.acceleratorType) }() + case 6: try { try decoder.decodeSingularStringField(value: &self.cpuLimit) }() 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._timestamp { - try visitor.visitSingularMessageField(value: v, fieldNumber: 1) - } }() - try { if let v = self._user { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - if self.operation != .notSet { - try visitor.visitSingularEnumField(value: self.operation, fieldNumber: 3) - } - if !self.description_p.isEmpty { - try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 4) - } - if !self.targets.isEmpty { - try visitor.visitRepeatedMessageField(value: self.targets, fieldNumber: 5) + if !self.cpuMemory.isEmpty { + try visitor.visitSingularStringField(value: self.cpuMemory, fieldNumber: 2) } - if !self.details.isEmpty { - try visitor.visitRepeatedStringField(value: self.details, fieldNumber: 6) + if self.numAccelerators != 0 { + try visitor.visitSingularUInt32Field(value: self.numAccelerators, fieldNumber: 3) } - if self.success != false { - try visitor.visitSingularBoolField(value: self.success, fieldNumber: 7) + if !self.acceleratorMemory.isEmpty { + try visitor.visitSingularStringField(value: self.acceleratorMemory, fieldNumber: 4) } - if !self.reqID.isEmpty { - try visitor.visitSingularStringField(value: self.reqID, fieldNumber: 8) + if !self.acceleratorType.isEmpty { + try visitor.visitRepeatedStringField(value: self.acceleratorType, fieldNumber: 5) } - if !self.sourceIp.isEmpty { - try visitor.visitSingularStringField(value: self.sourceIp, fieldNumber: 9) + if !self.cpuLimit.isEmpty { + try visitor.visitSingularStringField(value: self.cpuLimit, fieldNumber: 6) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_AuditLogEntry, rhs: Clarifai_Api_AuditLogEntry) -> Bool { - if lhs._timestamp != rhs._timestamp {return false} - if lhs._user != rhs._user {return false} - if lhs.operation != rhs.operation {return false} - if lhs.description_p != rhs.description_p {return false} - if lhs.targets != rhs.targets {return false} - if lhs.details != rhs.details {return false} - if lhs.success != rhs.success {return false} - if lhs.reqID != rhs.reqID {return false} - if lhs.sourceIp != rhs.sourceIp {return false} + public static func ==(lhs: Clarifai_Api_ComputeInfo, rhs: Clarifai_Api_ComputeInfo) -> Bool { + if lhs.cpuLimit != rhs.cpuLimit {return false} + if lhs.cpuMemory != rhs.cpuMemory {return false} + if lhs.numAccelerators != rhs.numAccelerators {return false} + if lhs.acceleratorMemory != rhs.acceleratorMemory {return false} + if lhs.acceleratorType != rhs.acceleratorType {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_AuditLogQuery: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".AuditLogQuery" +extension Clarifai_Api_AutoscaleConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".AutoscaleConfig" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "timestamp_from"), - 2: .standard(proto: "timestamp_to"), - 3: .standard(proto: "user_ids"), - 4: .same(proto: "operations"), - 5: .same(proto: "targets"), - 6: .same(proto: "success"), - 7: .standard(proto: "source_ips"), + 1: .standard(proto: "min_replicas"), + 2: .standard(proto: "max_replicas"), + 3: .standard(proto: "traffic_history_seconds"), + 4: .standard(proto: "scale_down_delay_seconds"), + 5: .standard(proto: "scale_up_delay_seconds"), + 7: .standard(proto: "disable_packing"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -29499,139 +28623,219 @@ extension Clarifai_Api_AuditLogQuery: SwiftProtobuf.Message, SwiftProtobuf._Mess // 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._timestampFrom) }() - case 2: try { try decoder.decodeSingularMessageField(value: &self._timestampTo) }() - case 3: try { try decoder.decodeRepeatedStringField(value: &self.userIds) }() - case 4: try { try decoder.decodeRepeatedEnumField(value: &self.operations) }() - case 5: try { try decoder.decodeRepeatedMessageField(value: &self.targets) }() - case 6: try { try decoder.decodeSingularMessageField(value: &self._success) }() - case 7: try { try decoder.decodeRepeatedStringField(value: &self.sourceIps) }() + case 1: try { try decoder.decodeSingularUInt32Field(value: &self.minReplicas) }() + case 2: try { try decoder.decodeSingularUInt32Field(value: &self.maxReplicas) }() + case 3: try { try decoder.decodeSingularUInt32Field(value: &self.trafficHistorySeconds) }() + case 4: try { try decoder.decodeSingularUInt32Field(value: &self.scaleDownDelaySeconds) }() + case 5: try { try decoder.decodeSingularUInt32Field(value: &self.scaleUpDelaySeconds) }() + case 7: try { try decoder.decodeSingularBoolField(value: &self.disablePacking) }() 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._timestampFrom { - try visitor.visitSingularMessageField(value: v, fieldNumber: 1) - } }() - try { if let v = self._timestampTo { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - if !self.userIds.isEmpty { - try visitor.visitRepeatedStringField(value: self.userIds, fieldNumber: 3) + if self.minReplicas != 0 { + try visitor.visitSingularUInt32Field(value: self.minReplicas, fieldNumber: 1) } - if !self.operations.isEmpty { - try visitor.visitPackedEnumField(value: self.operations, fieldNumber: 4) + if self.maxReplicas != 0 { + try visitor.visitSingularUInt32Field(value: self.maxReplicas, fieldNumber: 2) } - if !self.targets.isEmpty { - try visitor.visitRepeatedMessageField(value: self.targets, fieldNumber: 5) + if self.trafficHistorySeconds != 0 { + try visitor.visitSingularUInt32Field(value: self.trafficHistorySeconds, fieldNumber: 3) } - try { if let v = self._success { - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) - } }() - if !self.sourceIps.isEmpty { - try visitor.visitRepeatedStringField(value: self.sourceIps, fieldNumber: 7) + if self.scaleDownDelaySeconds != 0 { + try visitor.visitSingularUInt32Field(value: self.scaleDownDelaySeconds, fieldNumber: 4) + } + if self.scaleUpDelaySeconds != 0 { + try visitor.visitSingularUInt32Field(value: self.scaleUpDelaySeconds, fieldNumber: 5) + } + if self.disablePacking != false { + try visitor.visitSingularBoolField(value: self.disablePacking, fieldNumber: 7) } try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_AuditLogQuery, rhs: Clarifai_Api_AuditLogQuery) -> Bool { - if lhs._timestampFrom != rhs._timestampFrom {return false} - if lhs._timestampTo != rhs._timestampTo {return false} - if lhs.userIds != rhs.userIds {return false} - if lhs.operations != rhs.operations {return false} - if lhs.targets != rhs.targets {return false} - if lhs._success != rhs._success {return false} - if lhs.sourceIps != rhs.sourceIps {return false} + } + + public static func ==(lhs: Clarifai_Api_AutoscaleConfig, rhs: Clarifai_Api_AutoscaleConfig) -> Bool { + if lhs.minReplicas != rhs.minReplicas {return false} + if lhs.maxReplicas != rhs.maxReplicas {return false} + if lhs.trafficHistorySeconds != rhs.trafficHistorySeconds {return false} + if lhs.scaleDownDelaySeconds != rhs.scaleDownDelaySeconds {return false} + if lhs.scaleUpDelaySeconds != rhs.scaleUpDelaySeconds {return false} + if lhs.disablePacking != rhs.disablePacking {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_WorkflowVersionEvaluationMetric: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".WorkflowVersionEvaluationMetric" +extension Clarifai_Api_Deployment: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".Deployment" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ 1: .same(proto: "id"), - 2: .same(proto: "summary"), - 3: .same(proto: "description"), - 4: .standard(proto: "data_type"), - 5: .standard(proto: "visualisation_type"), + 2: .standard(proto: "user_id"), + 3: .standard(proto: "autoscale_config"), + 4: .same(proto: "nodepools"), + 7: .standard(proto: "scheduling_choice"), + 8: .same(proto: "visibility"), + 9: .same(proto: "metadata"), + 10: .same(proto: "description"), + 11: .same(proto: "worker"), + 12: .standard(proto: "created_at"), + 13: .standard(proto: "modified_at"), ] + fileprivate class _StorageClass { + var _id: String = String() + var _userID: String = String() + var _autoscaleConfig: Clarifai_Api_AutoscaleConfig? = nil + var _nodepools: [Clarifai_Api_Nodepool] = [] + var _schedulingChoice: Clarifai_Api_Deployment.SchedulingChoice = .unknownSchedulingChoice + var _visibility: Clarifai_Api_Visibility? = nil + var _metadata: SwiftProtobuf.Google_Protobuf_Struct? = nil + var _description_p: String = String() + var _worker: Clarifai_Api_Worker? = nil + var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _modifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _id = source._id + _userID = source._userID + _autoscaleConfig = source._autoscaleConfig + _nodepools = source._nodepools + _schedulingChoice = source._schedulingChoice + _visibility = source._visibility + _metadata = source._metadata + _description_p = source._description_p + _worker = source._worker + _createdAt = source._createdAt + _modifiedAt = source._modifiedAt + } + } + + 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.id) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.summary) }() - case 3: try { try decoder.decodeSingularStringField(value: &self.description_p) }() - case 4: try { try decoder.decodeSingularEnumField(value: &self.dataType) }() - case 5: try { try decoder.decodeSingularEnumField(value: &self.visualisationType) }() - 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.decodeSingularStringField(value: &_storage._id) }() + case 2: try { try decoder.decodeSingularStringField(value: &_storage._userID) }() + case 3: try { try decoder.decodeSingularMessageField(value: &_storage._autoscaleConfig) }() + case 4: try { try decoder.decodeRepeatedMessageField(value: &_storage._nodepools) }() + case 7: try { try decoder.decodeSingularEnumField(value: &_storage._schedulingChoice) }() + case 8: try { try decoder.decodeSingularMessageField(value: &_storage._visibility) }() + case 9: try { try decoder.decodeSingularMessageField(value: &_storage._metadata) }() + case 10: try { try decoder.decodeSingularStringField(value: &_storage._description_p) }() + case 11: try { try decoder.decodeSingularMessageField(value: &_storage._worker) }() + case 12: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() + case 13: try { try decoder.decodeSingularMessageField(value: &_storage._modifiedAt) }() + default: break + } } } } public func traverse(visitor: inout V) throws { - if !self.id.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) - } - if !self.summary.isEmpty { - try visitor.visitSingularStringField(value: self.summary, fieldNumber: 2) - } - if !self.description_p.isEmpty { - try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 3) - } - if self.dataType != .notSet { - try visitor.visitSingularEnumField(value: self.dataType, fieldNumber: 4) - } - if self.visualisationType != .visualizationTypeNotSet { - try visitor.visitSingularEnumField(value: self.visualisationType, 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.isEmpty { + try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) + } + if !_storage._userID.isEmpty { + try visitor.visitSingularStringField(value: _storage._userID, fieldNumber: 2) + } + try { if let v = _storage._autoscaleConfig { + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + } }() + if !_storage._nodepools.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._nodepools, fieldNumber: 4) + } + if _storage._schedulingChoice != .unknownSchedulingChoice { + try visitor.visitSingularEnumField(value: _storage._schedulingChoice, fieldNumber: 7) + } + try { if let v = _storage._visibility { + try visitor.visitSingularMessageField(value: v, fieldNumber: 8) + } }() + try { if let v = _storage._metadata { + try visitor.visitSingularMessageField(value: v, fieldNumber: 9) + } }() + if !_storage._description_p.isEmpty { + try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 10) + } + try { if let v = _storage._worker { + try visitor.visitSingularMessageField(value: v, fieldNumber: 11) + } }() + try { if let v = _storage._createdAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 12) + } }() + try { if let v = _storage._modifiedAt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 13) + } }() } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_WorkflowVersionEvaluationMetric, rhs: Clarifai_Api_WorkflowVersionEvaluationMetric) -> Bool { - if lhs.id != rhs.id {return false} - if lhs.summary != rhs.summary {return false} - if lhs.description_p != rhs.description_p {return false} - if lhs.dataType != rhs.dataType {return false} - if lhs.visualisationType != rhs.visualisationType {return false} + public static func ==(lhs: Clarifai_Api_Deployment, rhs: Clarifai_Api_Deployment) -> 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._userID != rhs_storage._userID {return false} + if _storage._autoscaleConfig != rhs_storage._autoscaleConfig {return false} + if _storage._nodepools != rhs_storage._nodepools {return false} + if _storage._schedulingChoice != rhs_storage._schedulingChoice {return false} + if _storage._visibility != rhs_storage._visibility {return false} + if _storage._metadata != rhs_storage._metadata {return false} + if _storage._description_p != rhs_storage._description_p {return false} + if _storage._worker != rhs_storage._worker {return false} + if _storage._createdAt != rhs_storage._createdAt {return false} + if _storage._modifiedAt != rhs_storage._modifiedAt {return false} + return true + } + if !storagesAreEqual {return false} + } if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_WorkflowVersionEvaluationMetric.DataType: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "DATA_TYPE_NOT_SET"), - 1: .same(proto: "FLOAT"), - ] -} - -extension Clarifai_Api_WorkflowVersionEvaluationMetric.VisualisationType: SwiftProtobuf._ProtoNameProviding { +extension Clarifai_Api_Deployment.SchedulingChoice: SwiftProtobuf._ProtoNameProviding { public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "VISUALIZATION_TYPE_NOT_SET"), - 1: .same(proto: "CONFUSION_MATRIX"), - 2: .same(proto: "PRECISION_RECALL_CURVE"), - 3: .same(proto: "ROC_AUC_CURVE"), + 0: .same(proto: "UNKNOWN_SCHEDULING_CHOICE"), + 1: .same(proto: "FAIL"), + 2: .same(proto: "RANDOM"), + 3: .same(proto: "PRICE"), + 4: .same(proto: "PERFORMANCE"), + 5: .same(proto: "NETWORK"), + 6: .same(proto: "UTILIZATION"), + 7: .same(proto: "PREFER_SPOT"), + 8: .same(proto: "PREFER_ONDEMAND"), ] } -extension Clarifai_Api_WorkflowVersionEvaluationTemplate: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".WorkflowVersionEvaluationTemplate" +extension Clarifai_Api_RunnerSelector: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".RunnerSelector" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .same(proto: "description"), - 3: .standard(proto: "task_types"), - 4: .standard(proto: "workflow_version_evaluation_metrics"), + 1: .same(proto: "nodepool"), + 2: .same(proto: "runner"), + 3: .same(proto: "deployment"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -29640,55 +28844,46 @@ extension Clarifai_Api_WorkflowVersionEvaluationTemplate: 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.decodeSingularStringField(value: &self.id) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.description_p) }() - case 3: try { try decoder.decodeRepeatedEnumField(value: &self.taskTypes) }() - case 4: try { try decoder.decodeRepeatedMessageField(value: &self.workflowVersionEvaluationMetrics) }() + case 1: try { try decoder.decodeSingularMessageField(value: &self._nodepool) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._runner) }() + case 3: try { try decoder.decodeSingularMessageField(value: &self._deployment) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.id.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) - } - if !self.description_p.isEmpty { - try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 2) - } - if !self.taskTypes.isEmpty { - try visitor.visitPackedEnumField(value: self.taskTypes, fieldNumber: 3) - } - if !self.workflowVersionEvaluationMetrics.isEmpty { - try visitor.visitRepeatedMessageField(value: self.workflowVersionEvaluationMetrics, fieldNumber: 4) - } + // 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._nodepool { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } }() + try { if let v = self._runner { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + try { if let v = self._deployment { + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_WorkflowVersionEvaluationTemplate, rhs: Clarifai_Api_WorkflowVersionEvaluationTemplate) -> Bool { - if lhs.id != rhs.id {return false} - if lhs.description_p != rhs.description_p {return false} - if lhs.taskTypes != rhs.taskTypes {return false} - if lhs.workflowVersionEvaluationMetrics != rhs.workflowVersionEvaluationMetrics {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Clarifai_Api_WorkflowVersionEvaluationTemplate.TaskType: SwiftProtobuf._ProtoNameProviding { - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "TASK_TYPE_NOT_SET"), - 1: .same(proto: "TEXT_CLASSIFICATION"), - ] + public static func ==(lhs: Clarifai_Api_RunnerSelector, rhs: Clarifai_Api_RunnerSelector) -> Bool { + if lhs._nodepool != rhs._nodepool {return false} + if lhs._runner != rhs._runner {return false} + if lhs._deployment != rhs._deployment {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } } -extension Clarifai_Api_LogEntry: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".LogEntry" +extension Clarifai_Api_ProcessingInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".ProcessingInfo" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "message"), - 2: .standard(proto: "log_type"), - 3: .same(proto: "url"), - 9: .same(proto: "meta"), + 1: .standard(proto: "runner_method_type"), + 2: .same(proto: "status"), + 3: .standard(proto: "processing_id"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -29697,10 +28892,9 @@ extension Clarifai_Api_LogEntry: 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.decodeSingularStringField(value: &self.message) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.logType) }() - case 3: try { try decoder.decodeSingularStringField(value: &self.url) }() - case 9: try { try decoder.decodeSingularMessageField(value: &self._meta) }() + case 1: try { try decoder.decodeSingularEnumField(value: &self.runnerMethodType) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._status) }() + case 3: try { try decoder.decodeSingularStringField(value: &self.processingID) }() default: break } } @@ -29711,41 +28905,40 @@ extension Clarifai_Api_LogEntry: SwiftProtobuf.Message, SwiftProtobuf._MessageIm // 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.message.isEmpty { - try visitor.visitSingularStringField(value: self.message, fieldNumber: 1) - } - if !self.logType.isEmpty { - try visitor.visitSingularStringField(value: self.logType, fieldNumber: 2) - } - if !self.url.isEmpty { - try visitor.visitSingularStringField(value: self.url, fieldNumber: 3) + if self.runnerMethodType != .unknown { + try visitor.visitSingularEnumField(value: self.runnerMethodType, fieldNumber: 1) } - try { if let v = self._meta { - try visitor.visitSingularMessageField(value: v, fieldNumber: 9) + try { if let v = self._status { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) } }() + if !self.processingID.isEmpty { + try visitor.visitSingularStringField(value: self.processingID, fieldNumber: 3) + } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_LogEntry, rhs: Clarifai_Api_LogEntry) -> Bool { - if lhs.message != rhs.message {return false} - if lhs.logType != rhs.logType {return false} - if lhs.url != rhs.url {return false} - if lhs._meta != rhs._meta {return false} + public static func ==(lhs: Clarifai_Api_ProcessingInfo, rhs: Clarifai_Api_ProcessingInfo) -> Bool { + if lhs.runnerMethodType != rhs.runnerMethodType {return false} + if lhs._status != rhs._status {return false} + if lhs.processingID != rhs.processingID {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_ComputeSourceMetadata: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".ComputeSourceMetadata" +extension Clarifai_Api_AuditLogTarget: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".AuditLogTarget" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "user_app_id"), - 2: .standard(proto: "model_id"), - 3: .standard(proto: "model_version_id"), - 4: .standard(proto: "workflow_id"), - 6: .standard(proto: "compute_cluster_id"), - 7: .standard(proto: "nodepool_id"), - 8: .standard(proto: "runner_id"), + 1: .same(proto: "user"), + 2: .same(proto: "role"), + 3: .same(proto: "team"), + 4: .same(proto: "app"), + 5: .same(proto: "module"), + 6: .standard(proto: "module_version"), + 7: .same(proto: "workflow"), + 8: .standard(proto: "workflow_version"), + 9: .same(proto: "model"), + 10: .standard(proto: "model_version"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -29754,13 +28947,136 @@ extension Clarifai_Api_ComputeSourceMetadata: SwiftProtobuf.Message, SwiftProtob // 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._userAppID) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.modelID) }() - case 3: try { try decoder.decodeSingularStringField(value: &self.modelVersionID) }() - case 4: try { try decoder.decodeSingularStringField(value: &self.workflowID) }() - case 6: try { try decoder.decodeSingularStringField(value: &self.computeClusterID) }() - case 7: try { try decoder.decodeSingularStringField(value: &self.nodepoolID) }() - case 8: try { try decoder.decodeSingularStringField(value: &self.runnerID) }() + case 1: try { + var v: Clarifai_Api_User? + var hadOneofValue = false + if let current = self.target { + hadOneofValue = true + if case .user(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.target = .user(v) + } + }() + case 2: try { + var v: Clarifai_Api_Role? + var hadOneofValue = false + if let current = self.target { + hadOneofValue = true + if case .role(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.target = .role(v) + } + }() + case 3: try { + var v: Clarifai_Api_Team? + var hadOneofValue = false + if let current = self.target { + hadOneofValue = true + if case .team(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.target = .team(v) + } + }() + case 4: try { + var v: Clarifai_Api_App? + var hadOneofValue = false + if let current = self.target { + hadOneofValue = true + if case .app(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.target = .app(v) + } + }() + case 5: try { + var v: Clarifai_Api_Module? + var hadOneofValue = false + if let current = self.target { + hadOneofValue = true + if case .module(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.target = .module(v) + } + }() + case 6: try { + var v: Clarifai_Api_ModuleVersion? + var hadOneofValue = false + if let current = self.target { + hadOneofValue = true + if case .moduleVersion(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.target = .moduleVersion(v) + } + }() + case 7: try { + var v: Clarifai_Api_Workflow? + var hadOneofValue = false + if let current = self.target { + hadOneofValue = true + if case .workflow(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.target = .workflow(v) + } + }() + case 8: try { + var v: Clarifai_Api_WorkflowVersion? + var hadOneofValue = false + if let current = self.target { + hadOneofValue = true + if case .workflowVersion(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.target = .workflowVersion(v) + } + }() + case 9: try { + var v: Clarifai_Api_Model? + var hadOneofValue = false + if let current = self.target { + hadOneofValue = true + if case .model(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.target = .model(v) + } + }() + case 10: try { + var v: Clarifai_Api_ModelVersion? + var hadOneofValue = false + if let current = self.target { + hadOneofValue = true + if case .modelVersion(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.target = .modelVersion(v) + } + }() default: break } } @@ -29771,49 +29087,71 @@ extension Clarifai_Api_ComputeSourceMetadata: SwiftProtobuf.Message, SwiftProtob // 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._userAppID { + switch self.target { + case .user?: try { + guard case .user(let v)? = self.target else { preconditionFailure() } try visitor.visitSingularMessageField(value: v, fieldNumber: 1) - } }() - if !self.modelID.isEmpty { - try visitor.visitSingularStringField(value: self.modelID, fieldNumber: 2) - } - if !self.modelVersionID.isEmpty { - try visitor.visitSingularStringField(value: self.modelVersionID, fieldNumber: 3) - } - if !self.workflowID.isEmpty { - try visitor.visitSingularStringField(value: self.workflowID, fieldNumber: 4) - } - if !self.computeClusterID.isEmpty { - try visitor.visitSingularStringField(value: self.computeClusterID, fieldNumber: 6) - } - if !self.nodepoolID.isEmpty { - try visitor.visitSingularStringField(value: self.nodepoolID, fieldNumber: 7) - } - if !self.runnerID.isEmpty { - try visitor.visitSingularStringField(value: self.runnerID, fieldNumber: 8) + }() + case .role?: try { + guard case .role(let v)? = self.target else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + }() + case .team?: try { + guard case .team(let v)? = self.target else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + }() + case .app?: try { + guard case .app(let v)? = self.target else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + }() + case .module?: try { + guard case .module(let v)? = self.target else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + }() + case .moduleVersion?: try { + guard case .moduleVersion(let v)? = self.target else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + }() + case .workflow?: try { + guard case .workflow(let v)? = self.target else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 7) + }() + case .workflowVersion?: try { + guard case .workflowVersion(let v)? = self.target else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 8) + }() + case .model?: try { + guard case .model(let v)? = self.target else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 9) + }() + case .modelVersion?: try { + guard case .modelVersion(let v)? = self.target else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 10) + }() + case nil: break } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_ComputeSourceMetadata, rhs: Clarifai_Api_ComputeSourceMetadata) -> Bool { - if lhs._userAppID != rhs._userAppID {return false} - if lhs.modelID != rhs.modelID {return false} - if lhs.modelVersionID != rhs.modelVersionID {return false} - if lhs.workflowID != rhs.workflowID {return false} - if lhs.computeClusterID != rhs.computeClusterID {return false} - if lhs.nodepoolID != rhs.nodepoolID {return false} - if lhs.runnerID != rhs.runnerID {return false} + public static func ==(lhs: Clarifai_Api_AuditLogTarget, rhs: Clarifai_Api_AuditLogTarget) -> Bool { + if lhs.target != rhs.target {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_ArgoOrchestrationSpec: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".ArgoOrchestrationSpec" +extension Clarifai_Api_AuditLogEntry: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".AuditLogEntry" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .standard(proto: "api_version"), - 3: .standard(proto: "spec_json"), + 1: .same(proto: "timestamp"), + 2: .same(proto: "user"), + 3: .same(proto: "operation"), + 4: .same(proto: "description"), + 5: .same(proto: "targets"), + 6: .same(proto: "details"), + 7: .same(proto: "success"), + 8: .standard(proto: "req_id"), + 9: .standard(proto: "source_ip"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -29822,40 +29160,80 @@ extension Clarifai_Api_ArgoOrchestrationSpec: SwiftProtobuf.Message, SwiftProtob // 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.id) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.apiVersion) }() - case 3: try { try decoder.decodeSingularStringField(value: &self.specJson) }() + case 1: try { try decoder.decodeSingularMessageField(value: &self._timestamp) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._user) }() + case 3: try { try decoder.decodeSingularEnumField(value: &self.operation) }() + case 4: try { try decoder.decodeSingularStringField(value: &self.description_p) }() + case 5: try { try decoder.decodeRepeatedMessageField(value: &self.targets) }() + case 6: try { try decoder.decodeRepeatedStringField(value: &self.details) }() + case 7: try { try decoder.decodeSingularBoolField(value: &self.success) }() + case 8: try { try decoder.decodeSingularStringField(value: &self.reqID) }() + case 9: try { try decoder.decodeSingularStringField(value: &self.sourceIp) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.id.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) + // 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._timestamp { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } }() + try { if let v = self._user { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + if self.operation != .notSet { + try visitor.visitSingularEnumField(value: self.operation, fieldNumber: 3) + } + if !self.description_p.isEmpty { + try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 4) + } + if !self.targets.isEmpty { + try visitor.visitRepeatedMessageField(value: self.targets, fieldNumber: 5) + } + if !self.details.isEmpty { + try visitor.visitRepeatedStringField(value: self.details, fieldNumber: 6) + } + if self.success != false { + try visitor.visitSingularBoolField(value: self.success, fieldNumber: 7) } - if !self.apiVersion.isEmpty { - try visitor.visitSingularStringField(value: self.apiVersion, fieldNumber: 2) + if !self.reqID.isEmpty { + try visitor.visitSingularStringField(value: self.reqID, fieldNumber: 8) } - if !self.specJson.isEmpty { - try visitor.visitSingularStringField(value: self.specJson, fieldNumber: 3) + if !self.sourceIp.isEmpty { + try visitor.visitSingularStringField(value: self.sourceIp, fieldNumber: 9) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_ArgoOrchestrationSpec, rhs: Clarifai_Api_ArgoOrchestrationSpec) -> Bool { - if lhs.id != rhs.id {return false} - if lhs.apiVersion != rhs.apiVersion {return false} - if lhs.specJson != rhs.specJson {return false} + public static func ==(lhs: Clarifai_Api_AuditLogEntry, rhs: Clarifai_Api_AuditLogEntry) -> Bool { + if lhs._timestamp != rhs._timestamp {return false} + if lhs._user != rhs._user {return false} + if lhs.operation != rhs.operation {return false} + if lhs.description_p != rhs.description_p {return false} + if lhs.targets != rhs.targets {return false} + if lhs.details != rhs.details {return false} + if lhs.success != rhs.success {return false} + if lhs.reqID != rhs.reqID {return false} + if lhs.sourceIp != rhs.sourceIp {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_OrchestrationSpec: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".OrchestrationSpec" +extension Clarifai_Api_AuditLogQuery: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".AuditLogQuery" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "argo_orchestration_spec"), + 1: .standard(proto: "timestamp_from"), + 2: .standard(proto: "timestamp_to"), + 3: .standard(proto: "user_ids"), + 4: .same(proto: "operations"), + 5: .same(proto: "targets"), + 6: .same(proto: "success"), + 7: .standard(proto: "source_ips"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -29864,19 +29242,13 @@ extension Clarifai_Api_OrchestrationSpec: SwiftProtobuf.Message, SwiftProtobuf._ // 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 { - var v: Clarifai_Api_ArgoOrchestrationSpec? - var hadOneofValue = false - if let current = self.orchestration { - hadOneofValue = true - if case .argoOrchestrationSpec(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - self.orchestration = .argoOrchestrationSpec(v) - } - }() + case 1: try { try decoder.decodeSingularMessageField(value: &self._timestampFrom) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._timestampTo) }() + case 3: try { try decoder.decodeRepeatedStringField(value: &self.userIds) }() + case 4: try { try decoder.decodeRepeatedEnumField(value: &self.operations) }() + case 5: try { try decoder.decodeRepeatedMessageField(value: &self.targets) }() + case 6: try { try decoder.decodeSingularMessageField(value: &self._success) }() + case 7: try { try decoder.decodeRepeatedStringField(value: &self.sourceIps) }() default: break } } @@ -29887,180 +29259,122 @@ extension Clarifai_Api_OrchestrationSpec: SwiftProtobuf.Message, SwiftProtobuf._ // 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 case .argoOrchestrationSpec(let v)? = self.orchestration { + try { if let v = self._timestampFrom { try visitor.visitSingularMessageField(value: v, fieldNumber: 1) } }() + try { if let v = self._timestampTo { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + if !self.userIds.isEmpty { + try visitor.visitRepeatedStringField(value: self.userIds, fieldNumber: 3) + } + if !self.operations.isEmpty { + try visitor.visitPackedEnumField(value: self.operations, fieldNumber: 4) + } + if !self.targets.isEmpty { + try visitor.visitRepeatedMessageField(value: self.targets, fieldNumber: 5) + } + try { if let v = self._success { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + } }() + if !self.sourceIps.isEmpty { + try visitor.visitRepeatedStringField(value: self.sourceIps, fieldNumber: 7) + } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_OrchestrationSpec, rhs: Clarifai_Api_OrchestrationSpec) -> Bool { - if lhs.orchestration != rhs.orchestration {return false} + public static func ==(lhs: Clarifai_Api_AuditLogQuery, rhs: Clarifai_Api_AuditLogQuery) -> Bool { + if lhs._timestampFrom != rhs._timestampFrom {return false} + if lhs._timestampTo != rhs._timestampTo {return false} + if lhs.userIds != rhs.userIds {return false} + if lhs.operations != rhs.operations {return false} + if lhs.targets != rhs.targets {return false} + if lhs._success != rhs._success {return false} + if lhs.sourceIps != rhs.sourceIps {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_Pipeline: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".Pipeline" +extension Clarifai_Api_WorkflowVersionEvaluationMetric: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".WorkflowVersionEvaluationMetric" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ 1: .same(proto: "id"), - 2: .standard(proto: "user_id"), - 3: .standard(proto: "app_id"), - 4: .standard(proto: "orchestration_spec"), - 5: .standard(proto: "pipeline_version"), - 6: .same(proto: "description"), - 7: .same(proto: "visibility"), - 8: .same(proto: "notes"), - 9: .same(proto: "metadata"), - 10: .standard(proto: "created_at"), - 11: .standard(proto: "modified_at"), + 2: .same(proto: "summary"), + 3: .same(proto: "description"), + 4: .standard(proto: "data_type"), + 5: .standard(proto: "visualisation_type"), ] - fileprivate class _StorageClass { - var _id: String = String() - var _userID: String = String() - var _appID: String = String() - var _orchestrationSpec: Clarifai_Api_OrchestrationSpec? = nil - var _pipelineVersion: Clarifai_Api_PipelineVersion? = nil - var _description_p: String = String() - var _visibility: Clarifai_Api_Visibility? = nil - var _notes: String = String() - var _metadata: SwiftProtobuf.Google_Protobuf_Struct? = nil - var _createdAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - var _modifiedAt: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - - static let defaultInstance = _StorageClass() - - private init() {} - - init(copying source: _StorageClass) { - _id = source._id - _userID = source._userID - _appID = source._appID - _orchestrationSpec = source._orchestrationSpec - _pipelineVersion = source._pipelineVersion - _description_p = source._description_p - _visibility = source._visibility - _notes = source._notes - _metadata = source._metadata - _createdAt = source._createdAt - _modifiedAt = source._modifiedAt - } - } - - 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.decodeSingularStringField(value: &_storage._id) }() - case 2: try { try decoder.decodeSingularStringField(value: &_storage._userID) }() - case 3: try { try decoder.decodeSingularStringField(value: &_storage._appID) }() - case 4: try { try decoder.decodeSingularMessageField(value: &_storage._orchestrationSpec) }() - case 5: try { try decoder.decodeSingularMessageField(value: &_storage._pipelineVersion) }() - case 6: try { try decoder.decodeSingularStringField(value: &_storage._description_p) }() - case 7: try { try decoder.decodeSingularMessageField(value: &_storage._visibility) }() - case 8: try { try decoder.decodeSingularStringField(value: &_storage._notes) }() - case 9: try { try decoder.decodeSingularMessageField(value: &_storage._metadata) }() - case 10: try { try decoder.decodeSingularMessageField(value: &_storage._createdAt) }() - case 11: try { try decoder.decodeSingularMessageField(value: &_storage._modifiedAt) }() - default: break - } + 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.id) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.summary) }() + case 3: try { try decoder.decodeSingularStringField(value: &self.description_p) }() + case 4: try { try decoder.decodeSingularEnumField(value: &self.dataType) }() + case 5: try { try decoder.decodeSingularEnumField(value: &self.visualisationType) }() + 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.isEmpty { - try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) - } - if !_storage._userID.isEmpty { - try visitor.visitSingularStringField(value: _storage._userID, fieldNumber: 2) - } - if !_storage._appID.isEmpty { - try visitor.visitSingularStringField(value: _storage._appID, fieldNumber: 3) - } - try { if let v = _storage._orchestrationSpec { - try visitor.visitSingularMessageField(value: v, fieldNumber: 4) - } }() - try { if let v = _storage._pipelineVersion { - try visitor.visitSingularMessageField(value: v, fieldNumber: 5) - } }() - if !_storage._description_p.isEmpty { - try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 6) - } - try { if let v = _storage._visibility { - try visitor.visitSingularMessageField(value: v, fieldNumber: 7) - } }() - if !_storage._notes.isEmpty { - try visitor.visitSingularStringField(value: _storage._notes, fieldNumber: 8) - } - try { if let v = _storage._metadata { - try visitor.visitSingularMessageField(value: v, fieldNumber: 9) - } }() - try { if let v = _storage._createdAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 10) - } }() - try { if let v = _storage._modifiedAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 11) - } }() + if !self.id.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) } - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_Pipeline, rhs: Clarifai_Api_Pipeline) -> 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._userID != rhs_storage._userID {return false} - if _storage._appID != rhs_storage._appID {return false} - if _storage._orchestrationSpec != rhs_storage._orchestrationSpec {return false} - if _storage._pipelineVersion != rhs_storage._pipelineVersion {return false} - if _storage._description_p != rhs_storage._description_p {return false} - if _storage._visibility != rhs_storage._visibility {return false} - if _storage._notes != rhs_storage._notes {return false} - if _storage._metadata != rhs_storage._metadata {return false} - if _storage._createdAt != rhs_storage._createdAt {return false} - if _storage._modifiedAt != rhs_storage._modifiedAt {return false} - return true - } - if !storagesAreEqual {return false} + if !self.summary.isEmpty { + try visitor.visitSingularStringField(value: self.summary, fieldNumber: 2) } + if !self.description_p.isEmpty { + try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 3) + } + if self.dataType != .notSet { + try visitor.visitSingularEnumField(value: self.dataType, fieldNumber: 4) + } + if self.visualisationType != .visualizationTypeNotSet { + try visitor.visitSingularEnumField(value: self.visualisationType, fieldNumber: 5) + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Clarifai_Api_WorkflowVersionEvaluationMetric, rhs: Clarifai_Api_WorkflowVersionEvaluationMetric) -> Bool { + if lhs.id != rhs.id {return false} + if lhs.summary != rhs.summary {return false} + if lhs.description_p != rhs.description_p {return false} + if lhs.dataType != rhs.dataType {return false} + if lhs.visualisationType != rhs.visualisationType {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_PipelineVersion: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".PipelineVersion" +extension Clarifai_Api_WorkflowVersionEvaluationMetric.DataType: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "DATA_TYPE_NOT_SET"), + 1: .same(proto: "FLOAT"), + ] +} + +extension Clarifai_Api_WorkflowVersionEvaluationMetric.VisualisationType: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "VISUALIZATION_TYPE_NOT_SET"), + 1: .same(proto: "CONFUSION_MATRIX"), + 2: .same(proto: "PRECISION_RECALL_CURVE"), + 3: .same(proto: "ROC_AUC_CURVE"), + ] +} + +extension Clarifai_Api_WorkflowVersionEvaluationTemplate: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".WorkflowVersionEvaluationTemplate" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ 1: .same(proto: "id"), - 2: .standard(proto: "app_id"), - 3: .standard(proto: "user_id"), - 4: .standard(proto: "orchestration_spec"), - 5: .standard(proto: "pipeline_id"), - 6: .same(proto: "description"), - 7: .same(proto: "visibility"), - 8: .same(proto: "metadata"), - 9: .standard(proto: "created_at"), - 10: .standard(proto: "modified_at"), + 2: .same(proto: "description"), + 3: .standard(proto: "task_types"), + 4: .standard(proto: "workflow_version_evaluation_metrics"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -30070,79 +29384,54 @@ extension Clarifai_Api_PipelineVersion: SwiftProtobuf.Message, SwiftProtobuf._Me // enabled. https://github.com/apple/swift-protobuf/issues/1034 switch fieldNumber { case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.appID) }() - case 3: try { try decoder.decodeSingularStringField(value: &self.userID) }() - case 4: try { try decoder.decodeSingularMessageField(value: &self._orchestrationSpec) }() - case 5: try { try decoder.decodeSingularStringField(value: &self.pipelineID) }() - case 6: try { try decoder.decodeSingularStringField(value: &self.description_p) }() - case 7: try { try decoder.decodeSingularMessageField(value: &self._visibility) }() - case 8: try { try decoder.decodeSingularMessageField(value: &self._metadata) }() - case 9: try { try decoder.decodeSingularMessageField(value: &self._createdAt) }() - case 10: try { try decoder.decodeSingularMessageField(value: &self._modifiedAt) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.description_p) }() + case 3: try { try decoder.decodeRepeatedEnumField(value: &self.taskTypes) }() + case 4: try { try decoder.decodeRepeatedMessageField(value: &self.workflowVersionEvaluationMetrics) }() 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.isEmpty { try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) } - if !self.appID.isEmpty { - try visitor.visitSingularStringField(value: self.appID, fieldNumber: 2) - } - if !self.userID.isEmpty { - try visitor.visitSingularStringField(value: self.userID, fieldNumber: 3) + if !self.description_p.isEmpty { + try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 2) } - try { if let v = self._orchestrationSpec { - try visitor.visitSingularMessageField(value: v, fieldNumber: 4) - } }() - if !self.pipelineID.isEmpty { - try visitor.visitSingularStringField(value: self.pipelineID, fieldNumber: 5) + if !self.taskTypes.isEmpty { + try visitor.visitPackedEnumField(value: self.taskTypes, fieldNumber: 3) } - if !self.description_p.isEmpty { - try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 6) + if !self.workflowVersionEvaluationMetrics.isEmpty { + try visitor.visitRepeatedMessageField(value: self.workflowVersionEvaluationMetrics, fieldNumber: 4) } - try { if let v = self._visibility { - try visitor.visitSingularMessageField(value: v, fieldNumber: 7) - } }() - try { if let v = self._metadata { - try visitor.visitSingularMessageField(value: v, fieldNumber: 8) - } }() - try { if let v = self._createdAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 9) - } }() - try { if let v = self._modifiedAt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 10) - } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_PipelineVersion, rhs: Clarifai_Api_PipelineVersion) -> Bool { + public static func ==(lhs: Clarifai_Api_WorkflowVersionEvaluationTemplate, rhs: Clarifai_Api_WorkflowVersionEvaluationTemplate) -> Bool { if lhs.id != rhs.id {return false} - if lhs.appID != rhs.appID {return false} - if lhs.userID != rhs.userID {return false} - if lhs._orchestrationSpec != rhs._orchestrationSpec {return false} - if lhs.pipelineID != rhs.pipelineID {return false} if lhs.description_p != rhs.description_p {return false} - if lhs._visibility != rhs._visibility {return false} - if lhs._metadata != rhs._metadata {return false} - if lhs._createdAt != rhs._createdAt {return false} - if lhs._modifiedAt != rhs._modifiedAt {return false} + if lhs.taskTypes != rhs.taskTypes {return false} + if lhs.workflowVersionEvaluationMetrics != rhs.workflowVersionEvaluationMetrics {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_OrchestrationStatus: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".OrchestrationStatus" +extension Clarifai_Api_WorkflowVersionEvaluationTemplate.TaskType: SwiftProtobuf._ProtoNameProviding { public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "argo_status"), - 2: .same(proto: "status"), + 0: .same(proto: "TASK_TYPE_NOT_SET"), + 1: .same(proto: "TEXT_CLASSIFICATION"), + ] +} + +extension Clarifai_Api_LogEntry: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".LogEntry" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "message"), + 2: .standard(proto: "log_type"), + 3: .same(proto: "url"), + 9: .same(proto: "meta"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -30151,20 +29440,10 @@ extension Clarifai_Api_OrchestrationStatus: SwiftProtobuf.Message, SwiftProtobuf // 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 { - var v: Clarifai_Api_ArgoOrchestrationStatus? - var hadOneofValue = false - if let current = self.statusDetails { - hadOneofValue = true - if case .argoStatus(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - self.statusDetails = .argoStatus(v) - } - }() - case 2: try { try decoder.decodeSingularMessageField(value: &self._status) }() + case 1: try { try decoder.decodeSingularStringField(value: &self.message) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.logType) }() + case 3: try { try decoder.decodeSingularStringField(value: &self.url) }() + case 9: try { try decoder.decodeSingularMessageField(value: &self._meta) }() default: break } } @@ -30175,27 +29454,41 @@ extension Clarifai_Api_OrchestrationStatus: SwiftProtobuf.Message, SwiftProtobuf // 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 case .argoStatus(let v)? = self.statusDetails { - try visitor.visitSingularMessageField(value: v, fieldNumber: 1) - } }() - try { if let v = self._status { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + if !self.message.isEmpty { + try visitor.visitSingularStringField(value: self.message, fieldNumber: 1) + } + if !self.logType.isEmpty { + try visitor.visitSingularStringField(value: self.logType, fieldNumber: 2) + } + if !self.url.isEmpty { + try visitor.visitSingularStringField(value: self.url, fieldNumber: 3) + } + try { if let v = self._meta { + try visitor.visitSingularMessageField(value: v, fieldNumber: 9) } }() try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_OrchestrationStatus, rhs: Clarifai_Api_OrchestrationStatus) -> Bool { - if lhs.statusDetails != rhs.statusDetails {return false} - if lhs._status != rhs._status {return false} + public static func ==(lhs: Clarifai_Api_LogEntry, rhs: Clarifai_Api_LogEntry) -> Bool { + if lhs.message != rhs.message {return false} + if lhs.logType != rhs.logType {return false} + if lhs.url != rhs.url {return false} + if lhs._meta != rhs._meta {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } } -extension Clarifai_Api_ArgoOrchestrationStatus: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".ArgoOrchestrationStatus" +extension Clarifai_Api_ComputeSourceMetadata: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".ComputeSourceMetadata" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "status"), + 1: .standard(proto: "user_app_id"), + 2: .standard(proto: "model_id"), + 3: .standard(proto: "model_version_id"), + 4: .standard(proto: "workflow_id"), + 6: .standard(proto: "compute_cluster_id"), + 7: .standard(proto: "nodepool_id"), + 8: .standard(proto: "runner_id"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -30204,113 +29497,55 @@ extension Clarifai_Api_ArgoOrchestrationStatus: SwiftProtobuf.Message, SwiftProt // 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.decodeSingularBytesField(value: &self.status) }() + case 1: try { try decoder.decodeSingularMessageField(value: &self._userAppID) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.modelID) }() + case 3: try { try decoder.decodeSingularStringField(value: &self.modelVersionID) }() + case 4: try { try decoder.decodeSingularStringField(value: &self.workflowID) }() + case 6: try { try decoder.decodeSingularStringField(value: &self.computeClusterID) }() + case 7: try { try decoder.decodeSingularStringField(value: &self.nodepoolID) }() + case 8: try { try decoder.decodeSingularStringField(value: &self.runnerID) }() default: break } } } public func traverse(visitor: inout V) throws { - if !self.status.isEmpty { - try visitor.visitSingularBytesField(value: self.status, fieldNumber: 1) + // 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._userAppID { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } }() + if !self.modelID.isEmpty { + try visitor.visitSingularStringField(value: self.modelID, fieldNumber: 2) } - try unknownFields.traverse(visitor: &visitor) - } - - public static func ==(lhs: Clarifai_Api_ArgoOrchestrationStatus, rhs: Clarifai_Api_ArgoOrchestrationStatus) -> Bool { - if lhs.status != rhs.status {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Clarifai_Api_PipelineRun: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - public static let protoMessageName: String = _protobuf_package + ".PipelineRun" - public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .standard(proto: "pipeline_version"), - 3: .same(proto: "nodepools"), - 4: .standard(proto: "orchestration_status"), - ] - - fileprivate class _StorageClass { - var _id: String = String() - var _pipelineVersion: Clarifai_Api_PipelineVersion? = nil - var _nodepools: [Clarifai_Api_Nodepool] = [] - var _orchestrationStatus: Clarifai_Api_OrchestrationStatus? = nil - - static let defaultInstance = _StorageClass() - - private init() {} - - init(copying source: _StorageClass) { - _id = source._id - _pipelineVersion = source._pipelineVersion - _nodepools = source._nodepools - _orchestrationStatus = source._orchestrationStatus + if !self.modelVersionID.isEmpty { + try visitor.visitSingularStringField(value: self.modelVersionID, fieldNumber: 3) } - } - - fileprivate mutating func _uniqueStorage() -> _StorageClass { - if !isKnownUniquelyReferenced(&_storage) { - _storage = _StorageClass(copying: _storage) + if !self.workflowID.isEmpty { + try visitor.visitSingularStringField(value: self.workflowID, fieldNumber: 4) } - 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.decodeSingularStringField(value: &_storage._id) }() - case 2: try { try decoder.decodeSingularMessageField(value: &_storage._pipelineVersion) }() - case 3: try { try decoder.decodeRepeatedMessageField(value: &_storage._nodepools) }() - case 4: try { try decoder.decodeSingularMessageField(value: &_storage._orchestrationStatus) }() - default: break - } - } + if !self.computeClusterID.isEmpty { + try visitor.visitSingularStringField(value: self.computeClusterID, fieldNumber: 6) } - } - - 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.isEmpty { - try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) - } - try { if let v = _storage._pipelineVersion { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - if !_storage._nodepools.isEmpty { - try visitor.visitRepeatedMessageField(value: _storage._nodepools, fieldNumber: 3) - } - try { if let v = _storage._orchestrationStatus { - try visitor.visitSingularMessageField(value: v, fieldNumber: 4) - } }() + if !self.nodepoolID.isEmpty { + try visitor.visitSingularStringField(value: self.nodepoolID, fieldNumber: 7) + } + if !self.runnerID.isEmpty { + try visitor.visitSingularStringField(value: self.runnerID, fieldNumber: 8) } try unknownFields.traverse(visitor: &visitor) } - public static func ==(lhs: Clarifai_Api_PipelineRun, rhs: Clarifai_Api_PipelineRun) -> 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._pipelineVersion != rhs_storage._pipelineVersion {return false} - if _storage._nodepools != rhs_storage._nodepools {return false} - if _storage._orchestrationStatus != rhs_storage._orchestrationStatus {return false} - return true - } - if !storagesAreEqual {return false} - } + public static func ==(lhs: Clarifai_Api_ComputeSourceMetadata, rhs: Clarifai_Api_ComputeSourceMetadata) -> Bool { + if lhs._userAppID != rhs._userAppID {return false} + if lhs.modelID != rhs.modelID {return false} + if lhs.modelVersionID != rhs.modelVersionID {return false} + if lhs.workflowID != rhs.workflowID {return false} + if lhs.computeClusterID != rhs.computeClusterID {return false} + if lhs.nodepoolID != rhs.nodepoolID {return false} + if lhs.runnerID != rhs.runnerID {return false} if lhs.unknownFields != rhs.unknownFields {return false} return true } diff --git a/VERSION b/VERSION index 275283a..0719738 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -11.0.0 +11.0.1