From 05ff5223a1dfe7e3d5a301d501a928a31a8cb595 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20L=C3=A5ng?= Date: Thu, 31 Aug 2023 08:26:50 +0000 Subject: [PATCH] Release 0.10.4 --- CHANGELOG.md | 8 + .../speechly_analytics_v1_analytics.pb.swift | 37 ++-- ...eechly_analytics_v1_analytics_api.pb.swift | 27 +++ .../speechly/analytics/v1/analytics.pb.cc | 150 +++++++++------- .../speechly/analytics/v1/analytics.pb.h | 60 +++++-- .../speechly/analytics/v1/analytics_api.pb.cc | 166 ++++++++++++++---- .../speechly/analytics/v1/analytics_api.pb.h | 104 ++++++++++- go/speechly/analytics/v1/analytics.pb.go | 125 +++++++------ go/speechly/analytics/v1/analytics_api.pb.go | 148 ++++++++++------ speechly_api.pb | Bin 238832 -> 239430 bytes 10 files changed, 585 insertions(+), 240 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 07bfb71..effcc20 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/Sources/SpeechlyAPI/speechly_analytics_v1_analytics.pb.swift b/Sources/SpeechlyAPI/speechly_analytics_v1_analytics.pb.swift index b5e9cfa..73f9d4d 100644 --- a/Sources/SpeechlyAPI/speechly_analytics_v1_analytics.pb.swift +++ b/Sources/SpeechlyAPI/speechly_analytics_v1_analytics.pb.swift @@ -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 @@ -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(decoder: inout D) throws { @@ -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 } } @@ -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) } @@ -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 diff --git a/Sources/SpeechlyAPI/speechly_analytics_v1_analytics_api.pb.swift b/Sources/SpeechlyAPI/speechly_analytics_v1_analytics_api.pb.swift index 72aae05..c3bc847 100644 --- a/Sources/SpeechlyAPI/speechly_analytics_v1_analytics_api.pb.swift +++ b/Sources/SpeechlyAPI/speechly_analytics_v1_analytics_api.pb.swift @@ -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() {} @@ -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(decoder: inout D) throws { @@ -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 } } @@ -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) } @@ -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 } diff --git a/cpp/Speechly/speechly/analytics/v1/analytics.pb.cc b/cpp/Speechly/speechly/analytics/v1/analytics.pb.cc index 32ac9d2..bbe97ff 100644 --- a/cpp/Speechly/speechly/analytics/v1/analytics.pb.cc +++ b/cpp/Speechly/speechly/analytics/v1/analytics.pb.cc @@ -139,6 +139,7 @@ PROTOBUF_CONSTEXPR ModerationStatisticsPeriod::ModerationStatisticsPeriod(::_pbi }, /*decltype(_impl_.count_)*/ 0, /*decltype(_impl_.flagged_)*/ 0, + /*decltype(_impl_.not_flagged_)*/ 0, /*decltype(_impl_.decisions_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}, } {} @@ -242,6 +243,7 @@ const ::uint32_t TableStruct_speechly_2fanalytics_2fv1_2fanalytics_2eproto::offs PROTOBUF_FIELD_OFFSET(::speechly::analytics::v1::ModerationStatisticsPeriod, _impl_.user_id_), PROTOBUF_FIELD_OFFSET(::speechly::analytics::v1::ModerationStatisticsPeriod, _impl_.count_), PROTOBUF_FIELD_OFFSET(::speechly::analytics::v1::ModerationStatisticsPeriod, _impl_.flagged_), + PROTOBUF_FIELD_OFFSET(::speechly::analytics::v1::ModerationStatisticsPeriod, _impl_.not_flagged_), PROTOBUF_FIELD_OFFSET(::speechly::analytics::v1::ModerationStatisticsPeriod, _impl_.decisions_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::speechly::analytics::v1::UserStatisticsPeriod, _internal_metadata_), @@ -264,7 +266,7 @@ static const ::_pbi::MigrationSchema {26, -1, -1, sizeof(::speechly::analytics::v1::DecoderInfo)}, {37, -1, -1, sizeof(::speechly::analytics::v1::ProcessingInfo)}, {47, -1, -1, sizeof(::speechly::analytics::v1::ModerationStatisticsPeriod)}, - {60, -1, -1, sizeof(::speechly::analytics::v1::UserStatisticsPeriod)}, + {61, -1, -1, sizeof(::speechly::analytics::v1::UserStatisticsPeriod)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -288,33 +290,34 @@ const char descriptor_table_protodef_speechly_2fanalytics_2fv1_2fanalytics_2epro "!\n\031total_seconds_transcribed\030\003 \001(\005\"c\n\016Pr" "ocessingInfo\022\?\n\020processing_types\030\001 \003(\0162%" ".speechly.analytics.v1.ProcessingType\022\020\n" - "\010model_id\030\002 \001(\t\"t\n\032ModerationStatisticsP" - "eriod\022\022\n\nstart_time\030\001 \001(\t\022\017\n\007user_id\030\005 \001" - "(\t\022\r\n\005count\030\002 \001(\005\022\017\n\007flagged\030\003 \001(\005\022\021\n\tde" - "cisions\030\004 \001(\005\"l\n\024UserStatisticsPeriod\022\022\n" - "\nstart_time\030\001 \001(\t\022\024\n\014active_users\030\002 \001(\005\022" - "\023\n\013toxic_users\030\003 \001(\005\022\025\n\rexposed_users\030\004 " - "\001(\005*n\n\013Aggregation\022\027\n\023AGGREGATION_INVALI" - "D\020\000\022\027\n\023AGGREGATION_MONTHLY\020\001\022\025\n\021AGGREGAT" - "ION_DAILY\020\002\022\026\n\022AGGREGATION_HOURLY\020\003*\307\002\n\016" - "ProcessingType\022\033\n\027PROCESSING_TYPE_INVALI" - "D\020\000\022!\n\035PROCESSING_TYPE_TRANSCRIPTION\020\001\022\027" - "\n\023PROCESSING_TYPE_NLU\020\002\022&\n\"PROCESSING_TY" - "PE_LANGUAGE_DETECTION\020\003\022\027\n\023PROCESSING_TY" - "PE_VAD\020\004\022\037\n\033PROCESSING_TYPE_TRANSLATION\020" - "\005\022)\n%PROCESSING_TYPE_AUDIO_EVENT_DETECTI" - "ON\020\006\022+\n\'PROCESSING_TYPE_TONE_OF_VOICE_LA" - "BELLING\020\007\022\"\n\036PROCESSING_TYPE_SHALLOW_FUS" - "ION\020\010B\206\001\n\031com.speechly.analytics.v1B\016Ana" - "lyticsProtoP\001Z!speechly/analytics/v1;ana" - "lyticsv1\242\002\003SAX\252\002\025Speechly.Analytics.V1\312\002" - "\025Speechly\\Analytics\\V1b\006proto3" + "\010model_id\030\002 \001(\t\"\211\001\n\032ModerationStatistics" + "Period\022\022\n\nstart_time\030\001 \001(\t\022\017\n\007user_id\030\002 " + "\001(\t\022\r\n\005count\030\003 \001(\005\022\017\n\007flagged\030\004 \001(\005\022\023\n\013n" + "ot_flagged\030\005 \001(\005\022\021\n\tdecisions\030\006 \001(\005\"l\n\024U" + "serStatisticsPeriod\022\022\n\nstart_time\030\001 \001(\t\022" + "\024\n\014active_users\030\002 \001(\005\022\023\n\013toxic_users\030\003 \001" + "(\005\022\025\n\rexposed_users\030\004 \001(\005*n\n\013Aggregation" + "\022\027\n\023AGGREGATION_INVALID\020\000\022\027\n\023AGGREGATION" + "_MONTHLY\020\001\022\025\n\021AGGREGATION_DAILY\020\002\022\026\n\022AGG" + "REGATION_HOURLY\020\003*\307\002\n\016ProcessingType\022\033\n\027" + "PROCESSING_TYPE_INVALID\020\000\022!\n\035PROCESSING_" + "TYPE_TRANSCRIPTION\020\001\022\027\n\023PROCESSING_TYPE_" + "NLU\020\002\022&\n\"PROCESSING_TYPE_LANGUAGE_DETECT" + "ION\020\003\022\027\n\023PROCESSING_TYPE_VAD\020\004\022\037\n\033PROCES" + "SING_TYPE_TRANSLATION\020\005\022)\n%PROCESSING_TY" + "PE_AUDIO_EVENT_DETECTION\020\006\022+\n\'PROCESSING" + "_TYPE_TONE_OF_VOICE_LABELLING\020\007\022\"\n\036PROCE" + "SSING_TYPE_SHALLOW_FUSION\020\010B\206\001\n\031com.spee" + "chly.analytics.v1B\016AnalyticsProtoP\001Z!spe" + "echly/analytics/v1;analyticsv1\242\002\003SAX\252\002\025S" + "peechly.Analytics.V1\312\002\025Speechly\\Analytic" + "s\\V1b\006proto3" }; static ::absl::once_flag descriptor_table_speechly_2fanalytics_2fv1_2fanalytics_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_speechly_2fanalytics_2fv1_2fanalytics_2eproto = { false, false, - 1310, + 1332, descriptor_table_protodef_speechly_2fanalytics_2fv1_2fanalytics_2eproto, "speechly/analytics/v1/analytics.proto", &descriptor_table_speechly_2fanalytics_2fv1_2fanalytics_2eproto_once, @@ -1559,6 +1562,7 @@ ModerationStatisticsPeriod::ModerationStatisticsPeriod(const ModerationStatistic decltype(_impl_.user_id_){}, decltype(_impl_.count_){}, decltype(_impl_.flagged_){}, + decltype(_impl_.not_flagged_){}, decltype(_impl_.decisions_){}, /*decltype(_impl_._cached_size_)*/ {}, }; @@ -1591,6 +1595,7 @@ inline void ModerationStatisticsPeriod::SharedCtor(::_pb::Arena* arena) { decltype(_impl_.user_id_){}, decltype(_impl_.count_){0}, decltype(_impl_.flagged_){0}, + decltype(_impl_.not_flagged_){0}, decltype(_impl_.decisions_){0}, /*decltype(_impl_._cached_size_)*/ {}, }; @@ -1639,15 +1644,15 @@ const char* ModerationStatisticsPeriod::_InternalParse( PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 0, 74, 2> ModerationStatisticsPeriod::_table_ = { +const ::_pbi::TcParseTable<3, 6, 0, 74, 2> ModerationStatisticsPeriod::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ - 5, 56, // max_field_number, fast_idx_mask + 6, 56, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), - 4294967264, // skipmap + 4294967232, // skipmap offsetof(decltype(_table_), field_entries), - 5, // num_field_entries + 6, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries &_ModerationStatisticsPeriod_default_instance_._instance, @@ -1657,19 +1662,21 @@ const ::_pbi::TcParseTable<3, 5, 0, 74, 2> ModerationStatisticsPeriod::_table_ = // string start_time = 1; {::_pbi::TcParser::FastUS1, {10, 63, 0, PROTOBUF_FIELD_OFFSET(ModerationStatisticsPeriod, _impl_.start_time_)}}, - // int32 count = 2; + // string user_id = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(ModerationStatisticsPeriod, _impl_.user_id_)}}, + // int32 count = 3; {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ModerationStatisticsPeriod, _impl_.count_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(ModerationStatisticsPeriod, _impl_.count_)}}, - // int32 flagged = 3; + {24, 63, 0, PROTOBUF_FIELD_OFFSET(ModerationStatisticsPeriod, _impl_.count_)}}, + // int32 flagged = 4; {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ModerationStatisticsPeriod, _impl_.flagged_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(ModerationStatisticsPeriod, _impl_.flagged_)}}, - // int32 decisions = 4; + {32, 63, 0, PROTOBUF_FIELD_OFFSET(ModerationStatisticsPeriod, _impl_.flagged_)}}, + // int32 not_flagged = 5; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ModerationStatisticsPeriod, _impl_.not_flagged_), 63>(), + {40, 63, 0, PROTOBUF_FIELD_OFFSET(ModerationStatisticsPeriod, _impl_.not_flagged_)}}, + // int32 decisions = 6; {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ModerationStatisticsPeriod, _impl_.decisions_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(ModerationStatisticsPeriod, _impl_.decisions_)}}, - // string user_id = 5; - {::_pbi::TcParser::FastUS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(ModerationStatisticsPeriod, _impl_.user_id_)}}, - {::_pbi::TcParser::MiniParse, {}}, + {48, 63, 0, PROTOBUF_FIELD_OFFSET(ModerationStatisticsPeriod, _impl_.decisions_)}}, {::_pbi::TcParser::MiniParse, {}}, }}, {{ 65535, 65535 @@ -1677,22 +1684,25 @@ const ::_pbi::TcParseTable<3, 5, 0, 74, 2> ModerationStatisticsPeriod::_table_ = // string start_time = 1; {PROTOBUF_FIELD_OFFSET(ModerationStatisticsPeriod, _impl_.start_time_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int32 count = 2; + // string user_id = 2; + {PROTOBUF_FIELD_OFFSET(ModerationStatisticsPeriod, _impl_.user_id_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // int32 count = 3; {PROTOBUF_FIELD_OFFSET(ModerationStatisticsPeriod, _impl_.count_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 flagged = 3; + // int32 flagged = 4; {PROTOBUF_FIELD_OFFSET(ModerationStatisticsPeriod, _impl_.flagged_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 decisions = 4; + // int32 not_flagged = 5; + {PROTOBUF_FIELD_OFFSET(ModerationStatisticsPeriod, _impl_.not_flagged_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + // int32 decisions = 6; {PROTOBUF_FIELD_OFFSET(ModerationStatisticsPeriod, _impl_.decisions_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // string user_id = 5; - {PROTOBUF_FIELD_OFFSET(ModerationStatisticsPeriod, _impl_.user_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, }}, // no aux_entries {{ - "\60\12\0\0\0\7\0\0" + "\60\12\7\0\0\0\0\0" "speechly.analytics.v1.ModerationStatisticsPeriod" "start_time" "user_id" @@ -1714,33 +1724,40 @@ ::uint8_t* ModerationStatisticsPeriod::_InternalSerialize( target = stream->WriteStringMaybeAliased(1, _s, target); } - // int32 count = 2; + // string user_id = 2; + if (!this->_internal_user_id().empty()) { + const std::string& _s = this->_internal_user_id(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "speechly.analytics.v1.ModerationStatisticsPeriod.user_id"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } + + // int32 count = 3; if (this->_internal_count() != 0) { target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( + WriteInt32ToArrayWithField<3>( stream, this->_internal_count(), target); } - // int32 flagged = 3; + // int32 flagged = 4; if (this->_internal_flagged() != 0) { target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<3>( + WriteInt32ToArrayWithField<4>( stream, this->_internal_flagged(), target); } - // int32 decisions = 4; - if (this->_internal_decisions() != 0) { + // int32 not_flagged = 5; + if (this->_internal_not_flagged() != 0) { target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<4>( - stream, this->_internal_decisions(), target); + WriteInt32ToArrayWithField<5>( + stream, this->_internal_not_flagged(), target); } - // string user_id = 5; - if (!this->_internal_user_id().empty()) { - const std::string& _s = this->_internal_user_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "speechly.analytics.v1.ModerationStatisticsPeriod.user_id"); - target = stream->WriteStringMaybeAliased(5, _s, target); + // int32 decisions = 6; + if (this->_internal_decisions() != 0) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt32ToArrayWithField<6>( + stream, this->_internal_decisions(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -1766,25 +1783,31 @@ ::size_t ModerationStatisticsPeriod::ByteSizeLong() const { this->_internal_start_time()); } - // string user_id = 5; + // string user_id = 2; if (!this->_internal_user_id().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_user_id()); } - // int32 count = 2; + // int32 count = 3; if (this->_internal_count() != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( this->_internal_count()); } - // int32 flagged = 3; + // int32 flagged = 4; if (this->_internal_flagged() != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( this->_internal_flagged()); } - // int32 decisions = 4; + // int32 not_flagged = 5; + if (this->_internal_not_flagged() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this->_internal_not_flagged()); + } + + // int32 decisions = 6; if (this->_internal_decisions() != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( this->_internal_decisions()); @@ -1820,6 +1843,9 @@ void ModerationStatisticsPeriod::MergeImpl(::google::protobuf::Message& to_msg, if (from._internal_flagged() != 0) { _this->_internal_set_flagged(from._internal_flagged()); } + if (from._internal_not_flagged() != 0) { + _this->_internal_set_not_flagged(from._internal_not_flagged()); + } if (from._internal_decisions() != 0) { _this->_internal_set_decisions(from._internal_decisions()); } diff --git a/cpp/Speechly/speechly/analytics/v1/analytics.pb.h b/cpp/Speechly/speechly/analytics/v1/analytics.pb.h index 564d2c8..05e8579 100644 --- a/cpp/Speechly/speechly/analytics/v1/analytics.pb.h +++ b/cpp/Speechly/speechly/analytics/v1/analytics.pb.h @@ -1122,10 +1122,11 @@ class ModerationStatisticsPeriod final : enum : int { kStartTimeFieldNumber = 1, - kUserIdFieldNumber = 5, - kCountFieldNumber = 2, - kFlaggedFieldNumber = 3, - kDecisionsFieldNumber = 4, + kUserIdFieldNumber = 2, + kCountFieldNumber = 3, + kFlaggedFieldNumber = 4, + kNotFlaggedFieldNumber = 5, + kDecisionsFieldNumber = 6, }; // string start_time = 1; void clear_start_time() ; @@ -1143,7 +1144,7 @@ class ModerationStatisticsPeriod final : std::string* _internal_mutable_start_time(); public: - // string user_id = 5; + // string user_id = 2; void clear_user_id() ; const std::string& user_id() const; template @@ -1159,7 +1160,7 @@ class ModerationStatisticsPeriod final : std::string* _internal_mutable_user_id(); public: - // int32 count = 2; + // int32 count = 3; void clear_count() ; ::int32_t count() const; void set_count(::int32_t value); @@ -1169,7 +1170,7 @@ class ModerationStatisticsPeriod final : void _internal_set_count(::int32_t value); public: - // int32 flagged = 3; + // int32 flagged = 4; void clear_flagged() ; ::int32_t flagged() const; void set_flagged(::int32_t value); @@ -1179,7 +1180,17 @@ class ModerationStatisticsPeriod final : void _internal_set_flagged(::int32_t value); public: - // int32 decisions = 4; + // int32 not_flagged = 5; + void clear_not_flagged() ; + ::int32_t not_flagged() const; + void set_not_flagged(::int32_t value); + + private: + ::int32_t _internal_not_flagged() const; + void _internal_set_not_flagged(::int32_t value); + + public: + // int32 decisions = 6; void clear_decisions() ; ::int32_t decisions() const; void set_decisions(::int32_t value); @@ -1194,7 +1205,7 @@ class ModerationStatisticsPeriod final : class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<3, 5, 0, 74, 2> _table_; + static const ::google::protobuf::internal::TcParseTable<3, 6, 0, 74, 2> _table_; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; @@ -1203,6 +1214,7 @@ class ModerationStatisticsPeriod final : ::google::protobuf::internal::ArenaStringPtr user_id_; ::int32_t count_; ::int32_t flagged_; + ::int32_t not_flagged_; ::int32_t decisions_; mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER; @@ -2104,7 +2116,7 @@ inline void ModerationStatisticsPeriod::set_allocated_start_time(std::string* va // @@protoc_insertion_point(field_set_allocated:speechly.analytics.v1.ModerationStatisticsPeriod.start_time) } -// string user_id = 5; +// string user_id = 2; inline void ModerationStatisticsPeriod::clear_user_id() { _impl_.user_id_.ClearToEmpty(); } @@ -2155,7 +2167,7 @@ inline void ModerationStatisticsPeriod::set_allocated_user_id(std::string* value // @@protoc_insertion_point(field_set_allocated:speechly.analytics.v1.ModerationStatisticsPeriod.user_id) } -// int32 count = 2; +// int32 count = 3; inline void ModerationStatisticsPeriod::clear_count() { _impl_.count_ = 0; } @@ -2177,7 +2189,7 @@ inline void ModerationStatisticsPeriod::_internal_set_count(::int32_t value) { _impl_.count_ = value; } -// int32 flagged = 3; +// int32 flagged = 4; inline void ModerationStatisticsPeriod::clear_flagged() { _impl_.flagged_ = 0; } @@ -2199,7 +2211,29 @@ inline void ModerationStatisticsPeriod::_internal_set_flagged(::int32_t value) { _impl_.flagged_ = value; } -// int32 decisions = 4; +// int32 not_flagged = 5; +inline void ModerationStatisticsPeriod::clear_not_flagged() { + _impl_.not_flagged_ = 0; +} +inline ::int32_t ModerationStatisticsPeriod::not_flagged() const { + // @@protoc_insertion_point(field_get:speechly.analytics.v1.ModerationStatisticsPeriod.not_flagged) + return _internal_not_flagged(); +} +inline void ModerationStatisticsPeriod::set_not_flagged(::int32_t value) { + _internal_set_not_flagged(value); + // @@protoc_insertion_point(field_set:speechly.analytics.v1.ModerationStatisticsPeriod.not_flagged) +} +inline ::int32_t ModerationStatisticsPeriod::_internal_not_flagged() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.not_flagged_; +} +inline void ModerationStatisticsPeriod::_internal_set_not_flagged(::int32_t value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.not_flagged_ = value; +} + +// int32 decisions = 6; inline void ModerationStatisticsPeriod::clear_decisions() { _impl_.decisions_ = 0; } diff --git a/cpp/Speechly/speechly/analytics/v1/analytics_api.pb.cc b/cpp/Speechly/speechly/analytics/v1/analytics_api.pb.cc index 7f2c8b8..002b807 100644 --- a/cpp/Speechly/speechly/analytics/v1/analytics_api.pb.cc +++ b/cpp/Speechly/speechly/analytics/v1/analytics_api.pb.cc @@ -260,6 +260,9 @@ PROTOBUF_CONSTEXPR ModerationStatisticsResponse::ModerationStatisticsResponse(:: ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_.aggregation_)*/ 0, + /*decltype(_impl_.total_events_)*/ 0, + /*decltype(_impl_.total_flagged_)*/ 0, + /*decltype(_impl_.total_not_flagged_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}, } {} struct ModerationStatisticsResponseDefaultTypeInternal { @@ -439,6 +442,9 @@ const ::uint32_t TableStruct_speechly_2fanalytics_2fv1_2fanalytics_5fapi_2eproto PROTOBUF_FIELD_OFFSET(::speechly::analytics::v1::ModerationStatisticsResponse, _impl_.end_date_), PROTOBUF_FIELD_OFFSET(::speechly::analytics::v1::ModerationStatisticsResponse, _impl_.aggregation_), PROTOBUF_FIELD_OFFSET(::speechly::analytics::v1::ModerationStatisticsResponse, _impl_.items_), + PROTOBUF_FIELD_OFFSET(::speechly::analytics::v1::ModerationStatisticsResponse, _impl_.total_events_), + PROTOBUF_FIELD_OFFSET(::speechly::analytics::v1::ModerationStatisticsResponse, _impl_.total_flagged_), + PROTOBUF_FIELD_OFFSET(::speechly::analytics::v1::ModerationStatisticsResponse, _impl_.total_not_flagged_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::speechly::analytics::v1::UserStatisticsRequest, _internal_metadata_), ~0u, // no _extensions_ @@ -469,8 +475,8 @@ static const ::_pbi::MigrationSchema {99, -1, -1, sizeof(::speechly::analytics::v1::RegisterUtterancesResponse)}, {107, -1, -1, sizeof(::speechly::analytics::v1::ModerationStatisticsRequest)}, {120, -1, -1, sizeof(::speechly::analytics::v1::ModerationStatisticsResponse)}, - {134, -1, -1, sizeof(::speechly::analytics::v1::UserStatisticsRequest)}, - {142, -1, -1, sizeof(::speechly::analytics::v1::UserStatisticsResponse)}, + {137, -1, -1, sizeof(::speechly::analytics::v1::UserStatisticsRequest)}, + {145, -1, -1, sizeof(::speechly::analytics::v1::UserStatisticsResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -532,35 +538,37 @@ const char descriptor_table_protodef_speechly_2fanalytics_2fv1_2fanalytics_5fapi "id\030\001 \001(\t\022\016\n\006app_id\030\002 \001(\t\022\022\n\nstart_date\030\003" " \001(\t\022\020\n\010end_date\030\004 \001(\t\0227\n\013aggregation\030\005 " "\001(\0162\".speechly.analytics.v1.Aggregation\"" - "\343\001\n\034ModerationStatisticsResponse\022\022\n\nproj" + "\253\002\n\034ModerationStatisticsResponse\022\022\n\nproj" "ect_id\030\001 \001(\t\022\016\n\006app_id\030\002 \001(\t\022\022\n\nstart_da" "te\030\003 \001(\t\022\020\n\010end_date\030\004 \001(\t\0227\n\013aggregatio" "n\030\005 \001(\0162\".speechly.analytics.v1.Aggregat" "ion\022@\n\005items\030\006 \003(\01321.speechly.analytics." - "v1.ModerationStatisticsPeriod\"\027\n\025UserSta" - "tisticsRequest\"\030\n\026UserStatisticsResponse" - "2\322\005\n\014AnalyticsAPI\022|\n\023UtteranceStatistics" - "\0221.speechly.analytics.v1.UtteranceStatis" - "ticsRequest\0322.speechly.analytics.v1.Utte" - "ranceStatisticsResponse\022a\n\nUtterances\022(." - "speechly.analytics.v1.UtterancesRequest\032" - ").speechly.analytics.v1.UtterancesRespon" - "se\022v\n\021RegisterUtterance\022/.speechly.analy" - "tics.v1.RegisterUtteranceRequest\0320.speec" - "hly.analytics.v1.RegisterUtteranceRespon" - "se\022y\n\022RegisterUtterances\0220.speechly.anal" - "ytics.v1.RegisterUtterancesRequest\0321.spe" - "echly.analytics.v1.RegisterUtterancesRes" - "ponse\022\177\n\024ModerationStatistics\0222.speechly" - ".analytics.v1.ModerationStatisticsReques" - "t\0323.speechly.analytics.v1.ModerationStat" - "isticsResponse\022m\n\016UserStatistics\022,.speec" - "hly.analytics.v1.UserStatisticsRequest\032-" - ".speechly.analytics.v1.UserStatisticsRes" - "ponseB\211\001\n\031com.speechly.analytics.v1B\021Ana" - "lyticsApiProtoP\001Z!speechly/analytics/v1;" - "analyticsv1\242\002\003SAX\252\002\025Speechly.Analytics.V" - "1\312\002\025Speechly\\Analytics\\V1b\006proto3" + "v1.ModerationStatisticsPeriod\022\024\n\014total_e" + "vents\030\007 \001(\005\022\025\n\rtotal_flagged\030\010 \001(\005\022\031\n\021to" + "tal_not_flagged\030\t \001(\005\"\027\n\025UserStatisticsR" + "equest\"\030\n\026UserStatisticsResponse2\322\005\n\014Ana" + "lyticsAPI\022|\n\023UtteranceStatistics\0221.speec" + "hly.analytics.v1.UtteranceStatisticsRequ" + "est\0322.speechly.analytics.v1.UtteranceSta" + "tisticsResponse\022a\n\nUtterances\022(.speechly" + ".analytics.v1.UtterancesRequest\032).speech" + "ly.analytics.v1.UtterancesResponse\022v\n\021Re" + "gisterUtterance\022/.speechly.analytics.v1." + "RegisterUtteranceRequest\0320.speechly.anal" + "ytics.v1.RegisterUtteranceResponse\022y\n\022Re" + "gisterUtterances\0220.speechly.analytics.v1" + ".RegisterUtterancesRequest\0321.speechly.an" + "alytics.v1.RegisterUtterancesResponse\022\177\n" + "\024ModerationStatistics\0222.speechly.analyti" + "cs.v1.ModerationStatisticsRequest\0323.spee" + "chly.analytics.v1.ModerationStatisticsRe" + "sponse\022m\n\016UserStatistics\022,.speechly.anal" + "ytics.v1.UserStatisticsRequest\032-.speechl" + "y.analytics.v1.UserStatisticsResponseB\211\001" + "\n\031com.speechly.analytics.v1B\021AnalyticsAp" + "iProtoP\001Z!speechly/analytics/v1;analytic" + "sv1\242\002\003SAX\252\002\025Speechly.Analytics.V1\312\002\025Spee" + "chly\\Analytics\\V1b\006proto3" }; static const ::_pbi::DescriptorTable* const descriptor_table_speechly_2fanalytics_2fv1_2fanalytics_5fapi_2eproto_deps[2] = { @@ -571,7 +579,7 @@ static ::absl::once_flag descriptor_table_speechly_2fanalytics_2fv1_2fanalytics_ const ::_pbi::DescriptorTable descriptor_table_speechly_2fanalytics_2fv1_2fanalytics_5fapi_2eproto = { false, false, - 2913, + 2985, descriptor_table_protodef_speechly_2fanalytics_2fv1_2fanalytics_5fapi_2eproto, "speechly/analytics/v1/analytics_api.proto", &descriptor_table_speechly_2fanalytics_2fv1_2fanalytics_5fapi_2eproto_once, @@ -3096,6 +3104,9 @@ ModerationStatisticsResponse::ModerationStatisticsResponse(const ModerationStati decltype(_impl_.start_date_){}, decltype(_impl_.end_date_){}, decltype(_impl_.aggregation_){}, + decltype(_impl_.total_events_){}, + decltype(_impl_.total_flagged_){}, + decltype(_impl_.total_not_flagged_){}, /*decltype(_impl_._cached_size_)*/ {}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -3128,7 +3139,9 @@ ModerationStatisticsResponse::ModerationStatisticsResponse(const ModerationStati if (!from._internal_end_date().empty()) { _this->_impl_.end_date_.Set(from._internal_end_date(), _this->GetArenaForAllocation()); } - _this->_impl_.aggregation_ = from._impl_.aggregation_; + ::memcpy(&_impl_.aggregation_, &from._impl_.aggregation_, + static_cast<::size_t>(reinterpret_cast(&_impl_.total_not_flagged_) - + reinterpret_cast(&_impl_.aggregation_)) + sizeof(_impl_.total_not_flagged_)); // @@protoc_insertion_point(copy_constructor:speechly.analytics.v1.ModerationStatisticsResponse) } @@ -3141,6 +3154,9 @@ inline void ModerationStatisticsResponse::SharedCtor(::_pb::Arena* arena) { decltype(_impl_.start_date_){}, decltype(_impl_.end_date_){}, decltype(_impl_.aggregation_){0}, + decltype(_impl_.total_events_){0}, + decltype(_impl_.total_flagged_){0}, + decltype(_impl_.total_not_flagged_){0}, /*decltype(_impl_._cached_size_)*/ {}, }; _impl_.project_id_.InitDefault(); @@ -3188,7 +3204,9 @@ PROTOBUF_NOINLINE void ModerationStatisticsResponse::Clear() { _impl_.app_id_.ClearToEmpty(); _impl_.start_date_.ClearToEmpty(); _impl_.end_date_.ClearToEmpty(); - _impl_.aggregation_ = 0; + ::memset(&_impl_.aggregation_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.total_not_flagged_) - + reinterpret_cast(&_impl_.aggregation_)) + sizeof(_impl_.total_not_flagged_)); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } @@ -3200,15 +3218,15 @@ const char* ModerationStatisticsResponse::_InternalParse( PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 6, 1, 93, 2> ModerationStatisticsResponse::_table_ = { +const ::_pbi::TcParseTable<4, 9, 1, 101, 2> ModerationStatisticsResponse::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ - 6, 56, // max_field_number, fast_idx_mask + 9, 120, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), - 4294967232, // skipmap + 4294966784, // skipmap offsetof(decltype(_table_), field_entries), - 6, // num_field_entries + 9, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), &_ModerationStatisticsResponse_default_instance_._instance, @@ -3233,6 +3251,20 @@ const ::_pbi::TcParseTable<3, 6, 1, 93, 2> ModerationStatisticsResponse::_table_ // repeated .speechly.analytics.v1.ModerationStatisticsPeriod items = 6; {::_pbi::TcParser::FastMtR1, {50, 63, 0, PROTOBUF_FIELD_OFFSET(ModerationStatisticsResponse, _impl_.items_)}}, + // int32 total_events = 7; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ModerationStatisticsResponse, _impl_.total_events_), 63>(), + {56, 63, 0, PROTOBUF_FIELD_OFFSET(ModerationStatisticsResponse, _impl_.total_events_)}}, + // int32 total_flagged = 8; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ModerationStatisticsResponse, _impl_.total_flagged_), 63>(), + {64, 63, 0, PROTOBUF_FIELD_OFFSET(ModerationStatisticsResponse, _impl_.total_flagged_)}}, + // int32 total_not_flagged = 9; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ModerationStatisticsResponse, _impl_.total_not_flagged_), 63>(), + {72, 63, 0, PROTOBUF_FIELD_OFFSET(ModerationStatisticsResponse, _impl_.total_not_flagged_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, }}, {{ 65535, 65535 @@ -3255,10 +3287,19 @@ const ::_pbi::TcParseTable<3, 6, 1, 93, 2> ModerationStatisticsResponse::_table_ // repeated .speechly.analytics.v1.ModerationStatisticsPeriod items = 6; {PROTOBUF_FIELD_OFFSET(ModerationStatisticsResponse, _impl_.items_), 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // int32 total_events = 7; + {PROTOBUF_FIELD_OFFSET(ModerationStatisticsResponse, _impl_.total_events_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + // int32 total_flagged = 8; + {PROTOBUF_FIELD_OFFSET(ModerationStatisticsResponse, _impl_.total_flagged_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + // int32 total_not_flagged = 9; + {PROTOBUF_FIELD_OFFSET(ModerationStatisticsResponse, _impl_.total_not_flagged_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, }}, {{ {::_pbi::TcParser::GetTable<::speechly::analytics::v1::ModerationStatisticsPeriod>()}, }}, {{ - "\62\12\6\12\10\0\0\0" + "\62\12\6\12\10\0\0\0\0\0\0\0\0\0\0\0" "speechly.analytics.v1.ModerationStatisticsResponse" "project_id" "app_id" @@ -3321,6 +3362,27 @@ ::uint8_t* ModerationStatisticsResponse::_InternalSerialize( InternalWriteMessage(6, repfield, repfield.GetCachedSize(), target, stream); } + // int32 total_events = 7; + if (this->_internal_total_events() != 0) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt32ToArrayWithField<7>( + stream, this->_internal_total_events(), target); + } + + // int32 total_flagged = 8; + if (this->_internal_total_flagged() != 0) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt32ToArrayWithField<8>( + stream, this->_internal_total_flagged(), target); + } + + // int32 total_not_flagged = 9; + if (this->_internal_total_not_flagged() != 0) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt32ToArrayWithField<9>( + stream, this->_internal_total_not_flagged(), target); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( @@ -3374,6 +3436,24 @@ ::size_t ModerationStatisticsResponse::ByteSizeLong() const { ::_pbi::WireFormatLite::EnumSize(this->_internal_aggregation()); } + // int32 total_events = 7; + if (this->_internal_total_events() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this->_internal_total_events()); + } + + // int32 total_flagged = 8; + if (this->_internal_total_flagged() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this->_internal_total_flagged()); + } + + // int32 total_not_flagged = 9; + if (this->_internal_total_not_flagged() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this->_internal_total_not_flagged()); + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } @@ -3408,6 +3488,15 @@ void ModerationStatisticsResponse::MergeImpl(::google::protobuf::Message& to_msg if (from._internal_aggregation() != 0) { _this->_internal_set_aggregation(from._internal_aggregation()); } + if (from._internal_total_events() != 0) { + _this->_internal_set_total_events(from._internal_total_events()); + } + if (from._internal_total_flagged() != 0) { + _this->_internal_set_total_flagged(from._internal_total_flagged()); + } + if (from._internal_total_not_flagged() != 0) { + _this->_internal_set_total_not_flagged(from._internal_total_not_flagged()); + } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -3436,7 +3525,12 @@ void ModerationStatisticsResponse::InternalSwap(ModerationStatisticsResponse* ot &other->_impl_.start_date_, rhs_arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.end_date_, lhs_arena, &other->_impl_.end_date_, rhs_arena); - swap(_impl_.aggregation_, other->_impl_.aggregation_); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(ModerationStatisticsResponse, _impl_.total_not_flagged_) + + sizeof(ModerationStatisticsResponse::_impl_.total_not_flagged_) + - PROTOBUF_FIELD_OFFSET(ModerationStatisticsResponse, _impl_.aggregation_)>( + reinterpret_cast(&_impl_.aggregation_), + reinterpret_cast(&other->_impl_.aggregation_)); } ::google::protobuf::Metadata ModerationStatisticsResponse::GetMetadata() const { diff --git a/cpp/Speechly/speechly/analytics/v1/analytics_api.pb.h b/cpp/Speechly/speechly/analytics/v1/analytics_api.pb.h index 98304d0..be5c08d 100644 --- a/cpp/Speechly/speechly/analytics/v1/analytics_api.pb.h +++ b/cpp/Speechly/speechly/analytics/v1/analytics_api.pb.h @@ -2196,6 +2196,9 @@ class ModerationStatisticsResponse final : kStartDateFieldNumber = 3, kEndDateFieldNumber = 4, kAggregationFieldNumber = 5, + kTotalEventsFieldNumber = 7, + kTotalFlaggedFieldNumber = 8, + kTotalNotFlaggedFieldNumber = 9, }; // repeated .speechly.analytics.v1.ModerationStatisticsPeriod items = 6; int items_size() const; @@ -2288,13 +2291,43 @@ class ModerationStatisticsResponse final : ::speechly::analytics::v1::Aggregation _internal_aggregation() const; void _internal_set_aggregation(::speechly::analytics::v1::Aggregation value); + public: + // int32 total_events = 7; + void clear_total_events() ; + ::int32_t total_events() const; + void set_total_events(::int32_t value); + + private: + ::int32_t _internal_total_events() const; + void _internal_set_total_events(::int32_t value); + + public: + // int32 total_flagged = 8; + void clear_total_flagged() ; + ::int32_t total_flagged() const; + void set_total_flagged(::int32_t value); + + private: + ::int32_t _internal_total_flagged() const; + void _internal_set_total_flagged(::int32_t value); + + public: + // int32 total_not_flagged = 9; + void clear_total_not_flagged() ; + ::int32_t total_not_flagged() const; + void set_total_not_flagged(::int32_t value); + + private: + ::int32_t _internal_total_not_flagged() const; + void _internal_set_total_not_flagged(::int32_t value); + public: // @@protoc_insertion_point(class_scope:speechly.analytics.v1.ModerationStatisticsResponse) private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<3, 6, 1, 93, 2> _table_; + static const ::google::protobuf::internal::TcParseTable<4, 9, 1, 101, 2> _table_; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; @@ -2305,6 +2338,9 @@ class ModerationStatisticsResponse final : ::google::protobuf::internal::ArenaStringPtr start_date_; ::google::protobuf::internal::ArenaStringPtr end_date_; int aggregation_; + ::int32_t total_events_; + ::int32_t total_flagged_; + ::int32_t total_not_flagged_; mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER; }; @@ -4492,6 +4528,72 @@ ModerationStatisticsResponse::_internal_mutable_items() { return &_impl_.items_; } +// int32 total_events = 7; +inline void ModerationStatisticsResponse::clear_total_events() { + _impl_.total_events_ = 0; +} +inline ::int32_t ModerationStatisticsResponse::total_events() const { + // @@protoc_insertion_point(field_get:speechly.analytics.v1.ModerationStatisticsResponse.total_events) + return _internal_total_events(); +} +inline void ModerationStatisticsResponse::set_total_events(::int32_t value) { + _internal_set_total_events(value); + // @@protoc_insertion_point(field_set:speechly.analytics.v1.ModerationStatisticsResponse.total_events) +} +inline ::int32_t ModerationStatisticsResponse::_internal_total_events() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.total_events_; +} +inline void ModerationStatisticsResponse::_internal_set_total_events(::int32_t value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.total_events_ = value; +} + +// int32 total_flagged = 8; +inline void ModerationStatisticsResponse::clear_total_flagged() { + _impl_.total_flagged_ = 0; +} +inline ::int32_t ModerationStatisticsResponse::total_flagged() const { + // @@protoc_insertion_point(field_get:speechly.analytics.v1.ModerationStatisticsResponse.total_flagged) + return _internal_total_flagged(); +} +inline void ModerationStatisticsResponse::set_total_flagged(::int32_t value) { + _internal_set_total_flagged(value); + // @@protoc_insertion_point(field_set:speechly.analytics.v1.ModerationStatisticsResponse.total_flagged) +} +inline ::int32_t ModerationStatisticsResponse::_internal_total_flagged() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.total_flagged_; +} +inline void ModerationStatisticsResponse::_internal_set_total_flagged(::int32_t value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.total_flagged_ = value; +} + +// int32 total_not_flagged = 9; +inline void ModerationStatisticsResponse::clear_total_not_flagged() { + _impl_.total_not_flagged_ = 0; +} +inline ::int32_t ModerationStatisticsResponse::total_not_flagged() const { + // @@protoc_insertion_point(field_get:speechly.analytics.v1.ModerationStatisticsResponse.total_not_flagged) + return _internal_total_not_flagged(); +} +inline void ModerationStatisticsResponse::set_total_not_flagged(::int32_t value) { + _internal_set_total_not_flagged(value); + // @@protoc_insertion_point(field_set:speechly.analytics.v1.ModerationStatisticsResponse.total_not_flagged) +} +inline ::int32_t ModerationStatisticsResponse::_internal_total_not_flagged() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.total_not_flagged_; +} +inline void ModerationStatisticsResponse::_internal_set_total_not_flagged(::int32_t value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.total_not_flagged_ = value; +} + // ------------------------------------------------------------------- // UserStatisticsRequest diff --git a/go/speechly/analytics/v1/analytics.pb.go b/go/speechly/analytics/v1/analytics.pb.go index 63391df..85bea60 100644 --- a/go/speechly/analytics/v1/analytics.pb.go +++ b/go/speechly/analytics/v1/analytics.pb.go @@ -445,13 +445,15 @@ type ModerationStatisticsPeriod struct { // period start time StartTime string `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // if grouping by users, the user id, or "OTHER" - UserId string `protobuf:"bytes,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // total amount of moderation events for this period. - Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` + Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` // total amount of flagged events. - Flagged int32 `protobuf:"varint,3,opt,name=flagged,proto3" json:"flagged,omitempty"` + Flagged int32 `protobuf:"varint,4,opt,name=flagged,proto3" json:"flagged,omitempty"` + // total amount of not flagged (OK) events for this period. + NotFlagged int32 `protobuf:"varint,5,opt,name=not_flagged,json=notFlagged,proto3" json:"not_flagged,omitempty"` // amount of moderation decisions made. - Decisions int32 `protobuf:"varint,4,opt,name=decisions,proto3" json:"decisions,omitempty"` + Decisions int32 `protobuf:"varint,6,opt,name=decisions,proto3" json:"decisions,omitempty"` } func (x *ModerationStatisticsPeriod) Reset() { @@ -514,6 +516,13 @@ func (x *ModerationStatisticsPeriod) GetFlagged() int32 { return 0 } +func (x *ModerationStatisticsPeriod) GetNotFlagged() int32 { + if x != nil { + return x.NotFlagged + } + return 0 +} + func (x *ModerationStatisticsPeriod) GetDecisions() int32 { if x != nil { return x.Decisions @@ -638,64 +647,66 @@ var file_speechly_analytics_v1_analytics_proto_rawDesc = []byte{ 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x49, 0x64, 0x22, 0xa2, 0x01, 0x0a, 0x1a, + 0x28, 0x09, 0x52, 0x07, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x49, 0x64, 0x22, 0xc3, 0x01, 0x0a, 0x1a, 0x4d, 0x6f, 0x64, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, - 0x72, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, - 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, + 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x6c, 0x61, 0x67, - 0x67, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x66, 0x6c, 0x61, 0x67, 0x67, - 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x22, 0x9e, 0x01, 0x0a, 0x14, 0x55, 0x73, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, - 0x69, 0x63, 0x73, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x61, - 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, - 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x74, 0x69, - 0x76, 0x65, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, - 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x74, - 0x6f, 0x78, 0x69, 0x63, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x0a, 0x74, 0x6f, 0x78, 0x69, 0x63, 0x55, 0x73, 0x65, 0x72, 0x73, 0x12, 0x23, 0x0a, 0x0d, - 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x0c, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, - 0x73, 0x2a, 0x6e, 0x0a, 0x0b, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x17, 0x0a, 0x13, 0x41, 0x47, 0x47, 0x52, 0x45, 0x47, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, - 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x41, 0x47, 0x47, - 0x52, 0x45, 0x47, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x4f, 0x4e, 0x54, 0x48, 0x4c, 0x59, - 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x41, 0x47, 0x47, 0x52, 0x45, 0x47, 0x41, 0x54, 0x49, 0x4f, - 0x4e, 0x5f, 0x44, 0x41, 0x49, 0x4c, 0x59, 0x10, 0x02, 0x12, 0x16, 0x0a, 0x12, 0x41, 0x47, 0x47, - 0x52, 0x45, 0x47, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x48, 0x4f, 0x55, 0x52, 0x4c, 0x59, 0x10, - 0x03, 0x2a, 0xc7, 0x02, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x69, 0x6e, 0x67, - 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x50, 0x52, 0x4f, 0x43, 0x45, 0x53, 0x53, 0x49, - 0x4e, 0x47, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, - 0x00, 0x12, 0x21, 0x0a, 0x1d, 0x50, 0x52, 0x4f, 0x43, 0x45, 0x53, 0x53, 0x49, 0x4e, 0x47, 0x5f, - 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x43, 0x52, 0x49, 0x50, 0x54, 0x49, - 0x4f, 0x4e, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x50, 0x52, 0x4f, 0x43, 0x45, 0x53, 0x53, 0x49, - 0x4e, 0x47, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x4c, 0x55, 0x10, 0x02, 0x12, 0x26, 0x0a, - 0x22, 0x50, 0x52, 0x4f, 0x43, 0x45, 0x53, 0x53, 0x49, 0x4e, 0x47, 0x5f, 0x54, 0x59, 0x50, 0x45, - 0x5f, 0x4c, 0x41, 0x4e, 0x47, 0x55, 0x41, 0x47, 0x45, 0x5f, 0x44, 0x45, 0x54, 0x45, 0x43, 0x54, - 0x49, 0x4f, 0x4e, 0x10, 0x03, 0x12, 0x17, 0x0a, 0x13, 0x50, 0x52, 0x4f, 0x43, 0x45, 0x53, 0x53, - 0x49, 0x4e, 0x47, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x56, 0x41, 0x44, 0x10, 0x04, 0x12, 0x1f, - 0x0a, 0x1b, 0x50, 0x52, 0x4f, 0x43, 0x45, 0x53, 0x53, 0x49, 0x4e, 0x47, 0x5f, 0x54, 0x59, 0x50, - 0x45, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x4c, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x05, 0x12, - 0x29, 0x0a, 0x25, 0x50, 0x52, 0x4f, 0x43, 0x45, 0x53, 0x53, 0x49, 0x4e, 0x47, 0x5f, 0x54, 0x59, - 0x50, 0x45, 0x5f, 0x41, 0x55, 0x44, 0x49, 0x4f, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x44, - 0x45, 0x54, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x06, 0x12, 0x2b, 0x0a, 0x27, 0x50, 0x52, - 0x4f, 0x43, 0x45, 0x53, 0x53, 0x49, 0x4e, 0x47, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x4f, - 0x4e, 0x45, 0x5f, 0x4f, 0x46, 0x5f, 0x56, 0x4f, 0x49, 0x43, 0x45, 0x5f, 0x4c, 0x41, 0x42, 0x45, - 0x4c, 0x4c, 0x49, 0x4e, 0x47, 0x10, 0x07, 0x12, 0x22, 0x0a, 0x1e, 0x50, 0x52, 0x4f, 0x43, 0x45, - 0x53, 0x53, 0x49, 0x4e, 0x47, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x48, 0x41, 0x4c, 0x4c, - 0x4f, 0x57, 0x5f, 0x46, 0x55, 0x53, 0x49, 0x4f, 0x4e, 0x10, 0x08, 0x42, 0x86, 0x01, 0x0a, 0x19, - 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x61, 0x6e, 0x61, - 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0e, 0x41, 0x6e, 0x61, 0x6c, 0x79, - 0x74, 0x69, 0x63, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x21, 0x73, 0x70, 0x65, - 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2f, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x2f, - 0x76, 0x31, 0x3b, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x76, 0x31, 0xa2, 0x02, - 0x03, 0x53, 0x41, 0x58, 0xaa, 0x02, 0x15, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2e, - 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x15, 0x53, - 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x5c, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, - 0x73, 0x5c, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x67, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x66, 0x6c, 0x61, 0x67, 0x67, + 0x65, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x6f, 0x74, 0x5f, 0x66, 0x6c, 0x61, 0x67, 0x67, 0x65, + 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x6e, 0x6f, 0x74, 0x46, 0x6c, 0x61, 0x67, + 0x67, 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x22, 0x9e, 0x01, 0x0a, 0x14, 0x55, 0x73, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, + 0x74, 0x69, 0x63, 0x73, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, + 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x74, + 0x69, 0x76, 0x65, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x0b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x73, 0x12, 0x1f, 0x0a, 0x0b, + 0x74, 0x6f, 0x78, 0x69, 0x63, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x0a, 0x74, 0x6f, 0x78, 0x69, 0x63, 0x55, 0x73, 0x65, 0x72, 0x73, 0x12, 0x23, 0x0a, + 0x0d, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x64, 0x55, 0x73, 0x65, + 0x72, 0x73, 0x2a, 0x6e, 0x0a, 0x0b, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x17, 0x0a, 0x13, 0x41, 0x47, 0x47, 0x52, 0x45, 0x47, 0x41, 0x54, 0x49, 0x4f, 0x4e, + 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x41, 0x47, + 0x47, 0x52, 0x45, 0x47, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x4f, 0x4e, 0x54, 0x48, 0x4c, + 0x59, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x41, 0x47, 0x47, 0x52, 0x45, 0x47, 0x41, 0x54, 0x49, + 0x4f, 0x4e, 0x5f, 0x44, 0x41, 0x49, 0x4c, 0x59, 0x10, 0x02, 0x12, 0x16, 0x0a, 0x12, 0x41, 0x47, + 0x47, 0x52, 0x45, 0x47, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x48, 0x4f, 0x55, 0x52, 0x4c, 0x59, + 0x10, 0x03, 0x2a, 0xc7, 0x02, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x69, 0x6e, + 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x50, 0x52, 0x4f, 0x43, 0x45, 0x53, 0x53, + 0x49, 0x4e, 0x47, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, + 0x10, 0x00, 0x12, 0x21, 0x0a, 0x1d, 0x50, 0x52, 0x4f, 0x43, 0x45, 0x53, 0x53, 0x49, 0x4e, 0x47, + 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x43, 0x52, 0x49, 0x50, 0x54, + 0x49, 0x4f, 0x4e, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x50, 0x52, 0x4f, 0x43, 0x45, 0x53, 0x53, + 0x49, 0x4e, 0x47, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x4c, 0x55, 0x10, 0x02, 0x12, 0x26, + 0x0a, 0x22, 0x50, 0x52, 0x4f, 0x43, 0x45, 0x53, 0x53, 0x49, 0x4e, 0x47, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x4c, 0x41, 0x4e, 0x47, 0x55, 0x41, 0x47, 0x45, 0x5f, 0x44, 0x45, 0x54, 0x45, 0x43, + 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x03, 0x12, 0x17, 0x0a, 0x13, 0x50, 0x52, 0x4f, 0x43, 0x45, 0x53, + 0x53, 0x49, 0x4e, 0x47, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x56, 0x41, 0x44, 0x10, 0x04, 0x12, + 0x1f, 0x0a, 0x1b, 0x50, 0x52, 0x4f, 0x43, 0x45, 0x53, 0x53, 0x49, 0x4e, 0x47, 0x5f, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x4c, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x05, + 0x12, 0x29, 0x0a, 0x25, 0x50, 0x52, 0x4f, 0x43, 0x45, 0x53, 0x53, 0x49, 0x4e, 0x47, 0x5f, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x41, 0x55, 0x44, 0x49, 0x4f, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, + 0x44, 0x45, 0x54, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x06, 0x12, 0x2b, 0x0a, 0x27, 0x50, + 0x52, 0x4f, 0x43, 0x45, 0x53, 0x53, 0x49, 0x4e, 0x47, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, + 0x4f, 0x4e, 0x45, 0x5f, 0x4f, 0x46, 0x5f, 0x56, 0x4f, 0x49, 0x43, 0x45, 0x5f, 0x4c, 0x41, 0x42, + 0x45, 0x4c, 0x4c, 0x49, 0x4e, 0x47, 0x10, 0x07, 0x12, 0x22, 0x0a, 0x1e, 0x50, 0x52, 0x4f, 0x43, + 0x45, 0x53, 0x53, 0x49, 0x4e, 0x47, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x48, 0x41, 0x4c, + 0x4c, 0x4f, 0x57, 0x5f, 0x46, 0x55, 0x53, 0x49, 0x4f, 0x4e, 0x10, 0x08, 0x42, 0x86, 0x01, 0x0a, + 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x61, 0x6e, + 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0e, 0x41, 0x6e, 0x61, 0x6c, + 0x79, 0x74, 0x69, 0x63, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x21, 0x73, 0x70, + 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2f, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, + 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x76, 0x31, 0xa2, + 0x02, 0x03, 0x53, 0x41, 0x58, 0xaa, 0x02, 0x15, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, + 0x2e, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x15, + 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x5c, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, + 0x63, 0x73, 0x5c, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/go/speechly/analytics/v1/analytics_api.pb.go b/go/speechly/analytics/v1/analytics_api.pb.go index e5de300..2a63ce3 100644 --- a/go/speechly/analytics/v1/analytics_api.pb.go +++ b/go/speechly/analytics/v1/analytics_api.pb.go @@ -838,6 +838,12 @@ type ModerationStatisticsResponse struct { Aggregation Aggregation `protobuf:"varint,5,opt,name=aggregation,proto3,enum=speechly.analytics.v1.Aggregation" json:"aggregation,omitempty"` // Aggregated results. Items []*ModerationStatisticsPeriod `protobuf:"bytes,6,rep,name=items,proto3" json:"items,omitempty"` + // Total number of events in this response. + TotalEvents int32 `protobuf:"varint,7,opt,name=total_events,json=totalEvents,proto3" json:"total_events,omitempty"` + // Total number of flagged events in this response. + TotalFlagged int32 `protobuf:"varint,8,opt,name=total_flagged,json=totalFlagged,proto3" json:"total_flagged,omitempty"` + // Total number of non-flagged (OK) events in this response. + TotalNotFlagged int32 `protobuf:"varint,9,opt,name=total_not_flagged,json=totalNotFlagged,proto3" json:"total_not_flagged,omitempty"` } func (x *ModerationStatisticsResponse) Reset() { @@ -914,6 +920,27 @@ func (x *ModerationStatisticsResponse) GetItems() []*ModerationStatisticsPeriod return nil } +func (x *ModerationStatisticsResponse) GetTotalEvents() int32 { + if x != nil { + return x.TotalEvents + } + return 0 +} + +func (x *ModerationStatisticsResponse) GetTotalFlagged() int32 { + if x != nil { + return x.TotalFlagged + } + return 0 +} + +func (x *ModerationStatisticsResponse) GetTotalNotFlagged() int32 { + if x != nil { + return x.TotalNotFlagged + } + return 0 +} + // Request for getting user statistics. type UserStatisticsRequest struct { state protoimpl.MessageState @@ -1131,7 +1158,7 @@ var file_speechly_analytics_v1_analytics_api_proto_rawDesc = []byte{ 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, - 0x9d, 0x02, 0x0a, 0x1c, 0x4d, 0x6f, 0x64, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, + 0x91, 0x03, 0x0a, 0x1c, 0x4d, 0x6f, 0x64, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, @@ -1148,65 +1175,72 @@ var file_speechly_analytics_v1_analytics_api_proto_rawDesc = []byte{ 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, - 0x63, 0x73, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, - 0x17, 0x0a, 0x15, 0x55, 0x73, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x18, 0x0a, 0x16, 0x55, 0x73, 0x65, 0x72, - 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x32, 0xd2, 0x05, 0x0a, 0x0c, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, - 0x41, 0x50, 0x49, 0x12, 0x7c, 0x0a, 0x13, 0x55, 0x74, 0x74, 0x65, 0x72, 0x61, 0x6e, 0x63, 0x65, - 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x31, 0x2e, 0x73, 0x70, 0x65, - 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x2e, - 0x76, 0x31, 0x2e, 0x55, 0x74, 0x74, 0x65, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, - 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, + 0x63, 0x73, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x12, + 0x21, 0x0a, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x66, 0x6c, 0x61, 0x67, + 0x67, 0x65, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, + 0x46, 0x6c, 0x61, 0x67, 0x67, 0x65, 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x74, 0x6f, 0x74, 0x61, 0x6c, + 0x5f, 0x6e, 0x6f, 0x74, 0x5f, 0x66, 0x6c, 0x61, 0x67, 0x67, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x0f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x4e, 0x6f, 0x74, 0x46, 0x6c, 0x61, 0x67, + 0x67, 0x65, 0x64, 0x22, 0x17, 0x0a, 0x15, 0x55, 0x73, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x69, + 0x73, 0x74, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x18, 0x0a, 0x16, + 0x55, 0x73, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xd2, 0x05, 0x0a, 0x0c, 0x41, 0x6e, 0x61, 0x6c, 0x79, + 0x74, 0x69, 0x63, 0x73, 0x41, 0x50, 0x49, 0x12, 0x7c, 0x0a, 0x13, 0x55, 0x74, 0x74, 0x65, 0x72, + 0x61, 0x6e, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x31, + 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x74, + 0x69, 0x63, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x74, 0x74, 0x65, 0x72, 0x61, 0x6e, 0x63, 0x65, + 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x32, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x61, 0x6e, 0x61, + 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x74, 0x74, 0x65, 0x72, 0x61, + 0x6e, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x61, 0x0a, 0x0a, 0x55, 0x74, 0x74, 0x65, 0x72, 0x61, 0x6e, + 0x63, 0x65, 0x73, 0x12, 0x28, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x61, + 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x74, 0x74, 0x65, + 0x72, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, - 0x63, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x74, 0x74, 0x65, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x53, - 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x61, 0x0a, 0x0a, 0x55, 0x74, 0x74, 0x65, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, - 0x28, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, - 0x74, 0x69, 0x63, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x74, 0x74, 0x65, 0x72, 0x61, 0x6e, 0x63, - 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x73, 0x70, 0x65, 0x65, - 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x2e, 0x76, - 0x31, 0x2e, 0x55, 0x74, 0x74, 0x65, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x76, 0x0a, 0x11, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, - 0x55, 0x74, 0x74, 0x65, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x2f, 0x2e, 0x73, 0x70, 0x65, 0x65, - 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x2e, 0x76, - 0x31, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x55, 0x74, 0x74, 0x65, 0x72, 0x61, - 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x73, 0x70, 0x65, - 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x2e, - 0x76, 0x31, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x55, 0x74, 0x74, 0x65, 0x72, - 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x79, 0x0a, 0x12, - 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x55, 0x74, 0x74, 0x65, 0x72, 0x61, 0x6e, 0x63, - 0x65, 0x73, 0x12, 0x30, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x61, 0x6e, - 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x65, 0x72, 0x55, 0x74, 0x74, 0x65, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2e, - 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x65, 0x72, 0x55, 0x74, 0x74, 0x65, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7f, 0x0a, 0x14, 0x4d, 0x6f, 0x64, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, - 0x32, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, - 0x74, 0x69, 0x63, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x61, + 0x63, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x74, 0x74, 0x65, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x76, 0x0a, 0x11, 0x52, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x65, 0x72, 0x55, 0x74, 0x74, 0x65, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x2f, 0x2e, + 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, + 0x63, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x55, 0x74, + 0x74, 0x65, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, + 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x74, + 0x69, 0x63, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x55, + 0x74, 0x74, 0x65, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x79, 0x0a, 0x12, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x55, 0x74, 0x74, 0x65, + 0x72, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x30, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, + 0x79, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x55, 0x74, 0x74, 0x65, 0x72, 0x61, 0x6e, 0x63, 0x65, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, + 0x68, 0x6c, 0x79, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x2e, 0x76, 0x31, + 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x55, 0x74, 0x74, 0x65, 0x72, 0x61, 0x6e, + 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7f, 0x0a, 0x14, 0x4d, + 0x6f, 0x64, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, + 0x69, 0x63, 0x73, 0x12, 0x32, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6d, 0x0a, 0x0e, 0x55, 0x73, 0x65, 0x72, - 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x2c, 0x2e, 0x73, 0x70, 0x65, - 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x2e, - 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, - 0x68, 0x6c, 0x79, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x2e, 0x76, 0x31, - 0x2e, 0x55, 0x73, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x89, 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, - 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, - 0x63, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x11, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, - 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x21, 0x73, 0x70, 0x65, 0x65, - 0x63, 0x68, 0x6c, 0x79, 0x2f, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x2f, 0x76, - 0x31, 0x3b, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, - 0x53, 0x41, 0x58, 0xaa, 0x02, 0x15, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x41, - 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x15, 0x53, 0x70, - 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x5c, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, - 0x5c, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, + 0x6c, 0x79, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x2e, 0x76, 0x31, 0x2e, + 0x4d, 0x6f, 0x64, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, + 0x74, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6d, 0x0a, 0x0e, + 0x55, 0x73, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x2c, + 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x74, + 0x69, 0x63, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x69, + 0x73, 0x74, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x73, + 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, + 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x89, 0x01, 0x0a, 0x19, + 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x61, 0x6e, 0x61, + 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x11, 0x41, 0x6e, 0x61, 0x6c, 0x79, + 0x74, 0x69, 0x63, 0x73, 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x21, + 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2f, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, + 0x63, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x76, + 0x31, 0xa2, 0x02, 0x03, 0x53, 0x41, 0x58, 0xaa, 0x02, 0x15, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, + 0x6c, 0x79, 0x2e, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x2e, 0x56, 0x31, 0xca, + 0x02, 0x15, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x5c, 0x41, 0x6e, 0x61, 0x6c, 0x79, + 0x74, 0x69, 0x63, 0x73, 0x5c, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/speechly_api.pb b/speechly_api.pb index 35ae78bd06e66917c2a6f2678f2fb975a3e2c9a1..1f916f9ac12fa02748e86c63ee28e41772fb476c 100644 GIT binary patch delta 1140 zcmaizPe>F|9LM*)d9yqFTQz*H?mD~XXcrYSR*S+Af~XKHK}#YGo!uR6L1$!l?a*b3 z4n=e*=HM+mEeIZhfy_#jHkQ0}iEdp=FF{a;Ze9A#o0+YfxB30~{yy)`@B4o3wbVbh zycn<2AN|gi>IP*s0;>I_9=BW9GZm_lzUX9lrDPPx@;nZ5&RQ|cNeR>Pq!;icMCKRu zg#{y@WFjAgyc=SsRh|v1vZw;4E_(eu4bi-jE0hYBSxSaQ`Cp><8F8Mkf1}aIT@dCh z6f#yb-$~qA+jt4&mNUKij-0pzj4{f%bd#y-h*q}B`l6;UxrfxOc@0sTPuKb;#{2EN zuQYpVE3URf6UeSoLTR!ShQ%D2OEY%wR%TFkzgX07k_kr87DOnS=}5pRP$qLW7c%U7 zTcedZB@Hp0BGV9;bf$`K3~-XpAc%019`oQ>!$~^AJsFm=Eaf*6lx6(`$dtG>=m=^k z%XX^1jB+W5v?cdGGNq`?HFOkpIS6nRb-4x(gFH+7BPEpO8!`!Hc}N5`w^L1J!^=gh zYz;$o8v5;tYPYlZdRAdiB}k)NI_xiR!Mbao z*=q@$p@<$&7kFa;TD_+KEff`vM?~Rj!$-XdXupmYohs|j|BOo9JW8WMNZb%NO37*2)4q=*lw!sTi5aP19Ct%$pQVj`xmKK{W<^u delta 537 zcmX|-ze`(D6vyBF74uHi;Tp}$Ga*i*IHg*2=^s!k6tVJ_8~eG6Zm za=BEr*h}uCjDcA!6)KHNt=h1--rs$q=Fb=eBsYx0&Q^wowYzr+-i*LRnBlvMje>Bn06R z_(YIG!#?4_tQGBQSmpR=w<4(JxapJE!H7?&<)U_1qmnte?VER_pcFl)=TY<=@YhlF zoZdQwJdbrpGSu=tjiHu@h~IfH?a_Q-v0huMO~Y*pCe>Oyp}(}VLHdj8Kc{h`Kb~(h zvpENSQW%D-@Bb&G