diff --git a/CHANGELOG.md b/CHANGELOG.md index a8e4af9..aa8d5ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,22 @@ # Changelog -## [0.8.14](https://github.com/speechly/api/tree/0.8.14) (2023-03-02) +## [0.8.15](https://github.com/speechly/api/tree/0.8.15) (2023-04-12) + +[Full Changelog](https://github.com/speechly/api/compare/0.8.14...0.8.15) + +**Merged pull requests:** + +- Extend RegisterUtterance with processing information [\#69](https://github.com/speechly/api/pull/69) ([teelisyys](https://github.com/teelisyys)) +- Set enum defaults to UNSPECIFIED instead of INVALID [\#68](https://github.com/speechly/api/pull/68) ([langma](https://github.com/langma)) +- Add BatchAPI v2 missing stubs [\#67](https://github.com/speechly/api/pull/67) ([langma](https://github.com/langma)) + +## [0.8.14](https://github.com/speechly/api/tree/0.8.14) (2023-03-03) [Full Changelog](https://github.com/speechly/api/compare/0.8.13...0.8.14) **Merged pull requests:** +- Release 0.8.14 [\#66](https://github.com/speechly/api/pull/66) ([langma](https://github.com/langma)) - BatchAPI V2 Beta [\#65](https://github.com/speechly/api/pull/65) ([teelisyys](https://github.com/teelisyys)) - Bump golang.org/x/text from 0.3.3 to 0.3.8 in /go/example [\#63](https://github.com/speechly/api/pull/63) ([dependabot[bot]](https://github.com/apps/dependabot)) diff --git a/Sources/SpeechlyAPI/speechly_analytics_v1_analytics.pb.swift b/Sources/SpeechlyAPI/speechly_analytics_v1_analytics.pb.swift index 3ca67a9..d5ca593 100644 --- a/Sources/SpeechlyAPI/speechly_analytics_v1_analytics.pb.swift +++ b/Sources/SpeechlyAPI/speechly_analytics_v1_analytics.pb.swift @@ -69,6 +69,75 @@ extension Speechly_Analytics_V1_Aggregation: CaseIterable { #endif // swift(>=4.2) +/// The various types of processing that can be applied to the audio. +public enum Speechly_Analytics_V1_ProcessingType: SwiftProtobuf.Enum { + public typealias RawValue = Int + case invalid // = 0 + case transcription // = 1 + case nlu // = 2 + case languageDetection // = 3 + case vad // = 4 + case translation // = 5 + case audioEventDetection // = 6 + case toneOfVoiceLabelling // = 7 + case shallowFusion // = 8 + case UNRECOGNIZED(Int) + + public init() { + self = .invalid + } + + public init?(rawValue: Int) { + switch rawValue { + case 0: self = .invalid + case 1: self = .transcription + case 2: self = .nlu + case 3: self = .languageDetection + case 4: self = .vad + case 5: self = .translation + case 6: self = .audioEventDetection + case 7: self = .toneOfVoiceLabelling + case 8: self = .shallowFusion + default: self = .UNRECOGNIZED(rawValue) + } + } + + public var rawValue: Int { + switch self { + case .invalid: return 0 + case .transcription: return 1 + case .nlu: return 2 + case .languageDetection: return 3 + case .vad: return 4 + case .translation: return 5 + case .audioEventDetection: return 6 + case .toneOfVoiceLabelling: return 7 + case .shallowFusion: return 8 + case .UNRECOGNIZED(let i): return i + } + } + +} + +#if swift(>=4.2) + +extension Speechly_Analytics_V1_ProcessingType: CaseIterable { + // The compiler won't synthesize support with the UNRECOGNIZED case. + public static var allCases: [Speechly_Analytics_V1_ProcessingType] = [ + .invalid, + .transcription, + .nlu, + .languageDetection, + .vad, + .translation, + .audioEventDetection, + .toneOfVoiceLabelling, + .shallowFusion, + ] +} + +#endif // swift(>=4.2) + /// Single row of statistics response. public struct Speechly_Analytics_V1_UtteranceStatisticsPeriod { // SwiftProtobuf.Message conformance is added in an extension below. See the @@ -90,7 +159,7 @@ public struct Speechly_Analytics_V1_UtteranceStatisticsPeriod { /// Total duration of annotated utterances in the current period. public var annotatedSeconds: Int32 = 0 - /// project_id or empty, if specifiying a project. + /// project_id or empty, if specifying a project. public var projectID: String = String() public var unknownFields = SwiftProtobuf.UnknownStorage() @@ -138,11 +207,30 @@ public struct Speechly_Analytics_V1_DecoderInfo { public init() {} } +/// Specifies what processing has been applied to an utterance. +public struct Speechly_Analytics_V1_ProcessingInfo { + // 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. + + /// The processing types that were applied + public var processingTypes: [Speechly_Analytics_V1_ProcessingType] = [] + + /// id of the model that was used for processing + public var modelID: String = String() + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public init() {} +} + #if swift(>=5.5) && canImport(_Concurrency) extension Speechly_Analytics_V1_Aggregation: @unchecked Sendable {} +extension Speechly_Analytics_V1_ProcessingType: @unchecked Sendable {} extension Speechly_Analytics_V1_UtteranceStatisticsPeriod: @unchecked Sendable {} extension Speechly_Analytics_V1_Utterance: @unchecked Sendable {} extension Speechly_Analytics_V1_DecoderInfo: @unchecked Sendable {} +extension Speechly_Analytics_V1_ProcessingInfo: @unchecked Sendable {} #endif // swift(>=5.5) && canImport(_Concurrency) // MARK: - Code below here is support for the SwiftProtobuf runtime. @@ -158,6 +246,20 @@ extension Speechly_Analytics_V1_Aggregation: SwiftProtobuf._ProtoNameProviding { ] } +extension Speechly_Analytics_V1_ProcessingType: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "PROCESSING_TYPE_INVALID"), + 1: .same(proto: "PROCESSING_TYPE_TRANSCRIPTION"), + 2: .same(proto: "PROCESSING_TYPE_NLU"), + 3: .same(proto: "PROCESSING_TYPE_LANGUAGE_DETECTION"), + 4: .same(proto: "PROCESSING_TYPE_VAD"), + 5: .same(proto: "PROCESSING_TYPE_TRANSLATION"), + 6: .same(proto: "PROCESSING_TYPE_AUDIO_EVENT_DETECTION"), + 7: .same(proto: "PROCESSING_TYPE_TONE_OF_VOICE_LABELLING"), + 8: .same(proto: "PROCESSING_TYPE_SHALLOW_FUSION"), + ] +} + extension Speechly_Analytics_V1_UtteranceStatisticsPeriod: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".UtteranceStatisticsPeriod" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ @@ -307,3 +409,41 @@ extension Speechly_Analytics_V1_DecoderInfo: SwiftProtobuf.Message, SwiftProtobu return true } } + +extension Speechly_Analytics_V1_ProcessingInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = _protobuf_package + ".ProcessingInfo" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "processing_types"), + 2: .standard(proto: "model_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.decodeRepeatedEnumField(value: &self.processingTypes) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.modelID) }() + default: break + } + } + } + + public func traverse(visitor: inout V) throws { + if !self.processingTypes.isEmpty { + try visitor.visitPackedEnumField(value: self.processingTypes, fieldNumber: 1) + } + if !self.modelID.isEmpty { + try visitor.visitSingularStringField(value: self.modelID, fieldNumber: 2) + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Speechly_Analytics_V1_ProcessingInfo, rhs: Speechly_Analytics_V1_ProcessingInfo) -> Bool { + if lhs.processingTypes != rhs.processingTypes {return false} + if lhs.modelID != rhs.modelID {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 809b7f6..daa6ea9 100644 --- a/Sources/SpeechlyAPI/speechly_analytics_v1_analytics_api.pb.swift +++ b/Sources/SpeechlyAPI/speechly_analytics_v1_analytics_api.pb.swift @@ -184,55 +184,99 @@ public struct Speechly_Analytics_V1_RegisterUtteranceRequest { // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. - public var appID: String = String() + /// id of the application the operation belongs to + public var appID: String { + get {return _storage._appID} + set {_uniqueStorage()._appID = newValue} + } /// device_id of the utterance. - public var deviceID: String = String() + public var deviceID: String { + get {return _storage._deviceID} + set {_uniqueStorage()._deviceID = newValue} + } /// Length of the recognized utterance in seconds. - public var utteranceLengthSeconds: Int32 = 0 + public var utteranceLengthSeconds: Int32 { + get {return _storage._utteranceLengthSeconds} + set {_uniqueStorage()._utteranceLengthSeconds = newValue} + } /// Length of the recognized utterance in characters. - public var utteranceLengthChars: Int32 = 0 + public var utteranceLengthChars: Int32 { + get {return _storage._utteranceLengthChars} + set {_uniqueStorage()._utteranceLengthChars = newValue} + } /// Information about the on-device decoder. public var decoderInfo: Speechly_Analytics_V1_DecoderInfo { - get {return _decoderInfo ?? Speechly_Analytics_V1_DecoderInfo()} - set {_decoderInfo = newValue} + get {return _storage._decoderInfo ?? Speechly_Analytics_V1_DecoderInfo()} + set {_uniqueStorage()._decoderInfo = newValue} } /// Returns true if `decoderInfo` has been explicitly set. - public var hasDecoderInfo: Bool {return self._decoderInfo != nil} + public var hasDecoderInfo: Bool {return _storage._decoderInfo != nil} /// Clears the value of `decoderInfo`. Subsequent reads from it will return its default value. - public mutating func clearDecoderInfo() {self._decoderInfo = nil} + public mutating func clearDecoderInfo() {_uniqueStorage()._decoderInfo = nil} /// When the processing was initially requested. public var createdTime: SwiftProtobuf.Google_Protobuf_Timestamp { - get {return _createdTime ?? SwiftProtobuf.Google_Protobuf_Timestamp()} - set {_createdTime = newValue} + get {return _storage._createdTime ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_uniqueStorage()._createdTime = newValue} } /// Returns true if `createdTime` has been explicitly set. - public var hasCreatedTime: Bool {return self._createdTime != nil} + public var hasCreatedTime: Bool {return _storage._createdTime != nil} /// Clears the value of `createdTime`. Subsequent reads from it will return its default value. - public mutating func clearCreatedTime() {self._createdTime = nil} + public mutating func clearCreatedTime() {_uniqueStorage()._createdTime = nil} /// When the processing was finished. public var finishedTime: SwiftProtobuf.Google_Protobuf_Timestamp { - get {return _finishedTime ?? SwiftProtobuf.Google_Protobuf_Timestamp()} - set {_finishedTime = newValue} + get {return _storage._finishedTime ?? SwiftProtobuf.Google_Protobuf_Timestamp()} + set {_uniqueStorage()._finishedTime = newValue} } /// Returns true if `finishedTime` has been explicitly set. - public var hasFinishedTime: Bool {return self._finishedTime != nil} + public var hasFinishedTime: Bool {return _storage._finishedTime != nil} /// Clears the value of `finishedTime`. Subsequent reads from it will return its default value. - public mutating func clearFinishedTime() {self._finishedTime = nil} + public mutating func clearFinishedTime() {_uniqueStorage()._finishedTime = nil} /// The status of the processing. - public var status: Speechly_Analytics_V1_RegisterUtteranceRequest.Status = .invalid + public var status: Speechly_Analytics_V1_RegisterUtteranceRequest.Status { + get {return _storage._status} + set {_uniqueStorage()._status = newValue} + } /// batch api operation id of the utterance - public var operationID: String = String() + public var operationID: String { + get {return _storage._operationID} + set {_uniqueStorage()._operationID = newValue} + } /// id of the batch the operation belongs to - public var batchID: String = String() + public var batchID: String { + get {return _storage._batchID} + set {_uniqueStorage()._batchID = newValue} + } + + /// id of the project the operation belongs to + public var projectID: String { + get {return _storage._projectID} + set {_uniqueStorage()._projectID = newValue} + } + + /// language of the utterance (BCP-47) + public var language: String { + get {return _storage._language} + set {_uniqueStorage()._language = newValue} + } + + /// Information about the processing applied to the utterance + public var processingInfo: Speechly_Analytics_V1_ProcessingInfo { + get {return _storage._processingInfo ?? Speechly_Analytics_V1_ProcessingInfo()} + set {_uniqueStorage()._processingInfo = newValue} + } + /// Returns true if `processingInfo` has been explicitly set. + public var hasProcessingInfo: Bool {return _storage._processingInfo != nil} + /// Clears the value of `processingInfo`. Subsequent reads from it will return its default value. + public mutating func clearProcessingInfo() {_uniqueStorage()._processingInfo = nil} public var unknownFields = SwiftProtobuf.UnknownStorage() @@ -276,9 +320,7 @@ public struct Speechly_Analytics_V1_RegisterUtteranceRequest { public init() {} - fileprivate var _decoderInfo: Speechly_Analytics_V1_DecoderInfo? = nil - fileprivate var _createdTime: SwiftProtobuf.Google_Protobuf_Timestamp? = nil - fileprivate var _finishedTime: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + fileprivate var _storage = _StorageClass.defaultInstance } #if swift(>=4.2) @@ -541,78 +583,152 @@ extension Speechly_Analytics_V1_RegisterUtteranceRequest: SwiftProtobuf.Message, 8: .same(proto: "status"), 9: .standard(proto: "operation_id"), 10: .standard(proto: "batch_id"), + 11: .standard(proto: "project_id"), + 12: .same(proto: "language"), + 13: .standard(proto: "processing_info"), ] + fileprivate class _StorageClass { + var _appID: String = String() + var _deviceID: String = String() + var _utteranceLengthSeconds: Int32 = 0 + var _utteranceLengthChars: Int32 = 0 + var _decoderInfo: Speechly_Analytics_V1_DecoderInfo? = nil + var _createdTime: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _finishedTime: SwiftProtobuf.Google_Protobuf_Timestamp? = nil + var _status: Speechly_Analytics_V1_RegisterUtteranceRequest.Status = .invalid + var _operationID: String = String() + var _batchID: String = String() + var _projectID: String = String() + var _language: String = String() + var _processingInfo: Speechly_Analytics_V1_ProcessingInfo? = nil + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _appID = source._appID + _deviceID = source._deviceID + _utteranceLengthSeconds = source._utteranceLengthSeconds + _utteranceLengthChars = source._utteranceLengthChars + _decoderInfo = source._decoderInfo + _createdTime = source._createdTime + _finishedTime = source._finishedTime + _status = source._status + _operationID = source._operationID + _batchID = source._batchID + _projectID = source._projectID + _language = source._language + _processingInfo = source._processingInfo + } + } + + 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.appID) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.deviceID) }() - case 3: try { try decoder.decodeSingularInt32Field(value: &self.utteranceLengthSeconds) }() - case 4: try { try decoder.decodeSingularInt32Field(value: &self.utteranceLengthChars) }() - case 5: try { try decoder.decodeSingularMessageField(value: &self._decoderInfo) }() - case 6: try { try decoder.decodeSingularMessageField(value: &self._createdTime) }() - case 7: try { try decoder.decodeSingularMessageField(value: &self._finishedTime) }() - case 8: try { try decoder.decodeSingularEnumField(value: &self.status) }() - case 9: try { try decoder.decodeSingularStringField(value: &self.operationID) }() - case 10: try { try decoder.decodeSingularStringField(value: &self.batchID) }() - 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._appID) }() + case 2: try { try decoder.decodeSingularStringField(value: &_storage._deviceID) }() + case 3: try { try decoder.decodeSingularInt32Field(value: &_storage._utteranceLengthSeconds) }() + case 4: try { try decoder.decodeSingularInt32Field(value: &_storage._utteranceLengthChars) }() + case 5: try { try decoder.decodeSingularMessageField(value: &_storage._decoderInfo) }() + case 6: try { try decoder.decodeSingularMessageField(value: &_storage._createdTime) }() + case 7: try { try decoder.decodeSingularMessageField(value: &_storage._finishedTime) }() + case 8: try { try decoder.decodeSingularEnumField(value: &_storage._status) }() + case 9: try { try decoder.decodeSingularStringField(value: &_storage._operationID) }() + case 10: try { try decoder.decodeSingularStringField(value: &_storage._batchID) }() + case 11: try { try decoder.decodeSingularStringField(value: &_storage._projectID) }() + case 12: try { try decoder.decodeSingularStringField(value: &_storage._language) }() + case 13: try { try decoder.decodeSingularMessageField(value: &_storage._processingInfo) }() + 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.appID.isEmpty { - try visitor.visitSingularStringField(value: self.appID, fieldNumber: 1) - } - if !self.deviceID.isEmpty { - try visitor.visitSingularStringField(value: self.deviceID, fieldNumber: 2) - } - if self.utteranceLengthSeconds != 0 { - try visitor.visitSingularInt32Field(value: self.utteranceLengthSeconds, fieldNumber: 3) - } - if self.utteranceLengthChars != 0 { - try visitor.visitSingularInt32Field(value: self.utteranceLengthChars, fieldNumber: 4) - } - try { if let v = self._decoderInfo { - try visitor.visitSingularMessageField(value: v, fieldNumber: 5) - } }() - try { if let v = self._createdTime { - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) - } }() - try { if let v = self._finishedTime { - try visitor.visitSingularMessageField(value: v, fieldNumber: 7) - } }() - if self.status != .invalid { - try visitor.visitSingularEnumField(value: self.status, fieldNumber: 8) - } - if !self.operationID.isEmpty { - try visitor.visitSingularStringField(value: self.operationID, fieldNumber: 9) - } - if !self.batchID.isEmpty { - try visitor.visitSingularStringField(value: self.batchID, fieldNumber: 10) + 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._appID.isEmpty { + try visitor.visitSingularStringField(value: _storage._appID, fieldNumber: 1) + } + if !_storage._deviceID.isEmpty { + try visitor.visitSingularStringField(value: _storage._deviceID, fieldNumber: 2) + } + if _storage._utteranceLengthSeconds != 0 { + try visitor.visitSingularInt32Field(value: _storage._utteranceLengthSeconds, fieldNumber: 3) + } + if _storage._utteranceLengthChars != 0 { + try visitor.visitSingularInt32Field(value: _storage._utteranceLengthChars, fieldNumber: 4) + } + try { if let v = _storage._decoderInfo { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } }() + try { if let v = _storage._createdTime { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + } }() + try { if let v = _storage._finishedTime { + try visitor.visitSingularMessageField(value: v, fieldNumber: 7) + } }() + if _storage._status != .invalid { + try visitor.visitSingularEnumField(value: _storage._status, fieldNumber: 8) + } + if !_storage._operationID.isEmpty { + try visitor.visitSingularStringField(value: _storage._operationID, fieldNumber: 9) + } + if !_storage._batchID.isEmpty { + try visitor.visitSingularStringField(value: _storage._batchID, fieldNumber: 10) + } + if !_storage._projectID.isEmpty { + try visitor.visitSingularStringField(value: _storage._projectID, fieldNumber: 11) + } + if !_storage._language.isEmpty { + try visitor.visitSingularStringField(value: _storage._language, fieldNumber: 12) + } + try { if let v = _storage._processingInfo { + try visitor.visitSingularMessageField(value: v, fieldNumber: 13) + } }() } try unknownFields.traverse(visitor: &visitor) } public static func ==(lhs: Speechly_Analytics_V1_RegisterUtteranceRequest, rhs: Speechly_Analytics_V1_RegisterUtteranceRequest) -> Bool { - if lhs.appID != rhs.appID {return false} - if lhs.deviceID != rhs.deviceID {return false} - if lhs.utteranceLengthSeconds != rhs.utteranceLengthSeconds {return false} - if lhs.utteranceLengthChars != rhs.utteranceLengthChars {return false} - if lhs._decoderInfo != rhs._decoderInfo {return false} - if lhs._createdTime != rhs._createdTime {return false} - if lhs._finishedTime != rhs._finishedTime {return false} - if lhs.status != rhs.status {return false} - if lhs.operationID != rhs.operationID {return false} - if lhs.batchID != rhs.batchID {return false} + 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._appID != rhs_storage._appID {return false} + if _storage._deviceID != rhs_storage._deviceID {return false} + if _storage._utteranceLengthSeconds != rhs_storage._utteranceLengthSeconds {return false} + if _storage._utteranceLengthChars != rhs_storage._utteranceLengthChars {return false} + if _storage._decoderInfo != rhs_storage._decoderInfo {return false} + if _storage._createdTime != rhs_storage._createdTime {return false} + if _storage._finishedTime != rhs_storage._finishedTime {return false} + if _storage._status != rhs_storage._status {return false} + if _storage._operationID != rhs_storage._operationID {return false} + if _storage._batchID != rhs_storage._batchID {return false} + if _storage._projectID != rhs_storage._projectID {return false} + if _storage._language != rhs_storage._language {return false} + if _storage._processingInfo != rhs_storage._processingInfo {return false} + return true + } + if !storagesAreEqual {return false} + } if lhs.unknownFields != rhs.unknownFields {return false} return true } diff --git a/Sources/SpeechlyAPI/speechly_slu_v2beta1_batch.pb.swift b/Sources/SpeechlyAPI/speechly_slu_v2beta1_batch.pb.swift index 5f8bd45..7217014 100644 --- a/Sources/SpeechlyAPI/speechly_slu_v2beta1_batch.pb.swift +++ b/Sources/SpeechlyAPI/speechly_slu_v2beta1_batch.pb.swift @@ -32,7 +32,7 @@ public struct Speechly_Slu_V2beta1_HttpResource { /// method to use in connection. /// Optional. - public var method: Speechly_Slu_V2beta1_HttpResource.Method = .invalid + public var method: Speechly_Slu_V2beta1_HttpResource.Method = .unspecified /// Possible additional headers to include in the connection. /// Optional. @@ -43,19 +43,19 @@ public struct Speechly_Slu_V2beta1_HttpResource { /// The HTTP method to use. public enum Method: SwiftProtobuf.Enum { public typealias RawValue = Int - case invalid // = 0 + case unspecified // = 0 case get // = 1 case post // = 2 case put // = 3 case UNRECOGNIZED(Int) public init() { - self = .invalid + self = .unspecified } public init?(rawValue: Int) { switch rawValue { - case 0: self = .invalid + case 0: self = .unspecified case 1: self = .get case 2: self = .post case 3: self = .put @@ -65,7 +65,7 @@ public struct Speechly_Slu_V2beta1_HttpResource { public var rawValue: Int { switch self { - case .invalid: return 0 + case .unspecified: return 0 case .get: return 1 case .post: return 2 case .put: return 3 @@ -98,7 +98,7 @@ public struct Speechly_Slu_V2beta1_HttpResource { extension Speechly_Slu_V2beta1_HttpResource.Method: CaseIterable { // The compiler won't synthesize support with the UNRECOGNIZED case. public static var allCases: [Speechly_Slu_V2beta1_HttpResource.Method] = [ - .invalid, + .unspecified, .get, .post, .put, @@ -134,8 +134,8 @@ public struct Speechly_Slu_V2beta1_ProcessAudioBatchConfig { /// Clears the value of `processingConfig`. Subsequent reads from it will return its default value. public mutating func clearProcessingConfig() {self._processingConfig = nil} - /// Reference id for a set of related operations. For example an identifier of the source - /// system. + /// Reference id for a set of related operations. For example an identifier of + /// the source system. Optional. /// Optional. public var batchReference: String = String() @@ -181,7 +181,8 @@ public struct Speechly_Slu_V2beta1_ProcessAudioSourceRequestItem { /// Optional. public var reference: String = String() - /// The device ID of the audio source, for example a microphone identifier as UUID. + /// The device ID of the audio source, for example a microphone identifier as + /// UUID. /// Optional. public var deviceID: String = String() @@ -192,21 +193,26 @@ public struct Speechly_Slu_V2beta1_ProcessAudioSourceRequestItem { fileprivate var _completionWebhook: Speechly_Slu_V2beta1_HttpResource? = nil } -/// Describes the processing options for the audio. Note that not all options are available for -/// all languages or on all Payment Plans. +/// Describes the processing options for the audio. Note that not all options are +/// available for all languages or on all Payment Plans. public struct Speechly_Slu_V2beta1_ProcessingConfiguration { // 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. - /// The processing should include the token level transcription and determination of time stamps for tokens. + /// The processing should include the token level transcription and + /// determination of time stamps for tokens. + /// Optional. public var tokenize: Bool = false /// The processing should include translating the audio to English. + /// Optional. public var translate: Bool = false - /// The processing should not include transcribing the audio to the source language. This option should be used - /// with translate (or other similar option) to suppress the normal Speech Recognition processing. + /// The processing should not include transcribing the audio to the source + /// language. This option should be used with translate (or other similar + /// option) to suppress the normal Speech Recognition processing. + /// Optional. public var skipTranscribe: Bool = false public var unknownFields = SwiftProtobuf.UnknownStorage() @@ -233,7 +239,7 @@ public struct Speechly_Slu_V2beta1_Operation { public var batchReference: String = String() /// The current status of the operation. - public var status: Speechly_Slu_V2beta1_Operation.Status = .invalid + public var status: Speechly_Slu_V2beta1_Operation.Status = .unspecified /// The language code of the detected language. public var languageCode: String = String() @@ -255,10 +261,10 @@ public struct Speechly_Slu_V2beta1_Operation { /// Clears the value of `duration`. Subsequent reads from it will return its default value. public mutating func clearDuration() {self._duration = nil} - public var errorCode: Speechly_Slu_V2beta1_Operation.OperationError = .invalid + public var errorCode: Speechly_Slu_V2beta1_Operation.ErrorCode = .errorUnspecified - /// Contains a human readable description of the error if the operation status is - /// STATUS_ERROR. + /// Contains a human readable description of the error if the operation status + /// is STATUS_ERROR. public var errorDescription: String = String() /// The locator to the source audio. @@ -274,7 +280,7 @@ public struct Speechly_Slu_V2beta1_Operation { public typealias RawValue = Int /// Default status is empty. - case invalid // = 0 + case unspecified // = 0 /// The operation is queued for processing. case pending // = 1 @@ -287,12 +293,12 @@ public struct Speechly_Slu_V2beta1_Operation { case UNRECOGNIZED(Int) public init() { - self = .invalid + self = .unspecified } public init?(rawValue: Int) { switch rawValue { - case 0: self = .invalid + case 0: self = .unspecified case 1: self = .pending case 2: self = .done case 3: self = .error @@ -302,7 +308,7 @@ public struct Speechly_Slu_V2beta1_Operation { public var rawValue: Int { switch self { - case .invalid: return 0 + case .unspecified: return 0 case .pending: return 1 case .done: return 2 case .error: return 3 @@ -314,50 +320,55 @@ public struct Speechly_Slu_V2beta1_Operation { /// Contains a machine readable error type if the operation status is /// STATUS_ERROR. - public enum OperationError: SwiftProtobuf.Enum { + public enum ErrorCode: SwiftProtobuf.Enum { public typealias RawValue = Int - case invalid // = 0 + case errorUnspecified // = 0 /// The input was in a language that was not supported in this context. - case unsupportedLanguage // = 1 + case errorUnsupportedLanguage // = 1 /// An internal error occurred. - case `internal` // = 2 + case errorInternal // = 2 + + /// Given parameters cannot be used to process the given input. + case errorInvalidParameters // = 3 /// The source could not be read or understood. - case invalidSource // = 4 + case errorInvalidSource // = 4 /// The results could not be written to the destination. - case invalidDestination // = 5 + case errorInvalidDestination // = 5 /// The provided audio was not in a supported format. - case invalidAudio // = 6 + case errorInvalidAudio // = 6 case UNRECOGNIZED(Int) public init() { - self = .invalid + self = .errorUnspecified } public init?(rawValue: Int) { switch rawValue { - case 0: self = .invalid - case 1: self = .unsupportedLanguage - case 2: self = .internal - case 4: self = .invalidSource - case 5: self = .invalidDestination - case 6: self = .invalidAudio + case 0: self = .errorUnspecified + case 1: self = .errorUnsupportedLanguage + case 2: self = .errorInternal + case 3: self = .errorInvalidParameters + case 4: self = .errorInvalidSource + case 5: self = .errorInvalidDestination + case 6: self = .errorInvalidAudio default: self = .UNRECOGNIZED(rawValue) } } public var rawValue: Int { switch self { - case .invalid: return 0 - case .unsupportedLanguage: return 1 - case .internal: return 2 - case .invalidSource: return 4 - case .invalidDestination: return 5 - case .invalidAudio: return 6 + case .errorUnspecified: return 0 + case .errorUnsupportedLanguage: return 1 + case .errorInternal: return 2 + case .errorInvalidParameters: return 3 + case .errorInvalidSource: return 4 + case .errorInvalidDestination: return 5 + case .errorInvalidAudio: return 6 case .UNRECOGNIZED(let i): return i } } @@ -374,22 +385,23 @@ public struct Speechly_Slu_V2beta1_Operation { extension Speechly_Slu_V2beta1_Operation.Status: CaseIterable { // The compiler won't synthesize support with the UNRECOGNIZED case. public static var allCases: [Speechly_Slu_V2beta1_Operation.Status] = [ - .invalid, + .unspecified, .pending, .done, .error, ] } -extension Speechly_Slu_V2beta1_Operation.OperationError: CaseIterable { +extension Speechly_Slu_V2beta1_Operation.ErrorCode: CaseIterable { // The compiler won't synthesize support with the UNRECOGNIZED case. - public static var allCases: [Speechly_Slu_V2beta1_Operation.OperationError] = [ - .invalid, - .unsupportedLanguage, - .internal, - .invalidSource, - .invalidDestination, - .invalidAudio, + public static var allCases: [Speechly_Slu_V2beta1_Operation.ErrorCode] = [ + .errorUnspecified, + .errorUnsupportedLanguage, + .errorInternal, + .errorInvalidParameters, + .errorInvalidSource, + .errorInvalidDestination, + .errorInvalidAudio, ] } @@ -402,12 +414,13 @@ public struct Speechly_Slu_V2beta1_OperationResult { // methods supported on all messages. /// The type of this result. - public var type: Speechly_Slu_V2beta1_OperationResult.ResultType = .invalid + public var type: Speechly_Slu_V2beta1_OperationResult.ResultType = .unspecified /// The textual representation of the results. public var text: String = String() - /// The tokenized representation of the result. Only available if requested in the `ProcessingConfiguration`. + /// The tokenized representation of the result. Only available if requested in + /// the `ProcessingConfiguration`. public var tokens: [Speechly_Slu_V2beta1_Token] = [] public var unknownFields = SwiftProtobuf.UnknownStorage() @@ -415,13 +428,13 @@ public struct Speechly_Slu_V2beta1_OperationResult { /// The possible types for the operation result. public enum ResultType: SwiftProtobuf.Enum { public typealias RawValue = Int - case invalid // = 0 + case unspecified // = 0 /// The actual words of the audio with no additional processing applied. case transcriptLexical // = 1 - /// The content of the audio formatted to be displayed on screen, with eg. punctuation - /// and capitalization included. + /// The content of the audio formatted to be displayed on screen, with eg. + /// punctuation and capitalization included. case transcriptDisplay // = 2 /// The content of the audio translated to English. @@ -429,12 +442,12 @@ public struct Speechly_Slu_V2beta1_OperationResult { case UNRECOGNIZED(Int) public init() { - self = .invalid + self = .unspecified } public init?(rawValue: Int) { switch rawValue { - case 0: self = .invalid + case 0: self = .unspecified case 1: self = .transcriptLexical case 2: self = .transcriptDisplay case 3: self = .transcriptTranslation @@ -444,7 +457,7 @@ public struct Speechly_Slu_V2beta1_OperationResult { public var rawValue: Int { switch self { - case .invalid: return 0 + case .unspecified: return 0 case .transcriptLexical: return 1 case .transcriptDisplay: return 2 case .transcriptTranslation: return 3 @@ -462,7 +475,7 @@ public struct Speechly_Slu_V2beta1_OperationResult { extension Speechly_Slu_V2beta1_OperationResult.ResultType: CaseIterable { // The compiler won't synthesize support with the UNRECOGNIZED case. public static var allCases: [Speechly_Slu_V2beta1_OperationResult.ResultType] = [ - .invalid, + .unspecified, .transcriptLexical, .transcriptDisplay, .transcriptTranslation, @@ -471,8 +484,8 @@ extension Speechly_Slu_V2beta1_OperationResult.ResultType: CaseIterable { #endif // swift(>=4.2) -/// Describes a single meaningful unit of speech. In languages that use spaces to separate words, -/// closely maps to those words. +/// Describes a single meaningful unit of speech. In languages that use spaces to +/// separate words, closely maps to those words. public struct Speechly_Slu_V2beta1_Token { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for @@ -523,7 +536,7 @@ extension Speechly_Slu_V2beta1_ProcessAudioSourceRequestItem: @unchecked Sendabl extension Speechly_Slu_V2beta1_ProcessingConfiguration: @unchecked Sendable {} extension Speechly_Slu_V2beta1_Operation: @unchecked Sendable {} extension Speechly_Slu_V2beta1_Operation.Status: @unchecked Sendable {} -extension Speechly_Slu_V2beta1_Operation.OperationError: @unchecked Sendable {} +extension Speechly_Slu_V2beta1_Operation.ErrorCode: @unchecked Sendable {} extension Speechly_Slu_V2beta1_OperationResult: @unchecked Sendable {} extension Speechly_Slu_V2beta1_OperationResult.ResultType: @unchecked Sendable {} extension Speechly_Slu_V2beta1_Token: @unchecked Sendable {} @@ -560,7 +573,7 @@ extension Speechly_Slu_V2beta1_HttpResource: SwiftProtobuf.Message, SwiftProtobu if !self.url.isEmpty { try visitor.visitSingularStringField(value: self.url, fieldNumber: 1) } - if self.method != .invalid { + if self.method != .unspecified { try visitor.visitSingularEnumField(value: self.method, fieldNumber: 2) } if !self.headers.isEmpty { @@ -580,7 +593,7 @@ extension Speechly_Slu_V2beta1_HttpResource: SwiftProtobuf.Message, SwiftProtobu extension Speechly_Slu_V2beta1_HttpResource.Method: SwiftProtobuf._ProtoNameProviding { public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "METHOD_INVALID"), + 0: .same(proto: "METHOD_UNSPECIFIED"), 1: .same(proto: "METHOD_GET"), 2: .same(proto: "METHOD_POST"), 3: .same(proto: "METHOD_PUT"), @@ -842,7 +855,7 @@ extension Speechly_Slu_V2beta1_Operation: SwiftProtobuf.Message, SwiftProtobuf._ if !self.reference.isEmpty { try visitor.visitSingularStringField(value: self.reference, fieldNumber: 2) } - if self.status != .invalid { + if self.status != .unspecified { try visitor.visitSingularEnumField(value: self.status, fieldNumber: 3) } if !self.languageCode.isEmpty { @@ -863,7 +876,7 @@ extension Speechly_Slu_V2beta1_Operation: SwiftProtobuf.Message, SwiftProtobuf._ if !self.batchReference.isEmpty { try visitor.visitSingularStringField(value: self.batchReference, fieldNumber: 17) } - if self.errorCode != .invalid { + if self.errorCode != .errorUnspecified { try visitor.visitSingularEnumField(value: self.errorCode, fieldNumber: 18) } if !self.errorDescription.isEmpty { @@ -899,21 +912,22 @@ extension Speechly_Slu_V2beta1_Operation: SwiftProtobuf.Message, SwiftProtobuf._ extension Speechly_Slu_V2beta1_Operation.Status: SwiftProtobuf._ProtoNameProviding { public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "STATUS_INVALID"), + 0: .same(proto: "STATUS_UNSPECIFIED"), 1: .same(proto: "STATUS_PENDING"), 2: .same(proto: "STATUS_DONE"), 3: .same(proto: "STATUS_ERROR"), ] } -extension Speechly_Slu_V2beta1_Operation.OperationError: SwiftProtobuf._ProtoNameProviding { +extension Speechly_Slu_V2beta1_Operation.ErrorCode: SwiftProtobuf._ProtoNameProviding { public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "OPERATION_ERROR_INVALID"), - 1: .same(proto: "OPERATION_ERROR_UNSUPPORTED_LANGUAGE"), - 2: .same(proto: "OPERATION_ERROR_INTERNAL"), - 4: .same(proto: "OPERATION_ERROR_INVALID_SOURCE"), - 5: .same(proto: "OPERATION_ERROR_INVALID_DESTINATION"), - 6: .same(proto: "OPERATION_ERROR_INVALID_AUDIO"), + 0: .same(proto: "ERROR_UNSPECIFIED"), + 1: .same(proto: "ERROR_UNSUPPORTED_LANGUAGE"), + 2: .same(proto: "ERROR_INTERNAL"), + 3: .same(proto: "ERROR_INVALID_PARAMETERS"), + 4: .same(proto: "ERROR_INVALID_SOURCE"), + 5: .same(proto: "ERROR_INVALID_DESTINATION"), + 6: .same(proto: "ERROR_INVALID_AUDIO"), ] } @@ -940,7 +954,7 @@ extension Speechly_Slu_V2beta1_OperationResult: SwiftProtobuf.Message, SwiftProt } public func traverse(visitor: inout V) throws { - if self.type != .invalid { + if self.type != .unspecified { try visitor.visitSingularEnumField(value: self.type, fieldNumber: 1) } if !self.text.isEmpty { @@ -963,7 +977,7 @@ extension Speechly_Slu_V2beta1_OperationResult: SwiftProtobuf.Message, SwiftProt extension Speechly_Slu_V2beta1_OperationResult.ResultType: SwiftProtobuf._ProtoNameProviding { public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "RESULT_TYPE_INVALID"), + 0: .same(proto: "RESULT_TYPE_UNSPECIFIED"), 1: .same(proto: "RESULT_TYPE_TRANSCRIPT_LEXICAL"), 2: .same(proto: "RESULT_TYPE_TRANSCRIPT_DISPLAY"), 3: .same(proto: "RESULT_TYPE_TRANSCRIPT_TRANSLATION"), diff --git a/cpp/Speechly/speechly/analytics/v1/analytics.pb.cc b/cpp/Speechly/speechly/analytics/v1/analytics.pb.cc index 15f979a..1fe92cb 100644 --- a/cpp/Speechly/speechly/analytics/v1/analytics.pb.cc +++ b/cpp/Speechly/speechly/analytics/v1/analytics.pb.cc @@ -64,11 +64,25 @@ struct DecoderInfoDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT DecoderInfoDefaultTypeInternal _DecoderInfo_default_instance_; +constexpr ProcessingInfo::ProcessingInfo( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : processing_types_() + , _processing_types_cached_byte_size_(0) + , model_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +struct ProcessingInfoDefaultTypeInternal { + constexpr ProcessingInfoDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~ProcessingInfoDefaultTypeInternal() {} + union { + ProcessingInfo _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ProcessingInfoDefaultTypeInternal _ProcessingInfo_default_instance_; } // namespace v1 } // namespace analytics } // namespace speechly -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_speechly_2fanalytics_2fv1_2fanalytics_2eproto[3]; -static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_speechly_2fanalytics_2fv1_2fanalytics_2eproto[1]; +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_speechly_2fanalytics_2fv1_2fanalytics_2eproto[4]; +static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_speechly_2fanalytics_2fv1_2fanalytics_2eproto[2]; static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_speechly_2fanalytics_2fv1_2fanalytics_2eproto = nullptr; const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_speechly_2fanalytics_2fv1_2fanalytics_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { @@ -99,17 +113,26 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_speechly_2fanalytics_2fv1_2fan PROTOBUF_FIELD_OFFSET(::speechly::analytics::v1::DecoderInfo, version_), PROTOBUF_FIELD_OFFSET(::speechly::analytics::v1::DecoderInfo, utterance_count_), PROTOBUF_FIELD_OFFSET(::speechly::analytics::v1::DecoderInfo, total_seconds_transcribed_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::speechly::analytics::v1::ProcessingInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::speechly::analytics::v1::ProcessingInfo, processing_types_), + PROTOBUF_FIELD_OFFSET(::speechly::analytics::v1::ProcessingInfo, model_id_), }; static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::speechly::analytics::v1::UtteranceStatisticsPeriod)}, { 11, -1, sizeof(::speechly::analytics::v1::Utterance)}, { 19, -1, sizeof(::speechly::analytics::v1::DecoderInfo)}, + { 27, -1, sizeof(::speechly::analytics::v1::ProcessingInfo)}, }; static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { reinterpret_cast(&::speechly::analytics::v1::_UtteranceStatisticsPeriod_default_instance_), reinterpret_cast(&::speechly::analytics::v1::_Utterance_default_instance_), reinterpret_cast(&::speechly::analytics::v1::_DecoderInfo_default_instance_), + reinterpret_cast(&::speechly::analytics::v1::_ProcessingInfo_default_instance_), }; const char descriptor_table_protodef_speechly_2fanalytics_2fv1_2fanalytics_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = @@ -122,18 +145,29 @@ const char descriptor_table_protodef_speechly_2fanalytics_2fv1_2fanalytics_2epro "cript\030\001 \001(\t\022\021\n\tannotated\030\002 \001(\t\022\014\n\004date\030\003" " \001(\t\"Z\n\013DecoderInfo\022\017\n\007version\030\001 \001(\t\022\027\n\017" "utterance_count\030\002 \001(\005\022!\n\031total_seconds_t" - "ranscribed\030\003 \001(\005*n\n\013Aggregation\022\027\n\023AGGRE" - "GATION_INVALID\020\000\022\027\n\023AGGREGATION_MONTHLY\020" - "\001\022\025\n\021AGGREGATION_DAILY\020\002\022\026\n\022AGGREGATION_" - "HOURLY\020\003B\206\001\n\031com.speechly.analytics.v1B\016" - "AnalyticsProtoP\001Z!speechly/analytics/v1;" - "analyticsv1\242\002\003SAX\252\002\025Speechly.Analytics.V" - "1\312\002\025Speechly\\Analytics\\V1b\006proto3" + "ranscribed\030\003 \001(\005\"c\n\016ProcessingInfo\022\?\n\020pr" + "ocessing_types\030\001 \003(\0162%.speechly.analytic" + "s.v1.ProcessingType\022\020\n\010model_id\030\002 \001(\t*n\n" + "\013Aggregation\022\027\n\023AGGREGATION_INVALID\020\000\022\027\n" + "\023AGGREGATION_MONTHLY\020\001\022\025\n\021AGGREGATION_DA" + "ILY\020\002\022\026\n\022AGGREGATION_HOURLY\020\003*\307\002\n\016Proces" + "singType\022\033\n\027PROCESSING_TYPE_INVALID\020\000\022!\n" + "\035PROCESSING_TYPE_TRANSCRIPTION\020\001\022\027\n\023PROC" + "ESSING_TYPE_NLU\020\002\022&\n\"PROCESSING_TYPE_LAN" + "GUAGE_DETECTION\020\003\022\027\n\023PROCESSING_TYPE_VAD" + "\020\004\022\037\n\033PROCESSING_TYPE_TRANSLATION\020\005\022)\n%P" + "ROCESSING_TYPE_AUDIO_EVENT_DETECTION\020\006\022+" + "\n\'PROCESSING_TYPE_TONE_OF_VOICE_LABELLIN" + "G\020\007\022\"\n\036PROCESSING_TYPE_SHALLOW_FUSION\020\010B" + "\206\001\n\031com.speechly.analytics.v1B\016Analytics" + "ProtoP\001Z!speechly/analytics/v1;analytics" + "v1\242\002\003SAX\252\002\025Speechly.Analytics.V1\312\002\025Speec" + "hly\\Analytics\\V1b\006proto3" ; static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_speechly_2fanalytics_2fv1_2fanalytics_2eproto_once; const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_speechly_2fanalytics_2fv1_2fanalytics_2eproto = { - false, false, 633, descriptor_table_protodef_speechly_2fanalytics_2fv1_2fanalytics_2eproto, "speechly/analytics/v1/analytics.proto", - &descriptor_table_speechly_2fanalytics_2fv1_2fanalytics_2eproto_once, nullptr, 0, 3, + false, false, 1064, descriptor_table_protodef_speechly_2fanalytics_2fv1_2fanalytics_2eproto, "speechly/analytics/v1/analytics.proto", + &descriptor_table_speechly_2fanalytics_2fv1_2fanalytics_2eproto_once, nullptr, 0, 4, schemas, file_default_instances, TableStruct_speechly_2fanalytics_2fv1_2fanalytics_2eproto::offsets, file_level_metadata_speechly_2fanalytics_2fv1_2fanalytics_2eproto, file_level_enum_descriptors_speechly_2fanalytics_2fv1_2fanalytics_2eproto, file_level_service_descriptors_speechly_2fanalytics_2fv1_2fanalytics_2eproto, }; @@ -162,6 +196,27 @@ bool Aggregation_IsValid(int value) { } } +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ProcessingType_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_speechly_2fanalytics_2fv1_2fanalytics_2eproto); + return file_level_enum_descriptors_speechly_2fanalytics_2fv1_2fanalytics_2eproto[1]; +} +bool ProcessingType_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + return true; + default: + return false; + } +} + // =================================================================== @@ -1078,6 +1133,249 @@ ::PROTOBUF_NAMESPACE_ID::Metadata DecoderInfo::GetMetadata() const { file_level_metadata_speechly_2fanalytics_2fv1_2fanalytics_2eproto[2]); } +// =================================================================== + +class ProcessingInfo::_Internal { + public: +}; + +ProcessingInfo::ProcessingInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + processing_types_(arena) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:speechly.analytics.v1.ProcessingInfo) +} +ProcessingInfo::ProcessingInfo(const ProcessingInfo& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + processing_types_(from.processing_types_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + model_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_model_id().empty()) { + model_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_model_id(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:speechly.analytics.v1.ProcessingInfo) +} + +inline void ProcessingInfo::SharedCtor() { +model_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +ProcessingInfo::~ProcessingInfo() { + // @@protoc_insertion_point(destructor:speechly.analytics.v1.ProcessingInfo) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void ProcessingInfo::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + model_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void ProcessingInfo::ArenaDtor(void* object) { + ProcessingInfo* _this = reinterpret_cast< ProcessingInfo* >(object); + (void)_this; +} +void ProcessingInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ProcessingInfo::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ProcessingInfo::Clear() { +// @@protoc_insertion_point(message_clear_start:speechly.analytics.v1.ProcessingInfo) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + processing_types_.Clear(); + model_id_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ProcessingInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // repeated .speechly.analytics.v1.ProcessingType processing_types = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_processing_types(), ptr, ctx); + CHK_(ptr); + } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_add_processing_types(static_cast<::speechly::analytics::v1::ProcessingType>(val)); + } else goto handle_unusual; + continue; + // string model_id = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_model_id(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "speechly.analytics.v1.ProcessingInfo.model_id")); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ProcessingInfo::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:speechly.analytics.v1.ProcessingInfo) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .speechly.analytics.v1.ProcessingType processing_types = 1; + { + int byte_size = _processing_types_cached_byte_size_.load(std::memory_order_relaxed); + if (byte_size > 0) { + target = stream->WriteEnumPacked( + 1, processing_types_, byte_size, target); + } + } + + // string model_id = 2; + if (!this->_internal_model_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_model_id().data(), static_cast(this->_internal_model_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "speechly.analytics.v1.ProcessingInfo.model_id"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_model_id(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:speechly.analytics.v1.ProcessingInfo) + return target; +} + +size_t ProcessingInfo::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:speechly.analytics.v1.ProcessingInfo) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .speechly.analytics.v1.ProcessingType processing_types = 1; + { + size_t data_size = 0; + unsigned int count = static_cast(this->_internal_processing_types_size());for (unsigned int i = 0; i < count; i++) { + data_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize( + this->_internal_processing_types(static_cast(i))); + } + if (data_size > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); + _processing_types_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; + } + + // string model_id = 2; + if (!this->_internal_model_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_model_id()); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ProcessingInfo::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ProcessingInfo::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ProcessingInfo::GetClassData() const { return &_class_data_; } + +void ProcessingInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message*to, + const ::PROTOBUF_NAMESPACE_ID::Message&from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void ProcessingInfo::MergeFrom(const ProcessingInfo& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:speechly.analytics.v1.ProcessingInfo) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + processing_types_.MergeFrom(from.processing_types_); + if (!from._internal_model_id().empty()) { + _internal_set_model_id(from._internal_model_id()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ProcessingInfo::CopyFrom(const ProcessingInfo& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:speechly.analytics.v1.ProcessingInfo) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ProcessingInfo::IsInitialized() const { + return true; +} + +void ProcessingInfo::InternalSwap(ProcessingInfo* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + processing_types_.InternalSwap(&other->processing_types_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &model_id_, GetArenaForAllocation(), + &other->model_id_, other->GetArenaForAllocation() + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ProcessingInfo::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_speechly_2fanalytics_2fv1_2fanalytics_2eproto_getter, &descriptor_table_speechly_2fanalytics_2fv1_2fanalytics_2eproto_once, + file_level_metadata_speechly_2fanalytics_2fv1_2fanalytics_2eproto[3]); +} + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace analytics @@ -1092,6 +1390,9 @@ template<> PROTOBUF_NOINLINE ::speechly::analytics::v1::Utterance* Arena::Create template<> PROTOBUF_NOINLINE ::speechly::analytics::v1::DecoderInfo* Arena::CreateMaybeMessage< ::speechly::analytics::v1::DecoderInfo >(Arena* arena) { return Arena::CreateMessageInternal< ::speechly::analytics::v1::DecoderInfo >(arena); } +template<> PROTOBUF_NOINLINE ::speechly::analytics::v1::ProcessingInfo* Arena::CreateMaybeMessage< ::speechly::analytics::v1::ProcessingInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::speechly::analytics::v1::ProcessingInfo >(arena); +} PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) diff --git a/cpp/Speechly/speechly/analytics/v1/analytics.pb.h b/cpp/Speechly/speechly/analytics/v1/analytics.pb.h index db16e6a..56dec3a 100644 --- a/cpp/Speechly/speechly/analytics/v1/analytics.pb.h +++ b/cpp/Speechly/speechly/analytics/v1/analytics.pb.h @@ -47,7 +47,7 @@ struct TableStruct_speechly_2fanalytics_2fv1_2fanalytics_2eproto { PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3] + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[4] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; @@ -60,6 +60,9 @@ namespace v1 { class DecoderInfo; struct DecoderInfoDefaultTypeInternal; extern DecoderInfoDefaultTypeInternal _DecoderInfo_default_instance_; +class ProcessingInfo; +struct ProcessingInfoDefaultTypeInternal; +extern ProcessingInfoDefaultTypeInternal _ProcessingInfo_default_instance_; class Utterance; struct UtteranceDefaultTypeInternal; extern UtteranceDefaultTypeInternal _Utterance_default_instance_; @@ -71,6 +74,7 @@ extern UtteranceStatisticsPeriodDefaultTypeInternal _UtteranceStatisticsPeriod_d } // namespace speechly PROTOBUF_NAMESPACE_OPEN template<> ::speechly::analytics::v1::DecoderInfo* Arena::CreateMaybeMessage<::speechly::analytics::v1::DecoderInfo>(Arena*); +template<> ::speechly::analytics::v1::ProcessingInfo* Arena::CreateMaybeMessage<::speechly::analytics::v1::ProcessingInfo>(Arena*); template<> ::speechly::analytics::v1::Utterance* Arena::CreateMaybeMessage<::speechly::analytics::v1::Utterance>(Arena*); template<> ::speechly::analytics::v1::UtteranceStatisticsPeriod* Arena::CreateMaybeMessage<::speechly::analytics::v1::UtteranceStatisticsPeriod>(Arena*); PROTOBUF_NAMESPACE_CLOSE @@ -105,6 +109,38 @@ inline bool Aggregation_Parse( return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( Aggregation_descriptor(), name, value); } +enum ProcessingType : int { + PROCESSING_TYPE_INVALID = 0, + PROCESSING_TYPE_TRANSCRIPTION = 1, + PROCESSING_TYPE_NLU = 2, + PROCESSING_TYPE_LANGUAGE_DETECTION = 3, + PROCESSING_TYPE_VAD = 4, + PROCESSING_TYPE_TRANSLATION = 5, + PROCESSING_TYPE_AUDIO_EVENT_DETECTION = 6, + PROCESSING_TYPE_TONE_OF_VOICE_LABELLING = 7, + PROCESSING_TYPE_SHALLOW_FUSION = 8, + ProcessingType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), + ProcessingType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() +}; +bool ProcessingType_IsValid(int value); +constexpr ProcessingType ProcessingType_MIN = PROCESSING_TYPE_INVALID; +constexpr ProcessingType ProcessingType_MAX = PROCESSING_TYPE_SHALLOW_FUSION; +constexpr int ProcessingType_ARRAYSIZE = ProcessingType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ProcessingType_descriptor(); +template +inline const std::string& ProcessingType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function ProcessingType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + ProcessingType_descriptor(), enum_t_value); +} +inline bool ProcessingType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ProcessingType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + ProcessingType_descriptor(), name, value); +} // =================================================================== class UtteranceStatisticsPeriod final : @@ -656,6 +692,170 @@ class DecoderInfo final : mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_speechly_2fanalytics_2fv1_2fanalytics_2eproto; }; +// ------------------------------------------------------------------- + +class ProcessingInfo final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:speechly.analytics.v1.ProcessingInfo) */ { + public: + inline ProcessingInfo() : ProcessingInfo(nullptr) {} + ~ProcessingInfo() override; + explicit constexpr ProcessingInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ProcessingInfo(const ProcessingInfo& from); + ProcessingInfo(ProcessingInfo&& from) noexcept + : ProcessingInfo() { + *this = ::std::move(from); + } + + inline ProcessingInfo& operator=(const ProcessingInfo& from) { + CopyFrom(from); + return *this; + } + inline ProcessingInfo& operator=(ProcessingInfo&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena()) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ProcessingInfo& default_instance() { + return *internal_default_instance(); + } + static inline const ProcessingInfo* internal_default_instance() { + return reinterpret_cast( + &_ProcessingInfo_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(ProcessingInfo& a, ProcessingInfo& b) { + a.Swap(&b); + } + inline void Swap(ProcessingInfo* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ProcessingInfo* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ProcessingInfo* New() const final { + return new ProcessingInfo(); + } + + ProcessingInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ProcessingInfo& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ProcessingInfo& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message*to, const ::PROTOBUF_NAMESPACE_ID::Message&from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ProcessingInfo* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "speechly.analytics.v1.ProcessingInfo"; + } + protected: + explicit ProcessingInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kProcessingTypesFieldNumber = 1, + kModelIdFieldNumber = 2, + }; + // repeated .speechly.analytics.v1.ProcessingType processing_types = 1; + int processing_types_size() const; + private: + int _internal_processing_types_size() const; + public: + void clear_processing_types(); + private: + ::speechly::analytics::v1::ProcessingType _internal_processing_types(int index) const; + void _internal_add_processing_types(::speechly::analytics::v1::ProcessingType value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField* _internal_mutable_processing_types(); + public: + ::speechly::analytics::v1::ProcessingType processing_types(int index) const; + void set_processing_types(int index, ::speechly::analytics::v1::ProcessingType value); + void add_processing_types(::speechly::analytics::v1::ProcessingType value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField& processing_types() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField* mutable_processing_types(); + + // string model_id = 2; + void clear_model_id(); + const std::string& model_id() const; + template + void set_model_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_model_id(); + PROTOBUF_MUST_USE_RESULT std::string* release_model_id(); + void set_allocated_model_id(std::string* model_id); + private: + const std::string& _internal_model_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_model_id(const std::string& value); + std::string* _internal_mutable_model_id(); + public: + + // @@protoc_insertion_point(class_scope:speechly.analytics.v1.ProcessingInfo) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField processing_types_; + mutable std::atomic _processing_types_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr model_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_speechly_2fanalytics_2fv1_2fanalytics_2eproto; +}; // =================================================================== @@ -1097,6 +1297,99 @@ inline void DecoderInfo::set_total_seconds_transcribed(::PROTOBUF_NAMESPACE_ID:: // @@protoc_insertion_point(field_set:speechly.analytics.v1.DecoderInfo.total_seconds_transcribed) } +// ------------------------------------------------------------------- + +// ProcessingInfo + +// repeated .speechly.analytics.v1.ProcessingType processing_types = 1; +inline int ProcessingInfo::_internal_processing_types_size() const { + return processing_types_.size(); +} +inline int ProcessingInfo::processing_types_size() const { + return _internal_processing_types_size(); +} +inline void ProcessingInfo::clear_processing_types() { + processing_types_.Clear(); +} +inline ::speechly::analytics::v1::ProcessingType ProcessingInfo::_internal_processing_types(int index) const { + return static_cast< ::speechly::analytics::v1::ProcessingType >(processing_types_.Get(index)); +} +inline ::speechly::analytics::v1::ProcessingType ProcessingInfo::processing_types(int index) const { + // @@protoc_insertion_point(field_get:speechly.analytics.v1.ProcessingInfo.processing_types) + return _internal_processing_types(index); +} +inline void ProcessingInfo::set_processing_types(int index, ::speechly::analytics::v1::ProcessingType value) { + processing_types_.Set(index, value); + // @@protoc_insertion_point(field_set:speechly.analytics.v1.ProcessingInfo.processing_types) +} +inline void ProcessingInfo::_internal_add_processing_types(::speechly::analytics::v1::ProcessingType value) { + processing_types_.Add(value); +} +inline void ProcessingInfo::add_processing_types(::speechly::analytics::v1::ProcessingType value) { + _internal_add_processing_types(value); + // @@protoc_insertion_point(field_add:speechly.analytics.v1.ProcessingInfo.processing_types) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& +ProcessingInfo::processing_types() const { + // @@protoc_insertion_point(field_list:speechly.analytics.v1.ProcessingInfo.processing_types) + return processing_types_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* +ProcessingInfo::_internal_mutable_processing_types() { + return &processing_types_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* +ProcessingInfo::mutable_processing_types() { + // @@protoc_insertion_point(field_mutable_list:speechly.analytics.v1.ProcessingInfo.processing_types) + return _internal_mutable_processing_types(); +} + +// string model_id = 2; +inline void ProcessingInfo::clear_model_id() { + model_id_.ClearToEmpty(); +} +inline const std::string& ProcessingInfo::model_id() const { + // @@protoc_insertion_point(field_get:speechly.analytics.v1.ProcessingInfo.model_id) + return _internal_model_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ProcessingInfo::set_model_id(ArgT0&& arg0, ArgT... args) { + + model_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:speechly.analytics.v1.ProcessingInfo.model_id) +} +inline std::string* ProcessingInfo::mutable_model_id() { + std::string* _s = _internal_mutable_model_id(); + // @@protoc_insertion_point(field_mutable:speechly.analytics.v1.ProcessingInfo.model_id) + return _s; +} +inline const std::string& ProcessingInfo::_internal_model_id() const { + return model_id_.Get(); +} +inline void ProcessingInfo::_internal_set_model_id(const std::string& value) { + + model_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* ProcessingInfo::_internal_mutable_model_id() { + + return model_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* ProcessingInfo::release_model_id() { + // @@protoc_insertion_point(field_release:speechly.analytics.v1.ProcessingInfo.model_id) + return model_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void ProcessingInfo::set_allocated_model_id(std::string* model_id) { + if (model_id != nullptr) { + + } else { + + } + model_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), model_id, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:speechly.analytics.v1.ProcessingInfo.model_id) +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ @@ -1104,6 +1397,8 @@ inline void DecoderInfo::set_total_seconds_transcribed(::PROTOBUF_NAMESPACE_ID:: // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) @@ -1118,6 +1413,11 @@ template <> inline const EnumDescriptor* GetEnumDescriptor< ::speechly::analytics::v1::Aggregation>() { return ::speechly::analytics::v1::Aggregation_descriptor(); } +template <> struct is_proto_enum< ::speechly::analytics::v1::ProcessingType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::speechly::analytics::v1::ProcessingType>() { + return ::speechly::analytics::v1::ProcessingType_descriptor(); +} PROTOBUF_NAMESPACE_CLOSE diff --git a/cpp/Speechly/speechly/analytics/v1/analytics_api.pb.cc b/cpp/Speechly/speechly/analytics/v1/analytics_api.pb.cc index 6d9bcba..877f4be 100644 --- a/cpp/Speechly/speechly/analytics/v1/analytics_api.pb.cc +++ b/cpp/Speechly/speechly/analytics/v1/analytics_api.pb.cc @@ -88,9 +88,12 @@ constexpr RegisterUtteranceRequest::RegisterUtteranceRequest( , device_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , operation_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , batch_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , project_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , language_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , decoder_info_(nullptr) , created_time_(nullptr) , finished_time_(nullptr) + , processing_info_(nullptr) , utterance_length_seconds_(0) , utterance_length_chars_(0) , status_(0) @@ -174,6 +177,9 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_speechly_2fanalytics_2fv1_2fan PROTOBUF_FIELD_OFFSET(::speechly::analytics::v1::RegisterUtteranceRequest, status_), PROTOBUF_FIELD_OFFSET(::speechly::analytics::v1::RegisterUtteranceRequest, operation_id_), PROTOBUF_FIELD_OFFSET(::speechly::analytics::v1::RegisterUtteranceRequest, batch_id_), + PROTOBUF_FIELD_OFFSET(::speechly::analytics::v1::RegisterUtteranceRequest, project_id_), + PROTOBUF_FIELD_OFFSET(::speechly::analytics::v1::RegisterUtteranceRequest, language_), + PROTOBUF_FIELD_OFFSET(::speechly::analytics::v1::RegisterUtteranceRequest, processing_info_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::speechly::analytics::v1::RegisterUtteranceResponse, _internal_metadata_), ~0u, // no _extensions_ @@ -186,7 +192,7 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOB { 24, -1, sizeof(::speechly::analytics::v1::UtterancesRequest)}, { 30, -1, sizeof(::speechly::analytics::v1::UtterancesResponse)}, { 36, -1, sizeof(::speechly::analytics::v1::RegisterUtteranceRequest)}, - { 51, -1, sizeof(::speechly::analytics::v1::RegisterUtteranceResponse)}, + { 54, -1, sizeof(::speechly::analytics::v1::RegisterUtteranceResponse)}, }; static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { @@ -220,7 +226,7 @@ const char descriptor_table_protodef_speechly_2fanalytics_2fv1_2fanalytics_5fapi " \001(\005\022\037\n\027total_annotated_seconds\030\007 \001(\005\"#\n" "\021UtterancesRequest\022\016\n\006app_id\030\001 \001(\t\"J\n\022Ut" "terancesResponse\0224\n\nutterances\030\001 \003(\0132 .s" - "peechly.analytics.v1.Utterance\"\322\003\n\030Regis" + "peechly.analytics.v1.Utterance\"\270\004\n\030Regis" "terUtteranceRequest\022\016\n\006app_id\030\001 \001(\t\022\021\n\td" "evice_id\030\002 \001(\t\022 \n\030utterance_length_secon" "ds\030\003 \001(\005\022\036\n\026utterance_length_chars\030\004 \001(\005" @@ -230,22 +236,25 @@ const char descriptor_table_protodef_speechly_2fanalytics_2fv1_2fanalytics_5fapi "_time\030\007 \001(\0132\032.google.protobuf.Timestamp\022" "F\n\006status\030\010 \001(\01626.speechly.analytics.v1." "RegisterUtteranceRequest.Status\022\024\n\014opera" - "tion_id\030\t \001(\t\022\020\n\010batch_id\030\n \001(\t\"B\n\006Statu" - "s\022\022\n\016STATUS_INVALID\020\000\022\022\n\016STATUS_SUCCESS\020" - "\001\022\020\n\014STATUS_ERROR\020\002\"\033\n\031RegisterUtterance" - "Response2\347\002\n\014AnalyticsAPI\022|\n\023UtteranceSt" - "atistics\0221.speechly.analytics.v1.Utteran" - "ceStatisticsRequest\0322.speechly.analytics" - ".v1.UtteranceStatisticsResponse\022a\n\nUtter" - "ances\022(.speechly.analytics.v1.Utterances" - "Request\032).speechly.analytics.v1.Utteranc" - "esResponse\022v\n\021RegisterUtterance\022/.speech" - "ly.analytics.v1.RegisterUtteranceRequest" - "\0320.speechly.analytics.v1.RegisterUtteran" - "ceResponseB\211\001\n\031com.speechly.analytics.v1" - "B\021AnalyticsApiProtoP\001Z!speechly/analytic" - "s/v1;analyticsv1\242\002\003SAX\252\002\025Speechly.Analyt" - "ics.V1\312\002\025Speechly\\Analytics\\V1b\006proto3" + "tion_id\030\t \001(\t\022\020\n\010batch_id\030\n \001(\t\022\022\n\nproje" + "ct_id\030\013 \001(\t\022\020\n\010language\030\014 \001(\t\022>\n\017process" + "ing_info\030\r \001(\0132%.speechly.analytics.v1.P" + "rocessingInfo\"B\n\006Status\022\022\n\016STATUS_INVALI" + "D\020\000\022\022\n\016STATUS_SUCCESS\020\001\022\020\n\014STATUS_ERROR\020" + "\002\"\033\n\031RegisterUtteranceResponse2\347\002\n\014Analy" + "ticsAPI\022|\n\023UtteranceStatistics\0221.speechl" + "y.analytics.v1.UtteranceStatisticsReques" + "t\0322.speechly.analytics.v1.UtteranceStati" + "sticsResponse\022a\n\nUtterances\022(.speechly.a" + "nalytics.v1.UtterancesRequest\032).speechly" + ".analytics.v1.UtterancesResponse\022v\n\021Regi" + "sterUtterance\022/.speechly.analytics.v1.Re" + "gisterUtteranceRequest\0320.speechly.analyt" + "ics.v1.RegisterUtteranceResponseB\211\001\n\031com" + ".speechly.analytics.v1B\021AnalyticsApiProt" + "oP\001Z!speechly/analytics/v1;analyticsv1\242\002" + "\003SAX\252\002\025Speechly.Analytics.V1\312\002\025Speechly\\" + "Analytics\\V1b\006proto3" ; static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_speechly_2fanalytics_2fv1_2fanalytics_5fapi_2eproto_deps[2] = { &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, @@ -253,7 +262,7 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor }; static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_speechly_2fanalytics_2fv1_2fanalytics_5fapi_2eproto_once; const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_speechly_2fanalytics_2fv1_2fanalytics_5fapi_2eproto = { - false, false, 1878, descriptor_table_protodef_speechly_2fanalytics_2fv1_2fanalytics_5fapi_2eproto, "speechly/analytics/v1/analytics_api.proto", + false, false, 1980, descriptor_table_protodef_speechly_2fanalytics_2fv1_2fanalytics_5fapi_2eproto, "speechly/analytics/v1/analytics_api.proto", &descriptor_table_speechly_2fanalytics_2fv1_2fanalytics_5fapi_2eproto_once, descriptor_table_speechly_2fanalytics_2fv1_2fanalytics_5fapi_2eproto_deps, 2, 6, schemas, file_default_instances, TableStruct_speechly_2fanalytics_2fv1_2fanalytics_5fapi_2eproto::offsets, file_level_metadata_speechly_2fanalytics_2fv1_2fanalytics_5fapi_2eproto, file_level_enum_descriptors_speechly_2fanalytics_2fv1_2fanalytics_5fapi_2eproto, file_level_service_descriptors_speechly_2fanalytics_2fv1_2fanalytics_5fapi_2eproto, @@ -1515,6 +1524,7 @@ class RegisterUtteranceRequest::_Internal { static const ::speechly::analytics::v1::DecoderInfo& decoder_info(const RegisterUtteranceRequest* msg); static const PROTOBUF_NAMESPACE_ID::Timestamp& created_time(const RegisterUtteranceRequest* msg); static const PROTOBUF_NAMESPACE_ID::Timestamp& finished_time(const RegisterUtteranceRequest* msg); + static const ::speechly::analytics::v1::ProcessingInfo& processing_info(const RegisterUtteranceRequest* msg); }; const ::speechly::analytics::v1::DecoderInfo& @@ -1529,6 +1539,10 @@ const PROTOBUF_NAMESPACE_ID::Timestamp& RegisterUtteranceRequest::_Internal::finished_time(const RegisterUtteranceRequest* msg) { return *msg->finished_time_; } +const ::speechly::analytics::v1::ProcessingInfo& +RegisterUtteranceRequest::_Internal::processing_info(const RegisterUtteranceRequest* msg) { + return *msg->processing_info_; +} void RegisterUtteranceRequest::clear_decoder_info() { if (GetArenaForAllocation() == nullptr && decoder_info_ != nullptr) { delete decoder_info_; @@ -1547,6 +1561,12 @@ void RegisterUtteranceRequest::clear_finished_time() { } finished_time_ = nullptr; } +void RegisterUtteranceRequest::clear_processing_info() { + if (GetArenaForAllocation() == nullptr && processing_info_ != nullptr) { + delete processing_info_; + } + processing_info_ = nullptr; +} RegisterUtteranceRequest::RegisterUtteranceRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -1579,6 +1599,16 @@ RegisterUtteranceRequest::RegisterUtteranceRequest(const RegisterUtteranceReques batch_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_batch_id(), GetArenaForAllocation()); } + project_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_project_id().empty()) { + project_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_project_id(), + GetArenaForAllocation()); + } + language_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_language().empty()) { + language_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_language(), + GetArenaForAllocation()); + } if (from._internal_has_decoder_info()) { decoder_info_ = new ::speechly::analytics::v1::DecoderInfo(*from.decoder_info_); } else { @@ -1594,6 +1624,11 @@ RegisterUtteranceRequest::RegisterUtteranceRequest(const RegisterUtteranceReques } else { finished_time_ = nullptr; } + if (from._internal_has_processing_info()) { + processing_info_ = new ::speechly::analytics::v1::ProcessingInfo(*from.processing_info_); + } else { + processing_info_ = nullptr; + } ::memcpy(&utterance_length_seconds_, &from.utterance_length_seconds_, static_cast(reinterpret_cast(&status_) - reinterpret_cast(&utterance_length_seconds_)) + sizeof(status_)); @@ -1605,6 +1640,8 @@ app_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlrea device_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); operation_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); batch_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +project_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +language_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&decoder_info_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&status_) - @@ -1624,9 +1661,12 @@ inline void RegisterUtteranceRequest::SharedDtor() { device_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); operation_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); batch_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + project_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + language_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete decoder_info_; if (this != internal_default_instance()) delete created_time_; if (this != internal_default_instance()) delete finished_time_; + if (this != internal_default_instance()) delete processing_info_; } void RegisterUtteranceRequest::ArenaDtor(void* object) { @@ -1649,6 +1689,8 @@ void RegisterUtteranceRequest::Clear() { device_id_.ClearToEmpty(); operation_id_.ClearToEmpty(); batch_id_.ClearToEmpty(); + project_id_.ClearToEmpty(); + language_.ClearToEmpty(); if (GetArenaForAllocation() == nullptr && decoder_info_ != nullptr) { delete decoder_info_; } @@ -1661,6 +1703,10 @@ void RegisterUtteranceRequest::Clear() { delete finished_time_; } finished_time_ = nullptr; + if (GetArenaForAllocation() == nullptr && processing_info_ != nullptr) { + delete processing_info_; + } + processing_info_ = nullptr; ::memset(&utterance_length_seconds_, 0, static_cast( reinterpret_cast(&status_) - reinterpret_cast(&utterance_length_seconds_)) + sizeof(status_)); @@ -1752,6 +1798,31 @@ const char* RegisterUtteranceRequest::_InternalParse(const char* ptr, ::PROTOBUF CHK_(ptr); } else goto handle_unusual; continue; + // string project_id = 11; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) { + auto str = _internal_mutable_project_id(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "speechly.analytics.v1.RegisterUtteranceRequest.project_id")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string language = 12; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 98)) { + auto str = _internal_mutable_language(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "speechly.analytics.v1.RegisterUtteranceRequest.language")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .speechly.analytics.v1.ProcessingInfo processing_info = 13; + case 13: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 106)) { + ptr = ctx->ParseMessage(_internal_mutable_processing_info(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag == 0) || ((tag & 7) == 4)) { @@ -1864,6 +1935,34 @@ ::PROTOBUF_NAMESPACE_ID::uint8* RegisterUtteranceRequest::_InternalSerialize( 10, this->_internal_batch_id(), target); } + // string project_id = 11; + if (!this->_internal_project_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_project_id().data(), static_cast(this->_internal_project_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "speechly.analytics.v1.RegisterUtteranceRequest.project_id"); + target = stream->WriteStringMaybeAliased( + 11, this->_internal_project_id(), target); + } + + // string language = 12; + if (!this->_internal_language().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_language().data(), static_cast(this->_internal_language().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "speechly.analytics.v1.RegisterUtteranceRequest.language"); + target = stream->WriteStringMaybeAliased( + 12, this->_internal_language(), target); + } + + // .speechly.analytics.v1.ProcessingInfo processing_info = 13; + if (this->_internal_has_processing_info()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 13, _Internal::processing_info(this), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -1908,6 +2007,20 @@ size_t RegisterUtteranceRequest::ByteSizeLong() const { this->_internal_batch_id()); } + // string project_id = 11; + if (!this->_internal_project_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_project_id()); + } + + // string language = 12; + if (!this->_internal_language().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_language()); + } + // .speechly.analytics.v1.DecoderInfo decoder_info = 5; if (this->_internal_has_decoder_info()) { total_size += 1 + @@ -1929,6 +2042,13 @@ size_t RegisterUtteranceRequest::ByteSizeLong() const { *finished_time_); } + // .speechly.analytics.v1.ProcessingInfo processing_info = 13; + if (this->_internal_has_processing_info()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *processing_info_); + } + // int32 utterance_length_seconds = 3; if (this->_internal_utterance_length_seconds() != 0) { total_size += 1 + @@ -1989,6 +2109,12 @@ void RegisterUtteranceRequest::MergeFrom(const RegisterUtteranceRequest& from) { if (!from._internal_batch_id().empty()) { _internal_set_batch_id(from._internal_batch_id()); } + if (!from._internal_project_id().empty()) { + _internal_set_project_id(from._internal_project_id()); + } + if (!from._internal_language().empty()) { + _internal_set_language(from._internal_language()); + } if (from._internal_has_decoder_info()) { _internal_mutable_decoder_info()->::speechly::analytics::v1::DecoderInfo::MergeFrom(from._internal_decoder_info()); } @@ -1998,6 +2124,9 @@ void RegisterUtteranceRequest::MergeFrom(const RegisterUtteranceRequest& from) { if (from._internal_has_finished_time()) { _internal_mutable_finished_time()->PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_finished_time()); } + if (from._internal_has_processing_info()) { + _internal_mutable_processing_info()->::speechly::analytics::v1::ProcessingInfo::MergeFrom(from._internal_processing_info()); + } if (from._internal_utterance_length_seconds() != 0) { _internal_set_utterance_length_seconds(from._internal_utterance_length_seconds()); } @@ -2044,6 +2173,16 @@ void RegisterUtteranceRequest::InternalSwap(RegisterUtteranceRequest* other) { &batch_id_, GetArenaForAllocation(), &other->batch_id_, other->GetArenaForAllocation() ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &project_id_, GetArenaForAllocation(), + &other->project_id_, other->GetArenaForAllocation() + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &language_, GetArenaForAllocation(), + &other->language_, other->GetArenaForAllocation() + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(RegisterUtteranceRequest, status_) + sizeof(RegisterUtteranceRequest::status_) diff --git a/cpp/Speechly/speechly/analytics/v1/analytics_api.pb.h b/cpp/Speechly/speechly/analytics/v1/analytics_api.pb.h index d3d8ecd..14c153f 100644 --- a/cpp/Speechly/speechly/analytics/v1/analytics_api.pb.h +++ b/cpp/Speechly/speechly/analytics/v1/analytics_api.pb.h @@ -1073,9 +1073,12 @@ class RegisterUtteranceRequest final : kDeviceIdFieldNumber = 2, kOperationIdFieldNumber = 9, kBatchIdFieldNumber = 10, + kProjectIdFieldNumber = 11, + kLanguageFieldNumber = 12, kDecoderInfoFieldNumber = 5, kCreatedTimeFieldNumber = 6, kFinishedTimeFieldNumber = 7, + kProcessingInfoFieldNumber = 13, kUtteranceLengthSecondsFieldNumber = 3, kUtteranceLengthCharsFieldNumber = 4, kStatusFieldNumber = 8, @@ -1136,6 +1139,34 @@ class RegisterUtteranceRequest final : std::string* _internal_mutable_batch_id(); public: + // string project_id = 11; + void clear_project_id(); + const std::string& project_id() const; + template + void set_project_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_project_id(); + PROTOBUF_MUST_USE_RESULT std::string* release_project_id(); + void set_allocated_project_id(std::string* project_id); + private: + const std::string& _internal_project_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_project_id(const std::string& value); + std::string* _internal_mutable_project_id(); + public: + + // string language = 12; + void clear_language(); + const std::string& language() const; + template + void set_language(ArgT0&& arg0, ArgT... args); + std::string* mutable_language(); + PROTOBUF_MUST_USE_RESULT std::string* release_language(); + void set_allocated_language(std::string* language); + private: + const std::string& _internal_language() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_language(const std::string& value); + std::string* _internal_mutable_language(); + public: + // .speechly.analytics.v1.DecoderInfo decoder_info = 5; bool has_decoder_info() const; private: @@ -1190,6 +1221,24 @@ class RegisterUtteranceRequest final : PROTOBUF_NAMESPACE_ID::Timestamp* finished_time); PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_finished_time(); + // .speechly.analytics.v1.ProcessingInfo processing_info = 13; + bool has_processing_info() const; + private: + bool _internal_has_processing_info() const; + public: + void clear_processing_info(); + const ::speechly::analytics::v1::ProcessingInfo& processing_info() const; + PROTOBUF_MUST_USE_RESULT ::speechly::analytics::v1::ProcessingInfo* release_processing_info(); + ::speechly::analytics::v1::ProcessingInfo* mutable_processing_info(); + void set_allocated_processing_info(::speechly::analytics::v1::ProcessingInfo* processing_info); + private: + const ::speechly::analytics::v1::ProcessingInfo& _internal_processing_info() const; + ::speechly::analytics::v1::ProcessingInfo* _internal_mutable_processing_info(); + public: + void unsafe_arena_set_allocated_processing_info( + ::speechly::analytics::v1::ProcessingInfo* processing_info); + ::speechly::analytics::v1::ProcessingInfo* unsafe_arena_release_processing_info(); + // int32 utterance_length_seconds = 3; void clear_utterance_length_seconds(); ::PROTOBUF_NAMESPACE_ID::int32 utterance_length_seconds() const; @@ -1228,9 +1277,12 @@ class RegisterUtteranceRequest final : ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr device_id_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr operation_id_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr batch_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr project_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr language_; ::speechly::analytics::v1::DecoderInfo* decoder_info_; PROTOBUF_NAMESPACE_ID::Timestamp* created_time_; PROTOBUF_NAMESPACE_ID::Timestamp* finished_time_; + ::speechly::analytics::v1::ProcessingInfo* processing_info_; ::PROTOBUF_NAMESPACE_ID::int32 utterance_length_seconds_; ::PROTOBUF_NAMESPACE_ID::int32 utterance_length_chars_; int status_; @@ -2428,6 +2480,184 @@ inline void RegisterUtteranceRequest::set_allocated_batch_id(std::string* batch_ // @@protoc_insertion_point(field_set_allocated:speechly.analytics.v1.RegisterUtteranceRequest.batch_id) } +// string project_id = 11; +inline void RegisterUtteranceRequest::clear_project_id() { + project_id_.ClearToEmpty(); +} +inline const std::string& RegisterUtteranceRequest::project_id() const { + // @@protoc_insertion_point(field_get:speechly.analytics.v1.RegisterUtteranceRequest.project_id) + return _internal_project_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RegisterUtteranceRequest::set_project_id(ArgT0&& arg0, ArgT... args) { + + project_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:speechly.analytics.v1.RegisterUtteranceRequest.project_id) +} +inline std::string* RegisterUtteranceRequest::mutable_project_id() { + std::string* _s = _internal_mutable_project_id(); + // @@protoc_insertion_point(field_mutable:speechly.analytics.v1.RegisterUtteranceRequest.project_id) + return _s; +} +inline const std::string& RegisterUtteranceRequest::_internal_project_id() const { + return project_id_.Get(); +} +inline void RegisterUtteranceRequest::_internal_set_project_id(const std::string& value) { + + project_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* RegisterUtteranceRequest::_internal_mutable_project_id() { + + return project_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* RegisterUtteranceRequest::release_project_id() { + // @@protoc_insertion_point(field_release:speechly.analytics.v1.RegisterUtteranceRequest.project_id) + return project_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void RegisterUtteranceRequest::set_allocated_project_id(std::string* project_id) { + if (project_id != nullptr) { + + } else { + + } + project_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), project_id, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:speechly.analytics.v1.RegisterUtteranceRequest.project_id) +} + +// string language = 12; +inline void RegisterUtteranceRequest::clear_language() { + language_.ClearToEmpty(); +} +inline const std::string& RegisterUtteranceRequest::language() const { + // @@protoc_insertion_point(field_get:speechly.analytics.v1.RegisterUtteranceRequest.language) + return _internal_language(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RegisterUtteranceRequest::set_language(ArgT0&& arg0, ArgT... args) { + + language_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:speechly.analytics.v1.RegisterUtteranceRequest.language) +} +inline std::string* RegisterUtteranceRequest::mutable_language() { + std::string* _s = _internal_mutable_language(); + // @@protoc_insertion_point(field_mutable:speechly.analytics.v1.RegisterUtteranceRequest.language) + return _s; +} +inline const std::string& RegisterUtteranceRequest::_internal_language() const { + return language_.Get(); +} +inline void RegisterUtteranceRequest::_internal_set_language(const std::string& value) { + + language_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* RegisterUtteranceRequest::_internal_mutable_language() { + + return language_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* RegisterUtteranceRequest::release_language() { + // @@protoc_insertion_point(field_release:speechly.analytics.v1.RegisterUtteranceRequest.language) + return language_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void RegisterUtteranceRequest::set_allocated_language(std::string* language) { + if (language != nullptr) { + + } else { + + } + language_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), language, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:speechly.analytics.v1.RegisterUtteranceRequest.language) +} + +// .speechly.analytics.v1.ProcessingInfo processing_info = 13; +inline bool RegisterUtteranceRequest::_internal_has_processing_info() const { + return this != internal_default_instance() && processing_info_ != nullptr; +} +inline bool RegisterUtteranceRequest::has_processing_info() const { + return _internal_has_processing_info(); +} +inline const ::speechly::analytics::v1::ProcessingInfo& RegisterUtteranceRequest::_internal_processing_info() const { + const ::speechly::analytics::v1::ProcessingInfo* p = processing_info_; + return p != nullptr ? *p : reinterpret_cast( + ::speechly::analytics::v1::_ProcessingInfo_default_instance_); +} +inline const ::speechly::analytics::v1::ProcessingInfo& RegisterUtteranceRequest::processing_info() const { + // @@protoc_insertion_point(field_get:speechly.analytics.v1.RegisterUtteranceRequest.processing_info) + return _internal_processing_info(); +} +inline void RegisterUtteranceRequest::unsafe_arena_set_allocated_processing_info( + ::speechly::analytics::v1::ProcessingInfo* processing_info) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(processing_info_); + } + processing_info_ = processing_info; + if (processing_info) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:speechly.analytics.v1.RegisterUtteranceRequest.processing_info) +} +inline ::speechly::analytics::v1::ProcessingInfo* RegisterUtteranceRequest::release_processing_info() { + + ::speechly::analytics::v1::ProcessingInfo* temp = processing_info_; + processing_info_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::speechly::analytics::v1::ProcessingInfo* RegisterUtteranceRequest::unsafe_arena_release_processing_info() { + // @@protoc_insertion_point(field_release:speechly.analytics.v1.RegisterUtteranceRequest.processing_info) + + ::speechly::analytics::v1::ProcessingInfo* temp = processing_info_; + processing_info_ = nullptr; + return temp; +} +inline ::speechly::analytics::v1::ProcessingInfo* RegisterUtteranceRequest::_internal_mutable_processing_info() { + + if (processing_info_ == nullptr) { + auto* p = CreateMaybeMessage<::speechly::analytics::v1::ProcessingInfo>(GetArenaForAllocation()); + processing_info_ = p; + } + return processing_info_; +} +inline ::speechly::analytics::v1::ProcessingInfo* RegisterUtteranceRequest::mutable_processing_info() { + ::speechly::analytics::v1::ProcessingInfo* _msg = _internal_mutable_processing_info(); + // @@protoc_insertion_point(field_mutable:speechly.analytics.v1.RegisterUtteranceRequest.processing_info) + return _msg; +} +inline void RegisterUtteranceRequest::set_allocated_processing_info(::speechly::analytics::v1::ProcessingInfo* processing_info) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(processing_info_); + } + if (processing_info) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper< + ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(processing_info)); + if (message_arena != submessage_arena) { + processing_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, processing_info, submessage_arena); + } + + } else { + + } + processing_info_ = processing_info; + // @@protoc_insertion_point(field_set_allocated:speechly.analytics.v1.RegisterUtteranceRequest.processing_info) +} + // ------------------------------------------------------------------- // RegisterUtteranceResponse diff --git a/cpp/Speechly/speechly/slu/v2beta1/batch.pb.cc b/cpp/Speechly/speechly/slu/v2beta1/batch.pb.cc index 077cf70..993b839 100644 --- a/cpp/Speechly/speechly/slu/v2beta1/batch.pb.cc +++ b/cpp/Speechly/speechly/slu/v2beta1/batch.pb.cc @@ -283,65 +283,64 @@ static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = const char descriptor_table_protodef_speechly_2fslu_2fv2beta1_2fbatch_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = "\n speechly/slu/v2beta1/batch.proto\022\024spee" "chly.slu.v2beta1\032\036google/protobuf/durati" - "on.proto\"\210\002\n\014HttpResource\022\013\n\003url\030\001 \001(\t\0229" + "on.proto\"\214\002\n\014HttpResource\022\013\n\003url\030\001 \001(\t\0229" "\n\006method\030\002 \001(\0162).speechly.slu.v2beta1.Ht" "tpResource.Method\022:\n\007headers\030\003 \003(\0132).spe" "echly.slu.v2beta1.HttpResource.Header\032%\n" - "\006Header\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"M\n\006" - "Method\022\022\n\016METHOD_INVALID\020\000\022\016\n\nMETHOD_GET" - "\020\001\022\017\n\013METHOD_POST\020\002\022\016\n\nMETHOD_PUT\020\003\"\323\001\n\027" - "ProcessAudioBatchConfig\022\016\n\006app_id\030\001 \001(\t\022" - "\026\n\016language_codes\030\002 \003(\t\022H\n\021processing_co" - "nfig\030\003 \001(\0132-.speechly.slu.v2beta1.Proces" - "singConfiguration\022\027\n\017batch_reference\030\004 \001" - "(\t\022-\n\007options\030\005 \003(\0132\034.speechly.slu.v2bet" - "a1.Option\"\262\001\n\035ProcessAudioSourceRequestI" - "tem\022\022\n\nsource_url\030\001 \001(\t\022\027\n\017destination_u" - "rl\030\002 \001(\t\022>\n\022completion_webhook\030\003 \001(\0132\".s" - "peechly.slu.v2beta1.HttpResource\022\021\n\trefe" - "rence\030\004 \001(\t\022\021\n\tdevice_id\030\005 \001(\t\"W\n\027Proces" - "singConfiguration\022\020\n\010tokenize\030\001 \001(\010\022\021\n\tt" - "ranslate\030\002 \001(\010\022\027\n\017skip_transcribe\030\003 \001(\010\"" - "\341\005\n\tOperation\022\n\n\002id\030\001 \001(\t\022\021\n\treference\030\002" - " \001(\t\022\020\n\010batch_id\030\020 \001(\t\022\027\n\017batch_referenc" - "e\030\021 \001(\t\0226\n\006status\030\003 \001(\0162&.speechly.slu.v" - "2beta1.Operation.Status\022\025\n\rlanguage_code" - "\030\004 \001(\t\022\016\n\006app_id\030\005 \001(\t\0225\n\006result\030\006 \003(\0132%" - ".speechly.slu.v2beta1.OperationResult\022+\n" - "\010duration\030\007 \001(\0132\031.google.protobuf.Durati" - "on\022B\n\nerror_code\030\022 \001(\0162..speechly.slu.v2" - "beta1.Operation.OperationError\022\031\n\021error_" - "description\030\023 \001(\t\022\022\n\nsource_url\030\024 \001(\t\022\027\n" - "\017destination_url\030\025 \001(\t\"S\n\006Status\022\022\n\016STAT" - "US_INVALID\020\000\022\022\n\016STATUS_PENDING\020\001\022\017\n\013STAT" - "US_DONE\020\002\022\020\n\014STATUS_ERROR\020\003\"\345\001\n\016Operatio" - "nError\022\033\n\027OPERATION_ERROR_INVALID\020\000\022(\n$O" - "PERATION_ERROR_UNSUPPORTED_LANGUAGE\020\001\022\034\n" - "\030OPERATION_ERROR_INTERNAL\020\002\022\"\n\036OPERATION" - "_ERROR_INVALID_SOURCE\020\004\022\'\n#OPERATION_ERR" - "OR_INVALID_DESTINATION\020\005\022!\n\035OPERATION_ER" - "ROR_INVALID_AUDIO\020\006\"\244\002\n\017OperationResult\022" - ">\n\004type\030\001 \001(\01620.speechly.slu.v2beta1.Ope" - "rationResult.ResultType\022\014\n\004text\030\002 \001(\t\022+\n" - "\006tokens\030\003 \003(\0132\033.speechly.slu.v2beta1.Tok" - "en\"\225\001\n\nResultType\022\027\n\023RESULT_TYPE_INVALID" - "\020\000\022\"\n\036RESULT_TYPE_TRANSCRIPT_LEXICAL\020\001\022\"" - "\n\036RESULT_TYPE_TRANSCRIPT_DISPLAY\020\002\022&\n\"RE" - "SULT_TYPE_TRANSCRIPT_TRANSLATION\020\003\"K\n\005To" - "ken\022\r\n\005token\030\001 \001(\t\022\r\n\005index\030\002 \001(\005\022\022\n\nsta" - "rt_time\030\003 \001(\005\022\020\n\010end_time\030\004 \001(\005\"$\n\006Optio" - "n\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \003(\tB}\n\030com.spe" - "echly.slu.v2beta1B\nBatchProtoP\001Z\037speechl" - "y/slu/v2beta1;sluv2beta1\242\002\003SSX\252\002\024Speechl" - "y.Slu.V2Beta1\312\002\024Speechly\\Slu\\V2Beta1b\006pr" - "oto3" + "\006Header\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"Q\n\006" + "Method\022\026\n\022METHOD_UNSPECIFIED\020\000\022\016\n\nMETHOD" + "_GET\020\001\022\017\n\013METHOD_POST\020\002\022\016\n\nMETHOD_PUT\020\003\"" + "\323\001\n\027ProcessAudioBatchConfig\022\016\n\006app_id\030\001 " + "\001(\t\022\026\n\016language_codes\030\002 \003(\t\022H\n\021processin" + "g_config\030\003 \001(\0132-.speechly.slu.v2beta1.Pr" + "ocessingConfiguration\022\027\n\017batch_reference" + "\030\004 \001(\t\022-\n\007options\030\005 \003(\0132\034.speechly.slu.v" + "2beta1.Option\"\262\001\n\035ProcessAudioSourceRequ" + "estItem\022\022\n\nsource_url\030\001 \001(\t\022\027\n\017destinati" + "on_url\030\002 \001(\t\022>\n\022completion_webhook\030\003 \001(\013" + "2\".speechly.slu.v2beta1.HttpResource\022\021\n\t" + "reference\030\004 \001(\t\022\021\n\tdevice_id\030\005 \001(\t\"W\n\027Pr" + "ocessingConfiguration\022\020\n\010tokenize\030\001 \001(\010\022" + "\021\n\ttranslate\030\002 \001(\010\022\027\n\017skip_transcribe\030\003 " + "\001(\010\"\301\005\n\tOperation\022\n\n\002id\030\001 \001(\t\022\021\n\treferen" + "ce\030\002 \001(\t\022\020\n\010batch_id\030\020 \001(\t\022\027\n\017batch_refe" + "rence\030\021 \001(\t\0226\n\006status\030\003 \001(\0162&.speechly.s" + "lu.v2beta1.Operation.Status\022\025\n\rlanguage_" + "code\030\004 \001(\t\022\016\n\006app_id\030\005 \001(\t\0225\n\006result\030\006 \003" + "(\0132%.speechly.slu.v2beta1.OperationResul" + "t\022+\n\010duration\030\007 \001(\0132\031.google.protobuf.Du" + "ration\022=\n\nerror_code\030\022 \001(\0162).speechly.sl" + "u.v2beta1.Operation.ErrorCode\022\031\n\021error_d" + "escription\030\023 \001(\t\022\022\n\nsource_url\030\024 \001(\t\022\027\n\017" + "destination_url\030\025 \001(\t\"W\n\006Status\022\026\n\022STATU" + "S_UNSPECIFIED\020\000\022\022\n\016STATUS_PENDING\020\001\022\017\n\013S" + "TATUS_DONE\020\002\022\020\n\014STATUS_ERROR\020\003\"\306\001\n\tError" + "Code\022\025\n\021ERROR_UNSPECIFIED\020\000\022\036\n\032ERROR_UNS" + "UPPORTED_LANGUAGE\020\001\022\022\n\016ERROR_INTERNAL\020\002\022" + "\034\n\030ERROR_INVALID_PARAMETERS\020\003\022\030\n\024ERROR_I" + "NVALID_SOURCE\020\004\022\035\n\031ERROR_INVALID_DESTINA" + "TION\020\005\022\027\n\023ERROR_INVALID_AUDIO\020\006\"\250\002\n\017Oper" + "ationResult\022>\n\004type\030\001 \001(\01620.speechly.slu" + ".v2beta1.OperationResult.ResultType\022\014\n\004t" + "ext\030\002 \001(\t\022+\n\006tokens\030\003 \003(\0132\033.speechly.slu" + ".v2beta1.Token\"\231\001\n\nResultType\022\033\n\027RESULT_" + "TYPE_UNSPECIFIED\020\000\022\"\n\036RESULT_TYPE_TRANSC" + "RIPT_LEXICAL\020\001\022\"\n\036RESULT_TYPE_TRANSCRIPT" + "_DISPLAY\020\002\022&\n\"RESULT_TYPE_TRANSCRIPT_TRA" + "NSLATION\020\003\"K\n\005Token\022\r\n\005token\030\001 \001(\t\022\r\n\005in" + "dex\030\002 \001(\005\022\022\n\nstart_time\030\003 \001(\005\022\020\n\010end_tim" + "e\030\004 \001(\005\"$\n\006Option\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + "\002 \003(\tB}\n\030com.speechly.slu.v2beta1B\nBatch" + "ProtoP\001Z\037speechly/slu/v2beta1;sluv2beta1" + "\242\002\003SSX\252\002\024Speechly.Slu.V2Beta1\312\002\024Speechly" + "\\Slu\\V2Beta1b\006proto3" ; static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_speechly_2fslu_2fv2beta1_2fbatch_2eproto_deps[1] = { &::descriptor_table_google_2fprotobuf_2fduration_2eproto, }; static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_speechly_2fslu_2fv2beta1_2fbatch_2eproto_once; const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_speechly_2fslu_2fv2beta1_2fbatch_2eproto = { - false, false, 2124, descriptor_table_protodef_speechly_2fslu_2fv2beta1_2fbatch_2eproto, "speechly/slu/v2beta1/batch.proto", + false, false, 2100, descriptor_table_protodef_speechly_2fslu_2fv2beta1_2fbatch_2eproto, "speechly/slu/v2beta1/batch.proto", &descriptor_table_speechly_2fslu_2fv2beta1_2fbatch_2eproto_once, descriptor_table_speechly_2fslu_2fv2beta1_2fbatch_2eproto_deps, 1, 9, schemas, file_default_instances, TableStruct_speechly_2fslu_2fv2beta1_2fbatch_2eproto::offsets, file_level_metadata_speechly_2fslu_2fv2beta1_2fbatch_2eproto, file_level_enum_descriptors_speechly_2fslu_2fv2beta1_2fbatch_2eproto, file_level_service_descriptors_speechly_2fslu_2fv2beta1_2fbatch_2eproto, @@ -372,7 +371,7 @@ bool HttpResource_Method_IsValid(int value) { } #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) -constexpr HttpResource_Method HttpResource::METHOD_INVALID; +constexpr HttpResource_Method HttpResource::METHOD_UNSPECIFIED; constexpr HttpResource_Method HttpResource::METHOD_GET; constexpr HttpResource_Method HttpResource::METHOD_POST; constexpr HttpResource_Method HttpResource::METHOD_PUT; @@ -397,7 +396,7 @@ bool Operation_Status_IsValid(int value) { } #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) -constexpr Operation_Status Operation::STATUS_INVALID; +constexpr Operation_Status Operation::STATUS_UNSPECIFIED; constexpr Operation_Status Operation::STATUS_PENDING; constexpr Operation_Status Operation::STATUS_DONE; constexpr Operation_Status Operation::STATUS_ERROR; @@ -405,15 +404,16 @@ constexpr Operation_Status Operation::Status_MIN; constexpr Operation_Status Operation::Status_MAX; constexpr int Operation::Status_ARRAYSIZE; #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Operation_OperationError_descriptor() { +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Operation_ErrorCode_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_speechly_2fslu_2fv2beta1_2fbatch_2eproto); return file_level_enum_descriptors_speechly_2fslu_2fv2beta1_2fbatch_2eproto[2]; } -bool Operation_OperationError_IsValid(int value) { +bool Operation_ErrorCode_IsValid(int value) { switch (value) { case 0: case 1: case 2: + case 3: case 4: case 5: case 6: @@ -424,15 +424,16 @@ bool Operation_OperationError_IsValid(int value) { } #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) -constexpr Operation_OperationError Operation::OPERATION_ERROR_INVALID; -constexpr Operation_OperationError Operation::OPERATION_ERROR_UNSUPPORTED_LANGUAGE; -constexpr Operation_OperationError Operation::OPERATION_ERROR_INTERNAL; -constexpr Operation_OperationError Operation::OPERATION_ERROR_INVALID_SOURCE; -constexpr Operation_OperationError Operation::OPERATION_ERROR_INVALID_DESTINATION; -constexpr Operation_OperationError Operation::OPERATION_ERROR_INVALID_AUDIO; -constexpr Operation_OperationError Operation::OperationError_MIN; -constexpr Operation_OperationError Operation::OperationError_MAX; -constexpr int Operation::OperationError_ARRAYSIZE; +constexpr Operation_ErrorCode Operation::ERROR_UNSPECIFIED; +constexpr Operation_ErrorCode Operation::ERROR_UNSUPPORTED_LANGUAGE; +constexpr Operation_ErrorCode Operation::ERROR_INTERNAL; +constexpr Operation_ErrorCode Operation::ERROR_INVALID_PARAMETERS; +constexpr Operation_ErrorCode Operation::ERROR_INVALID_SOURCE; +constexpr Operation_ErrorCode Operation::ERROR_INVALID_DESTINATION; +constexpr Operation_ErrorCode Operation::ERROR_INVALID_AUDIO; +constexpr Operation_ErrorCode Operation::ErrorCode_MIN; +constexpr Operation_ErrorCode Operation::ErrorCode_MAX; +constexpr int Operation::ErrorCode_ARRAYSIZE; #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* OperationResult_ResultType_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_speechly_2fslu_2fv2beta1_2fbatch_2eproto); @@ -451,7 +452,7 @@ bool OperationResult_ResultType_IsValid(int value) { } #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) -constexpr OperationResult_ResultType OperationResult::RESULT_TYPE_INVALID; +constexpr OperationResult_ResultType OperationResult::RESULT_TYPE_UNSPECIFIED; constexpr OperationResult_ResultType OperationResult::RESULT_TYPE_TRANSCRIPT_LEXICAL; constexpr OperationResult_ResultType OperationResult::RESULT_TYPE_TRANSCRIPT_DISPLAY; constexpr OperationResult_ResultType OperationResult::RESULT_TYPE_TRANSCRIPT_TRANSLATION; @@ -2167,12 +2168,12 @@ const char* Operation::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID:: CHK_(ptr); } else goto handle_unusual; continue; - // .speechly.slu.v2beta1.Operation.OperationError error_code = 18; + // .speechly.slu.v2beta1.Operation.ErrorCode error_code = 18; case 18: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 144)) { ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - _internal_set_error_code(static_cast<::speechly::slu::v2beta1::Operation_OperationError>(val)); + _internal_set_error_code(static_cast<::speechly::slu::v2beta1::Operation_ErrorCode>(val)); } else goto handle_unusual; continue; // string error_description = 19; @@ -2314,7 +2315,7 @@ ::PROTOBUF_NAMESPACE_ID::uint8* Operation::_InternalSerialize( 17, this->_internal_batch_reference(), target); } - // .speechly.slu.v2beta1.Operation.OperationError error_code = 18; + // .speechly.slu.v2beta1.Operation.ErrorCode error_code = 18; if (this->_internal_error_code() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( @@ -2450,7 +2451,7 @@ size_t Operation::ByteSizeLong() const { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_status()); } - // .speechly.slu.v2beta1.Operation.OperationError error_code = 18; + // .speechly.slu.v2beta1.Operation.ErrorCode error_code = 18; if (this->_internal_error_code() != 0) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_error_code()); diff --git a/cpp/Speechly/speechly/slu/v2beta1/batch.pb.h b/cpp/Speechly/speechly/slu/v2beta1/batch.pb.h index 7daccea..7260f6f 100644 --- a/cpp/Speechly/speechly/slu/v2beta1/batch.pb.h +++ b/cpp/Speechly/speechly/slu/v2beta1/batch.pb.h @@ -104,7 +104,7 @@ namespace slu { namespace v2beta1 { enum HttpResource_Method : int { - HttpResource_Method_METHOD_INVALID = 0, + HttpResource_Method_METHOD_UNSPECIFIED = 0, HttpResource_Method_METHOD_GET = 1, HttpResource_Method_METHOD_POST = 2, HttpResource_Method_METHOD_PUT = 3, @@ -112,7 +112,7 @@ enum HttpResource_Method : int { HttpResource_Method_HttpResource_Method_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() }; bool HttpResource_Method_IsValid(int value); -constexpr HttpResource_Method HttpResource_Method_Method_MIN = HttpResource_Method_METHOD_INVALID; +constexpr HttpResource_Method HttpResource_Method_Method_MIN = HttpResource_Method_METHOD_UNSPECIFIED; constexpr HttpResource_Method HttpResource_Method_Method_MAX = HttpResource_Method_METHOD_PUT; constexpr int HttpResource_Method_Method_ARRAYSIZE = HttpResource_Method_Method_MAX + 1; @@ -131,7 +131,7 @@ inline bool HttpResource_Method_Parse( HttpResource_Method_descriptor(), name, value); } enum Operation_Status : int { - Operation_Status_STATUS_INVALID = 0, + Operation_Status_STATUS_UNSPECIFIED = 0, Operation_Status_STATUS_PENDING = 1, Operation_Status_STATUS_DONE = 2, Operation_Status_STATUS_ERROR = 3, @@ -139,7 +139,7 @@ enum Operation_Status : int { Operation_Status_Operation_Status_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() }; bool Operation_Status_IsValid(int value); -constexpr Operation_Status Operation_Status_Status_MIN = Operation_Status_STATUS_INVALID; +constexpr Operation_Status Operation_Status_Status_MIN = Operation_Status_STATUS_UNSPECIFIED; constexpr Operation_Status Operation_Status_Status_MAX = Operation_Status_STATUS_ERROR; constexpr int Operation_Status_Status_ARRAYSIZE = Operation_Status_Status_MAX + 1; @@ -157,37 +157,38 @@ inline bool Operation_Status_Parse( return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( Operation_Status_descriptor(), name, value); } -enum Operation_OperationError : int { - Operation_OperationError_OPERATION_ERROR_INVALID = 0, - Operation_OperationError_OPERATION_ERROR_UNSUPPORTED_LANGUAGE = 1, - Operation_OperationError_OPERATION_ERROR_INTERNAL = 2, - Operation_OperationError_OPERATION_ERROR_INVALID_SOURCE = 4, - Operation_OperationError_OPERATION_ERROR_INVALID_DESTINATION = 5, - Operation_OperationError_OPERATION_ERROR_INVALID_AUDIO = 6, - Operation_OperationError_Operation_OperationError_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), - Operation_OperationError_Operation_OperationError_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() +enum Operation_ErrorCode : int { + Operation_ErrorCode_ERROR_UNSPECIFIED = 0, + Operation_ErrorCode_ERROR_UNSUPPORTED_LANGUAGE = 1, + Operation_ErrorCode_ERROR_INTERNAL = 2, + Operation_ErrorCode_ERROR_INVALID_PARAMETERS = 3, + Operation_ErrorCode_ERROR_INVALID_SOURCE = 4, + Operation_ErrorCode_ERROR_INVALID_DESTINATION = 5, + Operation_ErrorCode_ERROR_INVALID_AUDIO = 6, + Operation_ErrorCode_Operation_ErrorCode_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), + Operation_ErrorCode_Operation_ErrorCode_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() }; -bool Operation_OperationError_IsValid(int value); -constexpr Operation_OperationError Operation_OperationError_OperationError_MIN = Operation_OperationError_OPERATION_ERROR_INVALID; -constexpr Operation_OperationError Operation_OperationError_OperationError_MAX = Operation_OperationError_OPERATION_ERROR_INVALID_AUDIO; -constexpr int Operation_OperationError_OperationError_ARRAYSIZE = Operation_OperationError_OperationError_MAX + 1; +bool Operation_ErrorCode_IsValid(int value); +constexpr Operation_ErrorCode Operation_ErrorCode_ErrorCode_MIN = Operation_ErrorCode_ERROR_UNSPECIFIED; +constexpr Operation_ErrorCode Operation_ErrorCode_ErrorCode_MAX = Operation_ErrorCode_ERROR_INVALID_AUDIO; +constexpr int Operation_ErrorCode_ErrorCode_ARRAYSIZE = Operation_ErrorCode_ErrorCode_MAX + 1; -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Operation_OperationError_descriptor(); +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Operation_ErrorCode_descriptor(); template -inline const std::string& Operation_OperationError_Name(T enum_t_value) { - static_assert(::std::is_same::value || +inline const std::string& Operation_ErrorCode_Name(T enum_t_value) { + static_assert(::std::is_same::value || ::std::is_integral::value, - "Incorrect type passed to function Operation_OperationError_Name."); + "Incorrect type passed to function Operation_ErrorCode_Name."); return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - Operation_OperationError_descriptor(), enum_t_value); + Operation_ErrorCode_descriptor(), enum_t_value); } -inline bool Operation_OperationError_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Operation_OperationError* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - Operation_OperationError_descriptor(), name, value); +inline bool Operation_ErrorCode_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Operation_ErrorCode* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + Operation_ErrorCode_descriptor(), name, value); } enum OperationResult_ResultType : int { - OperationResult_ResultType_RESULT_TYPE_INVALID = 0, + OperationResult_ResultType_RESULT_TYPE_UNSPECIFIED = 0, OperationResult_ResultType_RESULT_TYPE_TRANSCRIPT_LEXICAL = 1, OperationResult_ResultType_RESULT_TYPE_TRANSCRIPT_DISPLAY = 2, OperationResult_ResultType_RESULT_TYPE_TRANSCRIPT_TRANSLATION = 3, @@ -195,7 +196,7 @@ enum OperationResult_ResultType : int { OperationResult_ResultType_OperationResult_ResultType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() }; bool OperationResult_ResultType_IsValid(int value); -constexpr OperationResult_ResultType OperationResult_ResultType_ResultType_MIN = OperationResult_ResultType_RESULT_TYPE_INVALID; +constexpr OperationResult_ResultType OperationResult_ResultType_ResultType_MIN = OperationResult_ResultType_RESULT_TYPE_UNSPECIFIED; constexpr OperationResult_ResultType OperationResult_ResultType_ResultType_MAX = OperationResult_ResultType_RESULT_TYPE_TRANSCRIPT_TRANSLATION; constexpr int OperationResult_ResultType_ResultType_ARRAYSIZE = OperationResult_ResultType_ResultType_MAX + 1; @@ -490,8 +491,8 @@ class HttpResource final : typedef HttpResource_Header Header; typedef HttpResource_Method Method; - static constexpr Method METHOD_INVALID = - HttpResource_Method_METHOD_INVALID; + static constexpr Method METHOD_UNSPECIFIED = + HttpResource_Method_METHOD_UNSPECIFIED; static constexpr Method METHOD_GET = HttpResource_Method_METHOD_GET; static constexpr Method METHOD_POST = @@ -1298,8 +1299,8 @@ class Operation final : // nested types ---------------------------------------------------- typedef Operation_Status Status; - static constexpr Status STATUS_INVALID = - Operation_Status_STATUS_INVALID; + static constexpr Status STATUS_UNSPECIFIED = + Operation_Status_STATUS_UNSPECIFIED; static constexpr Status STATUS_PENDING = Operation_Status_STATUS_PENDING; static constexpr Status STATUS_DONE = @@ -1331,42 +1332,44 @@ class Operation final : return Operation_Status_Parse(name, value); } - typedef Operation_OperationError OperationError; - static constexpr OperationError OPERATION_ERROR_INVALID = - Operation_OperationError_OPERATION_ERROR_INVALID; - static constexpr OperationError OPERATION_ERROR_UNSUPPORTED_LANGUAGE = - Operation_OperationError_OPERATION_ERROR_UNSUPPORTED_LANGUAGE; - static constexpr OperationError OPERATION_ERROR_INTERNAL = - Operation_OperationError_OPERATION_ERROR_INTERNAL; - static constexpr OperationError OPERATION_ERROR_INVALID_SOURCE = - Operation_OperationError_OPERATION_ERROR_INVALID_SOURCE; - static constexpr OperationError OPERATION_ERROR_INVALID_DESTINATION = - Operation_OperationError_OPERATION_ERROR_INVALID_DESTINATION; - static constexpr OperationError OPERATION_ERROR_INVALID_AUDIO = - Operation_OperationError_OPERATION_ERROR_INVALID_AUDIO; - static inline bool OperationError_IsValid(int value) { - return Operation_OperationError_IsValid(value); - } - static constexpr OperationError OperationError_MIN = - Operation_OperationError_OperationError_MIN; - static constexpr OperationError OperationError_MAX = - Operation_OperationError_OperationError_MAX; - static constexpr int OperationError_ARRAYSIZE = - Operation_OperationError_OperationError_ARRAYSIZE; + typedef Operation_ErrorCode ErrorCode; + static constexpr ErrorCode ERROR_UNSPECIFIED = + Operation_ErrorCode_ERROR_UNSPECIFIED; + static constexpr ErrorCode ERROR_UNSUPPORTED_LANGUAGE = + Operation_ErrorCode_ERROR_UNSUPPORTED_LANGUAGE; + static constexpr ErrorCode ERROR_INTERNAL = + Operation_ErrorCode_ERROR_INTERNAL; + static constexpr ErrorCode ERROR_INVALID_PARAMETERS = + Operation_ErrorCode_ERROR_INVALID_PARAMETERS; + static constexpr ErrorCode ERROR_INVALID_SOURCE = + Operation_ErrorCode_ERROR_INVALID_SOURCE; + static constexpr ErrorCode ERROR_INVALID_DESTINATION = + Operation_ErrorCode_ERROR_INVALID_DESTINATION; + static constexpr ErrorCode ERROR_INVALID_AUDIO = + Operation_ErrorCode_ERROR_INVALID_AUDIO; + static inline bool ErrorCode_IsValid(int value) { + return Operation_ErrorCode_IsValid(value); + } + static constexpr ErrorCode ErrorCode_MIN = + Operation_ErrorCode_ErrorCode_MIN; + static constexpr ErrorCode ErrorCode_MAX = + Operation_ErrorCode_ErrorCode_MAX; + static constexpr int ErrorCode_ARRAYSIZE = + Operation_ErrorCode_ErrorCode_ARRAYSIZE; static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* - OperationError_descriptor() { - return Operation_OperationError_descriptor(); + ErrorCode_descriptor() { + return Operation_ErrorCode_descriptor(); } template - static inline const std::string& OperationError_Name(T enum_t_value) { - static_assert(::std::is_same::value || + static inline const std::string& ErrorCode_Name(T enum_t_value) { + static_assert(::std::is_same::value || ::std::is_integral::value, - "Incorrect type passed to function OperationError_Name."); - return Operation_OperationError_Name(enum_t_value); + "Incorrect type passed to function ErrorCode_Name."); + return Operation_ErrorCode_Name(enum_t_value); } - static inline bool OperationError_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - OperationError* value) { - return Operation_OperationError_Parse(name, value); + static inline bool ErrorCode_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + ErrorCode* value) { + return Operation_ErrorCode_Parse(name, value); } // accessors ------------------------------------------------------- @@ -1557,13 +1560,13 @@ class Operation final : void _internal_set_status(::speechly::slu::v2beta1::Operation_Status value); public: - // .speechly.slu.v2beta1.Operation.OperationError error_code = 18; + // .speechly.slu.v2beta1.Operation.ErrorCode error_code = 18; void clear_error_code(); - ::speechly::slu::v2beta1::Operation_OperationError error_code() const; - void set_error_code(::speechly::slu::v2beta1::Operation_OperationError value); + ::speechly::slu::v2beta1::Operation_ErrorCode error_code() const; + void set_error_code(::speechly::slu::v2beta1::Operation_ErrorCode value); private: - ::speechly::slu::v2beta1::Operation_OperationError _internal_error_code() const; - void _internal_set_error_code(::speechly::slu::v2beta1::Operation_OperationError value); + ::speechly::slu::v2beta1::Operation_ErrorCode _internal_error_code() const; + void _internal_set_error_code(::speechly::slu::v2beta1::Operation_ErrorCode value); public: // @@protoc_insertion_point(class_scope:speechly.slu.v2beta1.Operation) @@ -1704,8 +1707,8 @@ class OperationResult final : // nested types ---------------------------------------------------- typedef OperationResult_ResultType ResultType; - static constexpr ResultType RESULT_TYPE_INVALID = - OperationResult_ResultType_RESULT_TYPE_INVALID; + static constexpr ResultType RESULT_TYPE_UNSPECIFIED = + OperationResult_ResultType_RESULT_TYPE_UNSPECIFIED; static constexpr ResultType RESULT_TYPE_TRANSCRIPT_LEXICAL = OperationResult_ResultType_RESULT_TYPE_TRANSCRIPT_LEXICAL; static constexpr ResultType RESULT_TYPE_TRANSCRIPT_DISPLAY = @@ -3427,22 +3430,22 @@ inline void Operation::set_allocated_duration(PROTOBUF_NAMESPACE_ID::Duration* d // @@protoc_insertion_point(field_set_allocated:speechly.slu.v2beta1.Operation.duration) } -// .speechly.slu.v2beta1.Operation.OperationError error_code = 18; +// .speechly.slu.v2beta1.Operation.ErrorCode error_code = 18; inline void Operation::clear_error_code() { error_code_ = 0; } -inline ::speechly::slu::v2beta1::Operation_OperationError Operation::_internal_error_code() const { - return static_cast< ::speechly::slu::v2beta1::Operation_OperationError >(error_code_); +inline ::speechly::slu::v2beta1::Operation_ErrorCode Operation::_internal_error_code() const { + return static_cast< ::speechly::slu::v2beta1::Operation_ErrorCode >(error_code_); } -inline ::speechly::slu::v2beta1::Operation_OperationError Operation::error_code() const { +inline ::speechly::slu::v2beta1::Operation_ErrorCode Operation::error_code() const { // @@protoc_insertion_point(field_get:speechly.slu.v2beta1.Operation.error_code) return _internal_error_code(); } -inline void Operation::_internal_set_error_code(::speechly::slu::v2beta1::Operation_OperationError value) { +inline void Operation::_internal_set_error_code(::speechly::slu::v2beta1::Operation_ErrorCode value) { error_code_ = value; } -inline void Operation::set_error_code(::speechly::slu::v2beta1::Operation_OperationError value) { +inline void Operation::set_error_code(::speechly::slu::v2beta1::Operation_ErrorCode value) { _internal_set_error_code(value); // @@protoc_insertion_point(field_set:speechly.slu.v2beta1.Operation.error_code) } @@ -3968,10 +3971,10 @@ template <> inline const EnumDescriptor* GetEnumDescriptor< ::speechly::slu::v2beta1::Operation_Status>() { return ::speechly::slu::v2beta1::Operation_Status_descriptor(); } -template <> struct is_proto_enum< ::speechly::slu::v2beta1::Operation_OperationError> : ::std::true_type {}; +template <> struct is_proto_enum< ::speechly::slu::v2beta1::Operation_ErrorCode> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::speechly::slu::v2beta1::Operation_OperationError>() { - return ::speechly::slu::v2beta1::Operation_OperationError_descriptor(); +inline const EnumDescriptor* GetEnumDescriptor< ::speechly::slu::v2beta1::Operation_ErrorCode>() { + return ::speechly::slu::v2beta1::Operation_ErrorCode_descriptor(); } template <> struct is_proto_enum< ::speechly::slu::v2beta1::OperationResult_ResultType> : ::std::true_type {}; template <> diff --git a/docs/analytics.md b/docs/analytics.md index c5d2c9a..6d56e37 100644 --- a/docs/analytics.md +++ b/docs/analytics.md @@ -16,6 +16,7 @@ for given apps and/or projects. ## Messages - [DecoderInfo](#speechly.analytics.v1.DecoderInfo) +- [ProcessingInfo](#speechly.analytics.v1.ProcessingInfo) - [RegisterUtteranceRequest](#speechly.analytics.v1.RegisterUtteranceRequest) - [RegisterUtteranceResponse](#speechly.analytics.v1.RegisterUtteranceResponse) - [Utterance](#speechly.analytics.v1.Utterance) @@ -40,6 +41,19 @@ Information about the on-device decoder. | total_seconds_transcribed | [int32](#int32) | Cumulative sum of the utterance length in seconds for the decoder. | + +### ProcessingInfo + +Specifies what processing has been applied to an utterance. + +#### Fields + +| name | type | description | +| ---- | ---- | ----------- | +| processing_types | [ProcessingType](#speechly.analytics.v1.ProcessingType) | The processing types that were applied | +| model_id | [string](#string) | id of the model that was used for processing | + + ### RegisterUtteranceRequest @@ -49,7 +63,7 @@ A single data point of an utterance recognized by Speechly On Device or Speechly | name | type | description | | ---- | ---- | ----------- | -| app_id | [string](#string) | | +| app_id | [string](#string) | id of the application the operation belongs to | | device_id | [string](#string) | device_id of the utterance. | | utterance_length_seconds | [int32](#int32) | Length of the recognized utterance in seconds. | | utterance_length_chars | [int32](#int32) | Length of the recognized utterance in characters. | @@ -59,6 +73,9 @@ A single data point of an utterance recognized by Speechly On Device or Speechly | status | [Status](#speechly.analytics.v1.RegisterUtteranceRequest.Status) | The status of the processing. | | operation_id | [string](#string) | batch api operation id of the utterance | | batch_id | [string](#string) | id of the batch the operation belongs to | +| project_id | [string](#string) | id of the project the operation belongs to | +| language | [string](#string) | language of the utterance (BCP-47) | +| processing_info | [ProcessingInfo](#speechly.analytics.v1.ProcessingInfo) | Information about the processing applied to the utterance | @@ -101,7 +118,7 @@ Single row of statistics response. | count | [int32](#int32) | Count (sum) of utterances in the current period. | | utterances_seconds | [int32](#int32) | Total duration of the utterances in the current period. | | annotated_seconds | [int32](#int32) | Total duration of annotated utterances in the current period. | -| project_id | [string](#string) | project_id or empty, if specifiying a project. | +| project_id | [string](#string) | project_id or empty, if specifying a project. | diff --git a/docs/slu.md b/docs/slu.md index b09d2ca..3af64b8 100644 --- a/docs/slu.md +++ b/docs/slu.md @@ -73,8 +73,8 @@ Describes a single batch operation. | app_id | [string](#string) | The application context for the operation. | | result | [OperationResult](#speechly.slu.v2beta1.OperationResult) | If the operation status is STATUS_DONE and the destination is not set,
the results of the processing. | | duration | [Duration](#google.protobuf.Duration) | The duration of the audio. | -| error_code | [OperationError](#speechly.slu.v2beta1.Operation.OperationError) | | -| error_description | [string](#string) | Contains a human readable description of the error if the operation status is
STATUS_ERROR. | +| error_code | [ErrorCode](#speechly.slu.v2beta1.Operation.ErrorCode) | | +| error_description | [string](#string) | Contains a human readable description of the error if the operation status
is STATUS_ERROR. | | source_url | [string](#string) | The locator to the source audio. | | destination_url | [string](#string) | The locator to the result target. | @@ -90,7 +90,7 @@ Describes the results of the processing that took place. | ---- | ---- | ----------- | | type | [ResultType](#speechly.slu.v2beta1.OperationResult.ResultType) | The type of this result. | | text | [string](#string) | The textual representation of the results. | -| tokens | [Token](#speechly.slu.v2beta1.Token) | The tokenized representation of the result. Only available if requested in the `ProcessingConfiguration`. | +| tokens | [Token](#speechly.slu.v2beta1.Token) | The tokenized representation of the result. Only available if requested in
the `ProcessingConfiguration`. | @@ -118,7 +118,7 @@ Describes the configuration options common for the input batch. | app_id | [string](#string) | The processing context, Speechly Application ID.
Optional. If not provided, the processing context will be determined
from the login information. | | language_codes | [string](#string) | The language(s) of the audio sent in the request as a BCP-47 language tag
(e.g. "en-US"). Defaults to the target application language(s).
Optional. | | processing_config | [ProcessingConfiguration](#speechly.slu.v2beta1.ProcessingConfiguration) | Processing configuration.
Required. | -| batch_reference | [string](#string) | Reference id for a set of related operations. For example an identifier of the source
system.
Optional. | +| batch_reference | [string](#string) | Reference id for a set of related operations. For example an identifier of
the source system. Optional.
Optional. | | options | [Option](#speechly.slu.v2beta1.Option) | Additional batch specific options.
Optional. | @@ -148,7 +148,7 @@ Describes the configuration options unique to a single audio source. | destination_url | [string](#string) | The locator to the result target. The payload will be `Operation` as JSON.
Optional. | | completion_webhook | [HttpResource](#speechly.slu.v2beta1.HttpResource) | HTTP endpoint to be notified on completion of the processing. The payload
will be `Operation` as JSON.
Optional. | | reference | [string](#string) | Reference id for the operation. For example an identifier of the source
system.
Optional. | -| device_id | [string](#string) | The device ID of the audio source, for example a microphone identifier as UUID.
Optional. | +| device_id | [string](#string) | The device ID of the audio source, for example a microphone identifier as
UUID.
Optional. | @@ -166,16 +166,16 @@ Describes a response to request to process audio from a pre-existing source. ### ProcessingConfiguration -Describes the processing options for the audio. Note that not all options are available for -all languages or on all Payment Plans. +Describes the processing options for the audio. Note that not all options are +available for all languages or on all Payment Plans. #### Fields | name | type | description | | ---- | ---- | ----------- | -| tokenize | [bool](#bool) | The processing should include the token level transcription and determination of time stamps for tokens. | -| translate | [bool](#bool) | The processing should include translating the audio to English. | -| skip_transcribe | [bool](#bool) | The processing should not include transcribing the audio to the source language. This option should be used
with translate (or other similar option) to suppress the normal Speech Recognition processing. | +| tokenize | [bool](#bool) | The processing should include the token level transcription and
determination of time stamps for tokens.
Optional. | +| translate | [bool](#bool) | The processing should include translating the audio to English.
Optional. | +| skip_transcribe | [bool](#bool) | The processing should not include transcribing the audio to the source
language. This option should be used with translate (or other similar
option) to suppress the normal Speech Recognition processing.
Optional. | @@ -208,8 +208,8 @@ Describes the statuses of the queried operations. ### Token -Describes a single meaningful unit of speech. In languages that use spaces to separate words, -closely maps to those words. +Describes a single meaningful unit of speech. In languages that use spaces to +separate words, closely maps to those words. #### Fields diff --git a/go/speechly/analytics/v1/analytics.pb.go b/go/speechly/analytics/v1/analytics.pb.go index 4fbef11..4c15721 100644 --- a/go/speechly/analytics/v1/analytics.pb.go +++ b/go/speechly/analytics/v1/analytics.pb.go @@ -73,6 +73,74 @@ func (Aggregation) EnumDescriptor() ([]byte, []int) { return file_speechly_analytics_v1_analytics_proto_rawDescGZIP(), []int{0} } +// The various types of processing that can be applied to the audio. +type ProcessingType int32 + +const ( + ProcessingType_PROCESSING_TYPE_INVALID ProcessingType = 0 + ProcessingType_PROCESSING_TYPE_TRANSCRIPTION ProcessingType = 1 + ProcessingType_PROCESSING_TYPE_NLU ProcessingType = 2 + ProcessingType_PROCESSING_TYPE_LANGUAGE_DETECTION ProcessingType = 3 + ProcessingType_PROCESSING_TYPE_VAD ProcessingType = 4 + ProcessingType_PROCESSING_TYPE_TRANSLATION ProcessingType = 5 + ProcessingType_PROCESSING_TYPE_AUDIO_EVENT_DETECTION ProcessingType = 6 + ProcessingType_PROCESSING_TYPE_TONE_OF_VOICE_LABELLING ProcessingType = 7 + ProcessingType_PROCESSING_TYPE_SHALLOW_FUSION ProcessingType = 8 +) + +// Enum value maps for ProcessingType. +var ( + ProcessingType_name = map[int32]string{ + 0: "PROCESSING_TYPE_INVALID", + 1: "PROCESSING_TYPE_TRANSCRIPTION", + 2: "PROCESSING_TYPE_NLU", + 3: "PROCESSING_TYPE_LANGUAGE_DETECTION", + 4: "PROCESSING_TYPE_VAD", + 5: "PROCESSING_TYPE_TRANSLATION", + 6: "PROCESSING_TYPE_AUDIO_EVENT_DETECTION", + 7: "PROCESSING_TYPE_TONE_OF_VOICE_LABELLING", + 8: "PROCESSING_TYPE_SHALLOW_FUSION", + } + ProcessingType_value = map[string]int32{ + "PROCESSING_TYPE_INVALID": 0, + "PROCESSING_TYPE_TRANSCRIPTION": 1, + "PROCESSING_TYPE_NLU": 2, + "PROCESSING_TYPE_LANGUAGE_DETECTION": 3, + "PROCESSING_TYPE_VAD": 4, + "PROCESSING_TYPE_TRANSLATION": 5, + "PROCESSING_TYPE_AUDIO_EVENT_DETECTION": 6, + "PROCESSING_TYPE_TONE_OF_VOICE_LABELLING": 7, + "PROCESSING_TYPE_SHALLOW_FUSION": 8, + } +) + +func (x ProcessingType) Enum() *ProcessingType { + p := new(ProcessingType) + *p = x + return p +} + +func (x ProcessingType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ProcessingType) Descriptor() protoreflect.EnumDescriptor { + return file_speechly_analytics_v1_analytics_proto_enumTypes[1].Descriptor() +} + +func (ProcessingType) Type() protoreflect.EnumType { + return &file_speechly_analytics_v1_analytics_proto_enumTypes[1] +} + +func (x ProcessingType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ProcessingType.Descriptor instead. +func (ProcessingType) EnumDescriptor() ([]byte, []int) { + return file_speechly_analytics_v1_analytics_proto_rawDescGZIP(), []int{1} +} + // Single row of statistics response. type UtteranceStatisticsPeriod struct { state protoimpl.MessageState @@ -89,7 +157,7 @@ type UtteranceStatisticsPeriod struct { UtterancesSeconds int32 `protobuf:"varint,5,opt,name=utterances_seconds,json=utterancesSeconds,proto3" json:"utterances_seconds,omitempty"` // Total duration of annotated utterances in the current period. AnnotatedSeconds int32 `protobuf:"varint,6,opt,name=annotated_seconds,json=annotatedSeconds,proto3" json:"annotated_seconds,omitempty"` - // project_id or empty, if specifiying a project. + // project_id or empty, if specifying a project. ProjectId string `protobuf:"bytes,7,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` } @@ -301,6 +369,64 @@ func (x *DecoderInfo) GetTotalSecondsTranscribed() int32 { return 0 } +// Specifies what processing has been applied to an utterance. +type ProcessingInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The processing types that were applied + ProcessingTypes []ProcessingType `protobuf:"varint,1,rep,packed,name=processing_types,json=processingTypes,proto3,enum=speechly.analytics.v1.ProcessingType" json:"processing_types,omitempty"` + // id of the model that was used for processing + ModelId string `protobuf:"bytes,2,opt,name=model_id,json=modelId,proto3" json:"model_id,omitempty"` +} + +func (x *ProcessingInfo) Reset() { + *x = ProcessingInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_speechly_analytics_v1_analytics_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProcessingInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProcessingInfo) ProtoMessage() {} + +func (x *ProcessingInfo) ProtoReflect() protoreflect.Message { + mi := &file_speechly_analytics_v1_analytics_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ProcessingInfo.ProtoReflect.Descriptor instead. +func (*ProcessingInfo) Descriptor() ([]byte, []int) { + return file_speechly_analytics_v1_analytics_proto_rawDescGZIP(), []int{3} +} + +func (x *ProcessingInfo) GetProcessingTypes() []ProcessingType { + if x != nil { + return x.ProcessingTypes + } + return nil +} + +func (x *ProcessingInfo) GetModelId() string { + if x != nil { + return x.ModelId + } + return "" +} + var File_speechly_analytics_v1_analytics_proto protoreflect.FileDescriptor var file_speechly_analytics_v1_analytics_proto_rawDesc = []byte{ @@ -337,23 +463,51 @@ var file_speechly_analytics_v1_analytics_proto_rawDesc = []byte{ 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x17, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, - 0x64, 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, 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, + 0x64, 0x22, 0x7d, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x49, + 0x6e, 0x66, 0x6f, 0x12, 0x50, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x69, 0x6e, + 0x67, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x25, 0x2e, + 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, + 0x63, 0x73, 0x2e, 0x76, 0x31, 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, + 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 ( @@ -368,20 +522,23 @@ func file_speechly_analytics_v1_analytics_proto_rawDescGZIP() []byte { return file_speechly_analytics_v1_analytics_proto_rawDescData } -var file_speechly_analytics_v1_analytics_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_speechly_analytics_v1_analytics_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_speechly_analytics_v1_analytics_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_speechly_analytics_v1_analytics_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_speechly_analytics_v1_analytics_proto_goTypes = []interface{}{ (Aggregation)(0), // 0: speechly.analytics.v1.Aggregation - (*UtteranceStatisticsPeriod)(nil), // 1: speechly.analytics.v1.UtteranceStatisticsPeriod - (*Utterance)(nil), // 2: speechly.analytics.v1.Utterance - (*DecoderInfo)(nil), // 3: speechly.analytics.v1.DecoderInfo + (ProcessingType)(0), // 1: speechly.analytics.v1.ProcessingType + (*UtteranceStatisticsPeriod)(nil), // 2: speechly.analytics.v1.UtteranceStatisticsPeriod + (*Utterance)(nil), // 3: speechly.analytics.v1.Utterance + (*DecoderInfo)(nil), // 4: speechly.analytics.v1.DecoderInfo + (*ProcessingInfo)(nil), // 5: speechly.analytics.v1.ProcessingInfo } var file_speechly_analytics_v1_analytics_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name + 1, // 0: speechly.analytics.v1.ProcessingInfo.processing_types:type_name -> speechly.analytics.v1.ProcessingType + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name } func init() { file_speechly_analytics_v1_analytics_proto_init() } @@ -426,14 +583,26 @@ func file_speechly_analytics_v1_analytics_proto_init() { return nil } } + file_speechly_analytics_v1_analytics_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProcessingInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_speechly_analytics_v1_analytics_proto_rawDesc, - NumEnums: 1, - NumMessages: 3, + NumEnums: 2, + NumMessages: 4, NumExtensions: 0, NumServices: 0, }, diff --git a/go/speechly/analytics/v1/analytics_api.pb.go b/go/speechly/analytics/v1/analytics_api.pb.go index 298e2db..87978bd 100644 --- a/go/speechly/analytics/v1/analytics_api.pb.go +++ b/go/speechly/analytics/v1/analytics_api.pb.go @@ -451,6 +451,7 @@ type RegisterUtteranceRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // id of the application the operation belongs to AppId string `protobuf:"bytes,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"` // device_id of the utterance. DeviceId string `protobuf:"bytes,2,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` @@ -470,6 +471,12 @@ type RegisterUtteranceRequest struct { OperationId string `protobuf:"bytes,9,opt,name=operation_id,json=operationId,proto3" json:"operation_id,omitempty"` // id of the batch the operation belongs to BatchId string `protobuf:"bytes,10,opt,name=batch_id,json=batchId,proto3" json:"batch_id,omitempty"` + // id of the project the operation belongs to + ProjectId string `protobuf:"bytes,11,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + // language of the utterance (BCP-47) + Language string `protobuf:"bytes,12,opt,name=language,proto3" json:"language,omitempty"` + // Information about the processing applied to the utterance + ProcessingInfo *ProcessingInfo `protobuf:"bytes,13,opt,name=processing_info,json=processingInfo,proto3" json:"processing_info,omitempty"` } func (x *RegisterUtteranceRequest) Reset() { @@ -574,6 +581,27 @@ func (x *RegisterUtteranceRequest) GetBatchId() string { return "" } +func (x *RegisterUtteranceRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *RegisterUtteranceRequest) GetLanguage() string { + if x != nil { + return x.Language + } + return "" +} + +func (x *RegisterUtteranceRequest) GetProcessingInfo() *ProcessingInfo { + if x != nil { + return x.ProcessingInfo + } + return nil +} + type RegisterUtteranceResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -681,7 +709,7 @@ var file_speechly_analytics_v1_analytics_api_proto_rawDesc = []byte{ 0x0b, 0x32, 0x20, 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, 0x52, 0x0a, 0x75, 0x74, 0x74, 0x65, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x22, - 0xd7, 0x04, 0x0a, 0x18, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x55, 0x74, 0x74, 0x65, + 0xe2, 0x05, 0x0a, 0x18, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x55, 0x74, 0x74, 0x65, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x61, 0x70, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, @@ -714,45 +742,53 @@ var file_speechly_analytics_v1_analytics_api_proto_rawDesc = []byte{ 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x69, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x62, 0x61, - 0x74, 0x63, 0x68, 0x49, 0x64, 0x22, 0x42, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, - 0x12, 0x0a, 0x0e, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, - 0x44, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x53, 0x55, - 0x43, 0x43, 0x45, 0x53, 0x53, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x54, 0x41, 0x54, 0x55, - 0x53, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x02, 0x22, 0x1b, 0x0a, 0x19, 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, 0x32, 0xe7, 0x02, 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, + 0x74, 0x63, 0x68, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x5f, 0x69, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, + 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, + 0x12, 0x4e, 0x0a, 0x0f, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x5f, 0x69, + 0x6e, 0x66, 0x6f, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x73, 0x70, 0x65, 0x65, + 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x2e, 0x76, + 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x66, 0x6f, + 0x52, 0x0e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x66, 0x6f, + 0x22, 0x42, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x54, + 0x41, 0x54, 0x55, 0x53, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x12, + 0x0a, 0x0e, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x53, 0x55, 0x43, 0x43, 0x45, 0x53, 0x53, + 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x45, 0x52, 0x52, + 0x4f, 0x52, 0x10, 0x02, 0x22, 0x1b, 0x0a, 0x19, 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, 0x32, 0xe7, 0x02, 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, - 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, 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, - 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, + 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, 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 ( @@ -783,6 +819,7 @@ var file_speechly_analytics_v1_analytics_api_proto_goTypes = []interface{}{ (*Utterance)(nil), // 10: speechly.analytics.v1.Utterance (*DecoderInfo)(nil), // 11: speechly.analytics.v1.DecoderInfo (*timestamppb.Timestamp)(nil), // 12: google.protobuf.Timestamp + (*ProcessingInfo)(nil), // 13: speechly.analytics.v1.ProcessingInfo } var file_speechly_analytics_v1_analytics_api_proto_depIdxs = []int32{ 0, // 0: speechly.analytics.v1.UtteranceStatisticsRequest.scope:type_name -> speechly.analytics.v1.UtteranceStatisticsRequest.Scope @@ -794,17 +831,18 @@ var file_speechly_analytics_v1_analytics_api_proto_depIdxs = []int32{ 12, // 6: speechly.analytics.v1.RegisterUtteranceRequest.created_time:type_name -> google.protobuf.Timestamp 12, // 7: speechly.analytics.v1.RegisterUtteranceRequest.finished_time:type_name -> google.protobuf.Timestamp 1, // 8: speechly.analytics.v1.RegisterUtteranceRequest.status:type_name -> speechly.analytics.v1.RegisterUtteranceRequest.Status - 2, // 9: speechly.analytics.v1.AnalyticsAPI.UtteranceStatistics:input_type -> speechly.analytics.v1.UtteranceStatisticsRequest - 4, // 10: speechly.analytics.v1.AnalyticsAPI.Utterances:input_type -> speechly.analytics.v1.UtterancesRequest - 6, // 11: speechly.analytics.v1.AnalyticsAPI.RegisterUtterance:input_type -> speechly.analytics.v1.RegisterUtteranceRequest - 3, // 12: speechly.analytics.v1.AnalyticsAPI.UtteranceStatistics:output_type -> speechly.analytics.v1.UtteranceStatisticsResponse - 5, // 13: speechly.analytics.v1.AnalyticsAPI.Utterances:output_type -> speechly.analytics.v1.UtterancesResponse - 7, // 14: speechly.analytics.v1.AnalyticsAPI.RegisterUtterance:output_type -> speechly.analytics.v1.RegisterUtteranceResponse - 12, // [12:15] is the sub-list for method output_type - 9, // [9:12] is the sub-list for method input_type - 9, // [9:9] is the sub-list for extension type_name - 9, // [9:9] is the sub-list for extension extendee - 0, // [0:9] is the sub-list for field type_name + 13, // 9: speechly.analytics.v1.RegisterUtteranceRequest.processing_info:type_name -> speechly.analytics.v1.ProcessingInfo + 2, // 10: speechly.analytics.v1.AnalyticsAPI.UtteranceStatistics:input_type -> speechly.analytics.v1.UtteranceStatisticsRequest + 4, // 11: speechly.analytics.v1.AnalyticsAPI.Utterances:input_type -> speechly.analytics.v1.UtterancesRequest + 6, // 12: speechly.analytics.v1.AnalyticsAPI.RegisterUtterance:input_type -> speechly.analytics.v1.RegisterUtteranceRequest + 3, // 13: speechly.analytics.v1.AnalyticsAPI.UtteranceStatistics:output_type -> speechly.analytics.v1.UtteranceStatisticsResponse + 5, // 14: speechly.analytics.v1.AnalyticsAPI.Utterances:output_type -> speechly.analytics.v1.UtterancesResponse + 7, // 15: speechly.analytics.v1.AnalyticsAPI.RegisterUtterance:output_type -> speechly.analytics.v1.RegisterUtteranceResponse + 13, // [13:16] is the sub-list for method output_type + 10, // [10:13] is the sub-list for method input_type + 10, // [10:10] is the sub-list for extension type_name + 10, // [10:10] is the sub-list for extension extendee + 0, // [0:10] is the sub-list for field type_name } func init() { file_speechly_analytics_v1_analytics_api_proto_init() } diff --git a/go/speechly/slu/v2beta1/batch.pb.go b/go/speechly/slu/v2beta1/batch.pb.go index a9819d1..33cc1e6 100644 --- a/go/speechly/slu/v2beta1/batch.pb.go +++ b/go/speechly/slu/v2beta1/batch.pb.go @@ -25,25 +25,25 @@ const ( type HttpResource_Method int32 const ( - HttpResource_METHOD_INVALID HttpResource_Method = 0 - HttpResource_METHOD_GET HttpResource_Method = 1 - HttpResource_METHOD_POST HttpResource_Method = 2 - HttpResource_METHOD_PUT HttpResource_Method = 3 + HttpResource_METHOD_UNSPECIFIED HttpResource_Method = 0 + HttpResource_METHOD_GET HttpResource_Method = 1 + HttpResource_METHOD_POST HttpResource_Method = 2 + HttpResource_METHOD_PUT HttpResource_Method = 3 ) // Enum value maps for HttpResource_Method. var ( HttpResource_Method_name = map[int32]string{ - 0: "METHOD_INVALID", + 0: "METHOD_UNSPECIFIED", 1: "METHOD_GET", 2: "METHOD_POST", 3: "METHOD_PUT", } HttpResource_Method_value = map[string]int32{ - "METHOD_INVALID": 0, - "METHOD_GET": 1, - "METHOD_POST": 2, - "METHOD_PUT": 3, + "METHOD_UNSPECIFIED": 0, + "METHOD_GET": 1, + "METHOD_POST": 2, + "METHOD_PUT": 3, } ) @@ -79,7 +79,7 @@ type Operation_Status int32 const ( // Default status is empty. - Operation_STATUS_INVALID Operation_Status = 0 + Operation_STATUS_UNSPECIFIED Operation_Status = 0 // The operation is queued for processing. Operation_STATUS_PENDING Operation_Status = 1 // The operation is complete and transcript is available. @@ -91,16 +91,16 @@ const ( // Enum value maps for Operation_Status. var ( Operation_Status_name = map[int32]string{ - 0: "STATUS_INVALID", + 0: "STATUS_UNSPECIFIED", 1: "STATUS_PENDING", 2: "STATUS_DONE", 3: "STATUS_ERROR", } Operation_Status_value = map[string]int32{ - "STATUS_INVALID": 0, - "STATUS_PENDING": 1, - "STATUS_DONE": 2, - "STATUS_ERROR": 3, + "STATUS_UNSPECIFIED": 0, + "STATUS_PENDING": 1, + "STATUS_DONE": 2, + "STATUS_ERROR": 3, } ) @@ -133,66 +133,70 @@ func (Operation_Status) EnumDescriptor() ([]byte, []int) { // Contains a machine readable error type if the operation status is // STATUS_ERROR. -type Operation_OperationError int32 +type Operation_ErrorCode int32 const ( - Operation_OPERATION_ERROR_INVALID Operation_OperationError = 0 + Operation_ERROR_UNSPECIFIED Operation_ErrorCode = 0 // The input was in a language that was not supported in this context. - Operation_OPERATION_ERROR_UNSUPPORTED_LANGUAGE Operation_OperationError = 1 + Operation_ERROR_UNSUPPORTED_LANGUAGE Operation_ErrorCode = 1 // An internal error occurred. - Operation_OPERATION_ERROR_INTERNAL Operation_OperationError = 2 + Operation_ERROR_INTERNAL Operation_ErrorCode = 2 + // Given parameters cannot be used to process the given input. + Operation_ERROR_INVALID_PARAMETERS Operation_ErrorCode = 3 // The source could not be read or understood. - Operation_OPERATION_ERROR_INVALID_SOURCE Operation_OperationError = 4 + Operation_ERROR_INVALID_SOURCE Operation_ErrorCode = 4 // The results could not be written to the destination. - Operation_OPERATION_ERROR_INVALID_DESTINATION Operation_OperationError = 5 + Operation_ERROR_INVALID_DESTINATION Operation_ErrorCode = 5 // The provided audio was not in a supported format. - Operation_OPERATION_ERROR_INVALID_AUDIO Operation_OperationError = 6 + Operation_ERROR_INVALID_AUDIO Operation_ErrorCode = 6 ) -// Enum value maps for Operation_OperationError. +// Enum value maps for Operation_ErrorCode. var ( - Operation_OperationError_name = map[int32]string{ - 0: "OPERATION_ERROR_INVALID", - 1: "OPERATION_ERROR_UNSUPPORTED_LANGUAGE", - 2: "OPERATION_ERROR_INTERNAL", - 4: "OPERATION_ERROR_INVALID_SOURCE", - 5: "OPERATION_ERROR_INVALID_DESTINATION", - 6: "OPERATION_ERROR_INVALID_AUDIO", - } - Operation_OperationError_value = map[string]int32{ - "OPERATION_ERROR_INVALID": 0, - "OPERATION_ERROR_UNSUPPORTED_LANGUAGE": 1, - "OPERATION_ERROR_INTERNAL": 2, - "OPERATION_ERROR_INVALID_SOURCE": 4, - "OPERATION_ERROR_INVALID_DESTINATION": 5, - "OPERATION_ERROR_INVALID_AUDIO": 6, + Operation_ErrorCode_name = map[int32]string{ + 0: "ERROR_UNSPECIFIED", + 1: "ERROR_UNSUPPORTED_LANGUAGE", + 2: "ERROR_INTERNAL", + 3: "ERROR_INVALID_PARAMETERS", + 4: "ERROR_INVALID_SOURCE", + 5: "ERROR_INVALID_DESTINATION", + 6: "ERROR_INVALID_AUDIO", + } + Operation_ErrorCode_value = map[string]int32{ + "ERROR_UNSPECIFIED": 0, + "ERROR_UNSUPPORTED_LANGUAGE": 1, + "ERROR_INTERNAL": 2, + "ERROR_INVALID_PARAMETERS": 3, + "ERROR_INVALID_SOURCE": 4, + "ERROR_INVALID_DESTINATION": 5, + "ERROR_INVALID_AUDIO": 6, } ) -func (x Operation_OperationError) Enum() *Operation_OperationError { - p := new(Operation_OperationError) +func (x Operation_ErrorCode) Enum() *Operation_ErrorCode { + p := new(Operation_ErrorCode) *p = x return p } -func (x Operation_OperationError) String() string { +func (x Operation_ErrorCode) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (Operation_OperationError) Descriptor() protoreflect.EnumDescriptor { +func (Operation_ErrorCode) Descriptor() protoreflect.EnumDescriptor { return file_speechly_slu_v2beta1_batch_proto_enumTypes[2].Descriptor() } -func (Operation_OperationError) Type() protoreflect.EnumType { +func (Operation_ErrorCode) Type() protoreflect.EnumType { return &file_speechly_slu_v2beta1_batch_proto_enumTypes[2] } -func (x Operation_OperationError) Number() protoreflect.EnumNumber { +func (x Operation_ErrorCode) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use Operation_OperationError.Descriptor instead. -func (Operation_OperationError) EnumDescriptor() ([]byte, []int) { +// Deprecated: Use Operation_ErrorCode.Descriptor instead. +func (Operation_ErrorCode) EnumDescriptor() ([]byte, []int) { return file_speechly_slu_v2beta1_batch_proto_rawDescGZIP(), []int{4, 1} } @@ -200,11 +204,11 @@ func (Operation_OperationError) EnumDescriptor() ([]byte, []int) { type OperationResult_ResultType int32 const ( - OperationResult_RESULT_TYPE_INVALID OperationResult_ResultType = 0 + OperationResult_RESULT_TYPE_UNSPECIFIED OperationResult_ResultType = 0 // The actual words of the audio with no additional processing applied. OperationResult_RESULT_TYPE_TRANSCRIPT_LEXICAL OperationResult_ResultType = 1 - // The content of the audio formatted to be displayed on screen, with eg. punctuation - // and capitalization included. + // The content of the audio formatted to be displayed on screen, with eg. + // punctuation and capitalization included. OperationResult_RESULT_TYPE_TRANSCRIPT_DISPLAY OperationResult_ResultType = 2 // The content of the audio translated to English. OperationResult_RESULT_TYPE_TRANSCRIPT_TRANSLATION OperationResult_ResultType = 3 @@ -213,13 +217,13 @@ const ( // Enum value maps for OperationResult_ResultType. var ( OperationResult_ResultType_name = map[int32]string{ - 0: "RESULT_TYPE_INVALID", + 0: "RESULT_TYPE_UNSPECIFIED", 1: "RESULT_TYPE_TRANSCRIPT_LEXICAL", 2: "RESULT_TYPE_TRANSCRIPT_DISPLAY", 3: "RESULT_TYPE_TRANSCRIPT_TRANSLATION", } OperationResult_ResultType_value = map[string]int32{ - "RESULT_TYPE_INVALID": 0, + "RESULT_TYPE_UNSPECIFIED": 0, "RESULT_TYPE_TRANSCRIPT_LEXICAL": 1, "RESULT_TYPE_TRANSCRIPT_DISPLAY": 2, "RESULT_TYPE_TRANSCRIPT_TRANSLATION": 3, @@ -313,7 +317,7 @@ func (x *HttpResource) GetMethod() HttpResource_Method { if x != nil { return x.Method } - return HttpResource_METHOD_INVALID + return HttpResource_METHOD_UNSPECIFIED } func (x *HttpResource) GetHeaders() []*HttpResource_Header { @@ -340,8 +344,8 @@ type ProcessAudioBatchConfig struct { // Processing configuration. // Required. ProcessingConfig *ProcessingConfiguration `protobuf:"bytes,3,opt,name=processing_config,json=processingConfig,proto3" json:"processing_config,omitempty"` - // Reference id for a set of related operations. For example an identifier of the source - // system. + // Reference id for a set of related operations. For example an identifier of + // the source system. Optional. // Optional. BatchReference string `protobuf:"bytes,4,opt,name=batch_reference,json=batchReference,proto3" json:"batch_reference,omitempty"` // Additional batch specific options. @@ -436,7 +440,8 @@ type ProcessAudioSourceRequestItem struct { // system. // Optional. Reference string `protobuf:"bytes,4,opt,name=reference,proto3" json:"reference,omitempty"` - // The device ID of the audio source, for example a microphone identifier as UUID. + // The device ID of the audio source, for example a microphone identifier as + // UUID. // Optional. DeviceId string `protobuf:"bytes,5,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` } @@ -508,19 +513,24 @@ func (x *ProcessAudioSourceRequestItem) GetDeviceId() string { return "" } -// Describes the processing options for the audio. Note that not all options are available for -// all languages or on all Payment Plans. +// Describes the processing options for the audio. Note that not all options are +// available for all languages or on all Payment Plans. type ProcessingConfiguration struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // The processing should include the token level transcription and determination of time stamps for tokens. + // The processing should include the token level transcription and + // determination of time stamps for tokens. + // Optional. Tokenize bool `protobuf:"varint,1,opt,name=tokenize,proto3" json:"tokenize,omitempty"` // The processing should include translating the audio to English. + // Optional. Translate bool `protobuf:"varint,2,opt,name=translate,proto3" json:"translate,omitempty"` - // The processing should not include transcribing the audio to the source language. This option should be used - // with translate (or other similar option) to suppress the normal Speech Recognition processing. + // The processing should not include transcribing the audio to the source + // language. This option should be used with translate (or other similar + // option) to suppress the normal Speech Recognition processing. + // Optional. SkipTranscribe bool `protobuf:"varint,3,opt,name=skip_transcribe,json=skipTranscribe,proto3" json:"skip_transcribe,omitempty"` } @@ -601,10 +611,10 @@ type Operation struct { // the results of the processing. Result []*OperationResult `protobuf:"bytes,6,rep,name=result,proto3" json:"result,omitempty"` // The duration of the audio. - Duration *durationpb.Duration `protobuf:"bytes,7,opt,name=duration,proto3" json:"duration,omitempty"` - ErrorCode Operation_OperationError `protobuf:"varint,18,opt,name=error_code,json=errorCode,proto3,enum=speechly.slu.v2beta1.Operation_OperationError" json:"error_code,omitempty"` - // Contains a human readable description of the error if the operation status is - // STATUS_ERROR. + Duration *durationpb.Duration `protobuf:"bytes,7,opt,name=duration,proto3" json:"duration,omitempty"` + ErrorCode Operation_ErrorCode `protobuf:"varint,18,opt,name=error_code,json=errorCode,proto3,enum=speechly.slu.v2beta1.Operation_ErrorCode" json:"error_code,omitempty"` + // Contains a human readable description of the error if the operation status + // is STATUS_ERROR. ErrorDescription string `protobuf:"bytes,19,opt,name=error_description,json=errorDescription,proto3" json:"error_description,omitempty"` // The locator to the source audio. SourceUrl string `protobuf:"bytes,20,opt,name=source_url,json=sourceUrl,proto3" json:"source_url,omitempty"` @@ -676,7 +686,7 @@ func (x *Operation) GetStatus() Operation_Status { if x != nil { return x.Status } - return Operation_STATUS_INVALID + return Operation_STATUS_UNSPECIFIED } func (x *Operation) GetLanguageCode() string { @@ -707,11 +717,11 @@ func (x *Operation) GetDuration() *durationpb.Duration { return nil } -func (x *Operation) GetErrorCode() Operation_OperationError { +func (x *Operation) GetErrorCode() Operation_ErrorCode { if x != nil { return x.ErrorCode } - return Operation_OPERATION_ERROR_INVALID + return Operation_ERROR_UNSPECIFIED } func (x *Operation) GetErrorDescription() string { @@ -745,7 +755,8 @@ type OperationResult struct { Type OperationResult_ResultType `protobuf:"varint,1,opt,name=type,proto3,enum=speechly.slu.v2beta1.OperationResult_ResultType" json:"type,omitempty"` // The textual representation of the results. Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` - // The tokenized representation of the result. Only available if requested in the `ProcessingConfiguration`. + // The tokenized representation of the result. Only available if requested in + // the `ProcessingConfiguration`. Tokens []*Token `protobuf:"bytes,3,rep,name=tokens,proto3" json:"tokens,omitempty"` } @@ -785,7 +796,7 @@ func (x *OperationResult) GetType() OperationResult_ResultType { if x != nil { return x.Type } - return OperationResult_RESULT_TYPE_INVALID + return OperationResult_RESULT_TYPE_UNSPECIFIED } func (x *OperationResult) GetText() string { @@ -802,8 +813,8 @@ func (x *OperationResult) GetTokens() []*Token { return nil } -// Describes a single meaningful unit of speech. In languages that use spaces to separate words, -// closely maps to those words. +// Describes a single meaningful unit of speech. In languages that use spaces to +// separate words, closely maps to those words. type Token struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1003,7 +1014,7 @@ var file_speechly_slu_v2beta1_batch_proto_rawDesc = []byte{ 0x74, 0x6f, 0x12, 0x14, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x73, 0x6c, 0x75, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xab, 0x02, 0x0a, 0x0c, 0x48, 0x74, 0x74, + 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xaf, 0x02, 0x0a, 0x0c, 0x48, 0x74, 0x74, 0x70, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x41, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x73, 0x70, @@ -1017,146 +1028,145 @@ var file_speechly_slu_v2beta1_batch_proto_rawDesc = []byte{ 0x65, 0x72, 0x73, 0x1a, 0x32, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x4d, 0x0a, 0x06, 0x4d, 0x65, 0x74, 0x68, 0x6f, - 0x64, 0x12, 0x12, 0x0a, 0x0e, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x49, 0x4e, 0x56, 0x41, - 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, - 0x47, 0x45, 0x54, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, - 0x50, 0x4f, 0x53, 0x54, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, - 0x5f, 0x50, 0x55, 0x54, 0x10, 0x03, 0x22, 0x94, 0x02, 0x0a, 0x17, 0x50, 0x72, 0x6f, 0x63, 0x65, - 0x73, 0x73, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x12, 0x15, 0x0a, 0x06, 0x61, 0x70, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x6c, 0x61, 0x6e, - 0x67, 0x75, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x0d, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x73, - 0x12, 0x5a, 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x5f, 0x63, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x73, 0x70, - 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x73, 0x6c, 0x75, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x70, 0x72, 0x6f, 0x63, - 0x65, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x27, 0x0a, 0x0f, - 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x62, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x66, 0x65, - 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, - 0x79, 0x2e, 0x73, 0x6c, 0x75, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xf5, 0x01, - 0x0a, 0x1d, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x53, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x12, - 0x1d, 0x0a, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x27, - 0x0a, 0x0f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x75, 0x72, - 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x72, 0x6c, 0x12, 0x51, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x70, 0x6c, - 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x73, - 0x6c, 0x75, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x52, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x11, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, - 0x69, 0x6f, 0x6e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, - 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, - 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, - 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x65, 0x76, - 0x69, 0x63, 0x65, 0x49, 0x64, 0x22, 0x7c, 0x0a, 0x17, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, - 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x69, 0x7a, 0x65, 0x12, 0x1c, 0x0a, 0x09, - 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x6b, - 0x69, 0x70, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x0e, 0x73, 0x6b, 0x69, 0x70, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x63, 0x72, - 0x69, 0x62, 0x65, 0x22, 0xf0, 0x06, 0x0a, 0x09, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, - 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, - 0x19, 0x0a, 0x08, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x69, 0x64, 0x18, 0x10, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x62, 0x61, 0x74, 0x63, 0x68, 0x49, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x62, 0x61, - 0x74, 0x63, 0x68, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x11, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0e, 0x62, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, - 0x6e, 0x63, 0x65, 0x12, 0x3e, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x73, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x51, 0x0a, 0x06, 0x4d, 0x65, 0x74, 0x68, 0x6f, + 0x64, 0x12, 0x16, 0x0a, 0x12, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x55, 0x4e, 0x53, 0x50, + 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x4d, 0x45, 0x54, + 0x48, 0x4f, 0x44, 0x5f, 0x47, 0x45, 0x54, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x4d, 0x45, 0x54, + 0x48, 0x4f, 0x44, 0x5f, 0x50, 0x4f, 0x53, 0x54, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x4d, 0x45, + 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x50, 0x55, 0x54, 0x10, 0x03, 0x22, 0x94, 0x02, 0x0a, 0x17, 0x50, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x42, 0x61, 0x74, 0x63, 0x68, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x15, 0x0a, 0x06, 0x61, 0x70, 0x70, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x12, 0x25, 0x0a, + 0x0e, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x43, + 0x6f, 0x64, 0x65, 0x73, 0x12, 0x5a, 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x69, + 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x2d, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x73, 0x6c, 0x75, 0x2e, 0x76, + 0x32, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x69, 0x6e, + 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x10, + 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x12, 0x27, 0x0a, 0x0f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, + 0x6e, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x62, 0x61, 0x74, 0x63, 0x68, + 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x6f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x73, 0x70, 0x65, + 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x73, 0x6c, 0x75, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x22, 0xf5, 0x01, 0x0a, 0x1d, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x41, 0x75, 0x64, + 0x69, 0x6f, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, + 0x74, 0x65, 0x6d, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x75, 0x72, + 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, + 0x72, 0x6c, 0x12, 0x27, 0x0a, 0x0f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x64, 0x65, 0x73, + 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x72, 0x6c, 0x12, 0x51, 0x0a, 0x12, 0x63, + 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, + 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, + 0x6c, 0x79, 0x2e, 0x73, 0x6c, 0x75, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x48, + 0x74, 0x74, 0x70, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x11, 0x63, 0x6f, 0x6d, + 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x1c, + 0x0a, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, + 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x22, 0x7c, 0x0a, 0x17, 0x50, 0x72, 0x6f, + 0x63, 0x65, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x69, 0x7a, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x69, 0x7a, 0x65, + 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x27, + 0x0a, 0x0f, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x63, 0x72, 0x69, 0x62, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x73, 0x6b, 0x69, 0x70, 0x54, 0x72, 0x61, + 0x6e, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x22, 0xd0, 0x06, 0x0a, 0x09, 0x4f, 0x70, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, + 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, + 0x6e, 0x63, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x69, 0x64, 0x18, + 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x62, 0x61, 0x74, 0x63, 0x68, 0x49, 0x64, 0x12, 0x27, + 0x0a, 0x0f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, + 0x65, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x62, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, + 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x3e, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, + 0x6c, 0x79, 0x2e, 0x73, 0x6c, 0x75, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, + 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, + 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x61, 0x6e, 0x67, 0x75, + 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, + 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x15, 0x0a, 0x06, + 0x61, 0x70, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, + 0x70, 0x49, 0x64, 0x12, 0x3d, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x06, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x73, 0x6c, 0x75, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x5f, - 0x63, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6c, 0x61, 0x6e, 0x67, - 0x75, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x61, 0x70, 0x70, 0x5f, - 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x12, - 0x3d, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x25, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x73, 0x6c, 0x75, 0x2e, 0x76, - 0x32, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x35, - 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x64, 0x75, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, - 0x6f, 0x64, 0x65, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x73, 0x70, 0x65, 0x65, - 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x73, 0x6c, 0x75, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, - 0x43, 0x6f, 0x64, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x64, 0x65, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x10, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, - 0x14, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x72, 0x6c, - 0x12, 0x27, 0x0a, 0x0f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, - 0x75, 0x72, 0x6c, 0x18, 0x15, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x64, 0x65, 0x73, 0x74, 0x69, - 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x72, 0x6c, 0x22, 0x53, 0x0a, 0x06, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x49, 0x4e, - 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x54, 0x41, 0x54, 0x55, - 0x53, 0x5f, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x53, - 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x44, 0x4f, 0x4e, 0x45, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, - 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x03, 0x22, 0xe5, - 0x01, 0x0a, 0x0e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, - 0x72, 0x12, 0x1b, 0x0a, 0x17, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x45, - 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x28, - 0x0a, 0x24, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x45, 0x52, 0x52, 0x4f, - 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x55, 0x50, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x5f, 0x4c, 0x41, - 0x4e, 0x47, 0x55, 0x41, 0x47, 0x45, 0x10, 0x01, 0x12, 0x1c, 0x0a, 0x18, 0x4f, 0x50, 0x45, 0x52, - 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x54, 0x45, - 0x52, 0x4e, 0x41, 0x4c, 0x10, 0x02, 0x12, 0x22, 0x0a, 0x1e, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, - 0x49, 0x4f, 0x4e, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, - 0x44, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x10, 0x04, 0x12, 0x27, 0x0a, 0x23, 0x4f, 0x50, - 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x49, 0x4e, - 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x44, 0x45, 0x53, 0x54, 0x49, 0x4e, 0x41, 0x54, 0x49, 0x4f, - 0x4e, 0x10, 0x05, 0x12, 0x21, 0x0a, 0x1d, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, - 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x41, - 0x55, 0x44, 0x49, 0x4f, 0x10, 0x06, 0x22, 0xb8, 0x02, 0x0a, 0x0f, 0x4f, 0x70, 0x65, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x44, 0x0a, 0x04, 0x74, 0x79, - 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, + 0x6c, 0x74, 0x12, 0x35, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x48, 0x0a, 0x0a, 0x65, 0x72, 0x72, + 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, + 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x73, 0x6c, 0x75, 0x2e, 0x76, 0x32, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x45, + 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, + 0x6f, 0x64, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, + 0x65, 0x72, 0x72, 0x6f, 0x72, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x14, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x72, 0x6c, 0x12, + 0x27, 0x0a, 0x0f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x75, + 0x72, 0x6c, 0x18, 0x15, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x72, 0x6c, 0x22, 0x57, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, + 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x54, + 0x41, 0x54, 0x55, 0x53, 0x5f, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0f, + 0x0a, 0x0b, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x44, 0x4f, 0x4e, 0x45, 0x10, 0x02, 0x12, + 0x10, 0x0a, 0x0c, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, + 0x03, 0x22, 0xc6, 0x01, 0x0a, 0x09, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, + 0x15, 0x0a, 0x11, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, + 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1e, 0x0a, 0x1a, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, + 0x55, 0x4e, 0x53, 0x55, 0x50, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x5f, 0x4c, 0x41, 0x4e, 0x47, + 0x55, 0x41, 0x47, 0x45, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, + 0x49, 0x4e, 0x54, 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x10, 0x02, 0x12, 0x1c, 0x0a, 0x18, 0x45, 0x52, + 0x52, 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x50, 0x41, 0x52, 0x41, + 0x4d, 0x45, 0x54, 0x45, 0x52, 0x53, 0x10, 0x03, 0x12, 0x18, 0x0a, 0x14, 0x45, 0x52, 0x52, 0x4f, + 0x52, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, + 0x10, 0x04, 0x12, 0x1d, 0x0a, 0x19, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x56, 0x41, + 0x4c, 0x49, 0x44, 0x5f, 0x44, 0x45, 0x53, 0x54, 0x49, 0x4e, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, + 0x05, 0x12, 0x17, 0x0a, 0x13, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, + 0x49, 0x44, 0x5f, 0x41, 0x55, 0x44, 0x49, 0x4f, 0x10, 0x06, 0x22, 0xbc, 0x02, 0x0a, 0x0f, 0x4f, + 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x44, + 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x73, + 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x73, 0x6c, 0x75, 0x2e, 0x76, 0x32, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, + 0x75, 0x6c, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, + 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x33, 0x0a, 0x06, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x73, 0x6c, 0x75, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, - 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, - 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x74, 0x65, 0x78, 0x74, 0x12, 0x33, 0x0a, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x03, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2e, - 0x73, 0x6c, 0x75, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x6f, 0x6b, 0x65, - 0x6e, 0x52, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x22, 0x95, 0x01, 0x0a, 0x0a, 0x52, 0x65, - 0x73, 0x75, 0x6c, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x17, 0x0a, 0x13, 0x52, 0x45, 0x53, 0x55, - 0x4c, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, - 0x00, 0x12, 0x22, 0x0a, 0x1e, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, - 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x43, 0x52, 0x49, 0x50, 0x54, 0x5f, 0x4c, 0x45, 0x58, 0x49, - 0x43, 0x41, 0x4c, 0x10, 0x01, 0x12, 0x22, 0x0a, 0x1e, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x5f, - 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x43, 0x52, 0x49, 0x50, 0x54, 0x5f, - 0x44, 0x49, 0x53, 0x50, 0x4c, 0x41, 0x59, 0x10, 0x02, 0x12, 0x26, 0x0a, 0x22, 0x52, 0x45, 0x53, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x22, 0x99, 0x01, + 0x0a, 0x0a, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, + 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, + 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x22, 0x0a, 0x1e, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x43, 0x52, - 0x49, 0x50, 0x54, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x4c, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, - 0x03, 0x22, 0x6d, 0x0a, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, - 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, - 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, - 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, - 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, - 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, - 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, - 0x22, 0x30, 0x0a, 0x06, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, - 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x42, 0x7d, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, - 0x6c, 0x79, 0x2e, 0x73, 0x6c, 0x75, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0a, - 0x42, 0x61, 0x74, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x1f, 0x73, 0x70, - 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2f, 0x73, 0x6c, 0x75, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x3b, 0x73, 0x6c, 0x75, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, - 0x53, 0x53, 0x58, 0xaa, 0x02, 0x14, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x53, - 0x6c, 0x75, 0x2e, 0x56, 0x32, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x14, 0x53, 0x70, 0x65, - 0x65, 0x63, 0x68, 0x6c, 0x79, 0x5c, 0x53, 0x6c, 0x75, 0x5c, 0x56, 0x32, 0x42, 0x65, 0x74, 0x61, - 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x49, 0x50, 0x54, 0x5f, 0x4c, 0x45, 0x58, 0x49, 0x43, 0x41, 0x4c, 0x10, 0x01, 0x12, 0x22, 0x0a, + 0x1e, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x52, 0x41, + 0x4e, 0x53, 0x43, 0x52, 0x49, 0x50, 0x54, 0x5f, 0x44, 0x49, 0x53, 0x50, 0x4c, 0x41, 0x59, 0x10, + 0x02, 0x12, 0x26, 0x0a, 0x22, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x43, 0x52, 0x49, 0x50, 0x54, 0x5f, 0x54, 0x52, 0x41, 0x4e, + 0x53, 0x4c, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x03, 0x22, 0x6d, 0x0a, 0x05, 0x54, 0x6f, 0x6b, + 0x65, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, + 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1d, + 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x19, 0x0a, + 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x30, 0x0a, 0x06, 0x4f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x7d, 0x0a, 0x18, 0x63, 0x6f, + 0x6d, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x73, 0x6c, 0x75, 0x2e, 0x76, + 0x32, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0a, 0x42, 0x61, 0x74, 0x63, 0x68, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x1f, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2f, 0x73, + 0x6c, 0x75, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x73, 0x6c, 0x75, 0x76, 0x32, + 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x53, 0x58, 0xaa, 0x02, 0x14, 0x53, 0x70, + 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x2e, 0x53, 0x6c, 0x75, 0x2e, 0x56, 0x32, 0x42, 0x65, 0x74, + 0x61, 0x31, 0xca, 0x02, 0x14, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x6c, 0x79, 0x5c, 0x53, 0x6c, + 0x75, 0x5c, 0x56, 0x32, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( @@ -1176,7 +1186,7 @@ var file_speechly_slu_v2beta1_batch_proto_msgTypes = make([]protoimpl.MessageInf var file_speechly_slu_v2beta1_batch_proto_goTypes = []interface{}{ (HttpResource_Method)(0), // 0: speechly.slu.v2beta1.HttpResource.Method (Operation_Status)(0), // 1: speechly.slu.v2beta1.Operation.Status - (Operation_OperationError)(0), // 2: speechly.slu.v2beta1.Operation.OperationError + (Operation_ErrorCode)(0), // 2: speechly.slu.v2beta1.Operation.ErrorCode (OperationResult_ResultType)(0), // 3: speechly.slu.v2beta1.OperationResult.ResultType (*HttpResource)(nil), // 4: speechly.slu.v2beta1.HttpResource (*ProcessAudioBatchConfig)(nil), // 5: speechly.slu.v2beta1.ProcessAudioBatchConfig @@ -1198,7 +1208,7 @@ var file_speechly_slu_v2beta1_batch_proto_depIdxs = []int32{ 1, // 5: speechly.slu.v2beta1.Operation.status:type_name -> speechly.slu.v2beta1.Operation.Status 9, // 6: speechly.slu.v2beta1.Operation.result:type_name -> speechly.slu.v2beta1.OperationResult 13, // 7: speechly.slu.v2beta1.Operation.duration:type_name -> google.protobuf.Duration - 2, // 8: speechly.slu.v2beta1.Operation.error_code:type_name -> speechly.slu.v2beta1.Operation.OperationError + 2, // 8: speechly.slu.v2beta1.Operation.error_code:type_name -> speechly.slu.v2beta1.Operation.ErrorCode 3, // 9: speechly.slu.v2beta1.OperationResult.type:type_name -> speechly.slu.v2beta1.OperationResult.ResultType 10, // 10: speechly.slu.v2beta1.OperationResult.tokens:type_name -> speechly.slu.v2beta1.Token 11, // [11:11] is the sub-list for method output_type diff --git a/javascript/package-lock.json b/javascript/package-lock.json index 54a404b..36135cf 100644 --- a/javascript/package-lock.json +++ b/javascript/package-lock.json @@ -1,12 +1,12 @@ { "name": "@speechly/api", - "version": "0.8.14", + "version": "0.8.15", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@speechly/api", - "version": "0.8.14", + "version": "0.8.15", "license": "MIT", "devDependencies": { "@types/node": "^16.6", diff --git a/javascript/package.json b/javascript/package.json index 9f3d2d6..7affd65 100644 --- a/javascript/package.json +++ b/javascript/package.json @@ -32,5 +32,5 @@ "@types/node": "^16.6", "typescript": "^4.3" }, - "version": "0.8.14" + "version": "0.8.15" } diff --git a/speechly_api.pb b/speechly_api.pb index fe79014..304578e 100644 Binary files a/speechly_api.pb and b/speechly_api.pb differ