commonMain.aws.sdk.kotlin.services.transcribestreaming.model.CallAnalyticsEntity.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of transcribestreaming-jvm Show documentation
Show all versions of transcribestreaming-jvm Show documentation
The AWS SDK for Kotlin client for Transcribe Streaming
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.transcribestreaming.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Contains entities identified as personally identifiable information (PII) in your transcription output, along with various associated attributes. Examples include category, confidence score, content, type, and start and end times.
*/
public class CallAnalyticsEntity private constructor(builder: Builder) {
/**
* The time, in milliseconds, from the beginning of the audio stream to the start of the identified entity.
*/
public val beginOffsetMillis: kotlin.Long? = builder.beginOffsetMillis
/**
* The category of information identified. For example, `PII`.
*/
public val category: kotlin.String? = builder.category
/**
* The confidence score associated with the identification of an entity in your transcript.
*
* Confidence scores are values between 0 and 1. A larger value indicates a higher probability that the identified entity correctly matches the entity spoken in your media.
*/
public val confidence: kotlin.Double? = builder.confidence
/**
* The word or words that represent the identified entity.
*/
public val content: kotlin.String? = builder.content
/**
* The time, in milliseconds, from the beginning of the audio stream to the end of the identified entity.
*/
public val endOffsetMillis: kotlin.Long? = builder.endOffsetMillis
/**
* The type of PII identified. For example, `NAME` or `CREDIT_DEBIT_NUMBER`.
*/
public val type: kotlin.String? = builder.type
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.transcribestreaming.model.CallAnalyticsEntity = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CallAnalyticsEntity(")
append("beginOffsetMillis=$beginOffsetMillis,")
append("category=$category,")
append("confidence=$confidence,")
append("content=$content,")
append("endOffsetMillis=$endOffsetMillis,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = beginOffsetMillis?.hashCode() ?: 0
result = 31 * result + (category?.hashCode() ?: 0)
result = 31 * result + (confidence?.hashCode() ?: 0)
result = 31 * result + (content?.hashCode() ?: 0)
result = 31 * result + (endOffsetMillis?.hashCode() ?: 0)
result = 31 * result + (type?.hashCode() ?: 0)
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as CallAnalyticsEntity
if (beginOffsetMillis != other.beginOffsetMillis) return false
if (category != other.category) return false
if (!(confidence?.equals(other.confidence) ?: (other.confidence == null))) return false
if (content != other.content) return false
if (endOffsetMillis != other.endOffsetMillis) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.transcribestreaming.model.CallAnalyticsEntity = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The time, in milliseconds, from the beginning of the audio stream to the start of the identified entity.
*/
public var beginOffsetMillis: kotlin.Long? = null
/**
* The category of information identified. For example, `PII`.
*/
public var category: kotlin.String? = null
/**
* The confidence score associated with the identification of an entity in your transcript.
*
* Confidence scores are values between 0 and 1. A larger value indicates a higher probability that the identified entity correctly matches the entity spoken in your media.
*/
public var confidence: kotlin.Double? = null
/**
* The word or words that represent the identified entity.
*/
public var content: kotlin.String? = null
/**
* The time, in milliseconds, from the beginning of the audio stream to the end of the identified entity.
*/
public var endOffsetMillis: kotlin.Long? = null
/**
* The type of PII identified. For example, `NAME` or `CREDIT_DEBIT_NUMBER`.
*/
public var type: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.transcribestreaming.model.CallAnalyticsEntity) : this() {
this.beginOffsetMillis = x.beginOffsetMillis
this.category = x.category
this.confidence = x.confidence
this.content = x.content
this.endOffsetMillis = x.endOffsetMillis
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.transcribestreaming.model.CallAnalyticsEntity = CallAnalyticsEntity(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy