Record Class DashScopeAudioTranscriptionApi.RealtimeResponse.Payload.Output.Word
java.lang.Object
java.lang.Record
com.alibaba.cloud.ai.dashscope.api.DashScopeAudioTranscriptionApi.RealtimeResponse.Payload.Output.Word
- Enclosing class:
- DashScopeAudioTranscriptionApi.RealtimeResponse.Payload.Output
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebeginTimerecord component.endTime()Returns the value of theendTimerecord component.final booleanIndicates whether some other object is "equal to" this one.fixed()Returns the value of thefixedrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thepunctuationrecord component.Returns the value of thespeakerIdrecord component.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Word
public Word(Integer beginTime, Integer endTime, String text, String punctuation, Boolean fixed, String speakerId) Creates an instance of aWordrecord class.- Parameters:
beginTime- the value for thebeginTimerecord componentendTime- the value for theendTimerecord componenttext- the value for thetextrecord componentpunctuation- the value for thepunctuationrecord componentfixed- the value for thefixedrecord componentspeakerId- the value for thespeakerIdrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
beginTime
Returns the value of thebeginTimerecord component.- Returns:
- the value of the
beginTimerecord component
-
endTime
Returns the value of theendTimerecord component.- Returns:
- the value of the
endTimerecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
punctuation
Returns the value of thepunctuationrecord component.- Returns:
- the value of the
punctuationrecord component
-
fixed
Returns the value of thefixedrecord component.- Returns:
- the value of the
fixedrecord component
-
speakerId
Returns the value of thespeakerIdrecord component.- Returns:
- the value of the
speakerIdrecord component
-