Skip to content
This repository has been archived by the owner on Jan 7, 2025. It is now read-only.

Commit

Permalink
Release 0.10.4
Browse files Browse the repository at this point in the history
  • Loading branch information
langma committed Aug 31, 2023
1 parent f40c0e5 commit 05ff522
Show file tree
Hide file tree
Showing 10 changed files with 585 additions and 240 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## [0.10.4](https://github.com/speechly/api/tree/0.10.4) (2023-08-31)

[Full Changelog](https://github.com/speechly/api/compare/0.10.3...0.10.4)

**Merged pull requests:**

- Add more counts in moderation statistics [\#92](https://github.com/speechly/api/pull/92) ([langma](https://github.com/langma))

## [0.10.3](https://github.com/speechly/api/tree/0.10.3) (2023-08-31)

[Full Changelog](https://github.com/speechly/api/compare/0.10.1...0.10.3)
Expand Down
37 changes: 23 additions & 14 deletions Sources/SpeechlyAPI/speechly_analytics_v1_analytics.pb.swift
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,9 @@ public struct Speechly_Analytics_V1_ModerationStatisticsPeriod {
/// total amount of flagged events.
public var flagged: Int32 = 0

/// total amount of not flagged (OK) events for this period.
public var notFlagged: Int32 = 0

/// amount of moderation decisions made.
public var decisions: Int32 = 0

Expand Down Expand Up @@ -508,10 +511,11 @@ extension Speechly_Analytics_V1_ModerationStatisticsPeriod: SwiftProtobuf.Messag
public static let protoMessageName: String = _protobuf_package + ".ModerationStatisticsPeriod"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "start_time"),
5: .standard(proto: "user_id"),
2: .same(proto: "count"),
3: .same(proto: "flagged"),
4: .same(proto: "decisions"),
2: .standard(proto: "user_id"),
3: .same(proto: "count"),
4: .same(proto: "flagged"),
5: .standard(proto: "not_flagged"),
6: .same(proto: "decisions"),
]

public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
Expand All @@ -521,10 +525,11 @@ extension Speechly_Analytics_V1_ModerationStatisticsPeriod: SwiftProtobuf.Messag
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularStringField(value: &self.startTime) }()
case 2: try { try decoder.decodeSingularInt32Field(value: &self.count) }()
case 3: try { try decoder.decodeSingularInt32Field(value: &self.flagged) }()
case 4: try { try decoder.decodeSingularInt32Field(value: &self.decisions) }()
case 5: try { try decoder.decodeSingularStringField(value: &self.userID) }()
case 2: try { try decoder.decodeSingularStringField(value: &self.userID) }()
case 3: try { try decoder.decodeSingularInt32Field(value: &self.count) }()
case 4: try { try decoder.decodeSingularInt32Field(value: &self.flagged) }()
case 5: try { try decoder.decodeSingularInt32Field(value: &self.notFlagged) }()
case 6: try { try decoder.decodeSingularInt32Field(value: &self.decisions) }()
default: break
}
}
Expand All @@ -534,17 +539,20 @@ extension Speechly_Analytics_V1_ModerationStatisticsPeriod: SwiftProtobuf.Messag
if !self.startTime.isEmpty {
try visitor.visitSingularStringField(value: self.startTime, fieldNumber: 1)
}
if !self.userID.isEmpty {
try visitor.visitSingularStringField(value: self.userID, fieldNumber: 2)
}
if self.count != 0 {
try visitor.visitSingularInt32Field(value: self.count, fieldNumber: 2)
try visitor.visitSingularInt32Field(value: self.count, fieldNumber: 3)
}
if self.flagged != 0 {
try visitor.visitSingularInt32Field(value: self.flagged, fieldNumber: 3)
try visitor.visitSingularInt32Field(value: self.flagged, fieldNumber: 4)
}
if self.decisions != 0 {
try visitor.visitSingularInt32Field(value: self.decisions, fieldNumber: 4)
if self.notFlagged != 0 {
try visitor.visitSingularInt32Field(value: self.notFlagged, fieldNumber: 5)
}
if !self.userID.isEmpty {
try visitor.visitSingularStringField(value: self.userID, fieldNumber: 5)
if self.decisions != 0 {
try visitor.visitSingularInt32Field(value: self.decisions, fieldNumber: 6)
}
try unknownFields.traverse(visitor: &visitor)
}
Expand All @@ -554,6 +562,7 @@ extension Speechly_Analytics_V1_ModerationStatisticsPeriod: SwiftProtobuf.Messag
if lhs.userID != rhs.userID {return false}
if lhs.count != rhs.count {return false}
if lhs.flagged != rhs.flagged {return false}
if lhs.notFlagged != rhs.notFlagged {return false}
if lhs.decisions != rhs.decisions {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
Expand Down
27 changes: 27 additions & 0 deletions Sources/SpeechlyAPI/speechly_analytics_v1_analytics_api.pb.swift
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,15 @@ public struct Speechly_Analytics_V1_ModerationStatisticsResponse {
/// Aggregated results.
public var items: [Speechly_Analytics_V1_ModerationStatisticsPeriod] = []

/// Total number of events in this response.
public var totalEvents: Int32 = 0

/// Total number of flagged events in this response.
public var totalFlagged: Int32 = 0

/// Total number of non-flagged (OK) events in this response.
public var totalNotFlagged: Int32 = 0

public var unknownFields = SwiftProtobuf.UnknownStorage()

public init() {}
Expand Down Expand Up @@ -992,6 +1001,9 @@ extension Speechly_Analytics_V1_ModerationStatisticsResponse: SwiftProtobuf.Mess
4: .standard(proto: "end_date"),
5: .same(proto: "aggregation"),
6: .same(proto: "items"),
7: .standard(proto: "total_events"),
8: .standard(proto: "total_flagged"),
9: .standard(proto: "total_not_flagged"),
]

public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
Expand All @@ -1006,6 +1018,9 @@ extension Speechly_Analytics_V1_ModerationStatisticsResponse: SwiftProtobuf.Mess
case 4: try { try decoder.decodeSingularStringField(value: &self.endDate) }()
case 5: try { try decoder.decodeSingularEnumField(value: &self.aggregation) }()
case 6: try { try decoder.decodeRepeatedMessageField(value: &self.items) }()
case 7: try { try decoder.decodeSingularInt32Field(value: &self.totalEvents) }()
case 8: try { try decoder.decodeSingularInt32Field(value: &self.totalFlagged) }()
case 9: try { try decoder.decodeSingularInt32Field(value: &self.totalNotFlagged) }()
default: break
}
}
Expand All @@ -1030,6 +1045,15 @@ extension Speechly_Analytics_V1_ModerationStatisticsResponse: SwiftProtobuf.Mess
if !self.items.isEmpty {
try visitor.visitRepeatedMessageField(value: self.items, fieldNumber: 6)
}
if self.totalEvents != 0 {
try visitor.visitSingularInt32Field(value: self.totalEvents, fieldNumber: 7)
}
if self.totalFlagged != 0 {
try visitor.visitSingularInt32Field(value: self.totalFlagged, fieldNumber: 8)
}
if self.totalNotFlagged != 0 {
try visitor.visitSingularInt32Field(value: self.totalNotFlagged, fieldNumber: 9)
}
try unknownFields.traverse(visitor: &visitor)
}

Expand All @@ -1040,6 +1064,9 @@ extension Speechly_Analytics_V1_ModerationStatisticsResponse: SwiftProtobuf.Mess
if lhs.endDate != rhs.endDate {return false}
if lhs.aggregation != rhs.aggregation {return false}
if lhs.items != rhs.items {return false}
if lhs.totalEvents != rhs.totalEvents {return false}
if lhs.totalFlagged != rhs.totalFlagged {return false}
if lhs.totalNotFlagged != rhs.totalNotFlagged {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
Expand Down
Loading

0 comments on commit 05ff522

Please sign in to comment.