Record Class DashScopeAudioTranscriptionApi.RealtimeResponse.Payload.Output
java.lang.Object
java.lang.Record
com.alibaba.cloud.ai.dashscope.api.DashScopeAudioTranscriptionApi.RealtimeResponse.Payload.Output
- Enclosing class:
- DashScopeAudioTranscriptionApi.RealtimeResponse.Payload
public static record DashScopeAudioTranscriptionApi.RealtimeResponse.Payload.Output(DashScopeAudioTranscriptionApi.RealtimeResponse.Payload.Output.Sentence sentence, List<DashScopeAudioTranscriptionApi.RealtimeResponse.Payload.Output.Translation> translations, DashScopeAudioTranscriptionApi.RealtimeResponse.Payload.Output.Transcription transcription)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionOutput(DashScopeAudioTranscriptionApi.RealtimeResponse.Payload.Output.Sentence sentence, List<DashScopeAudioTranscriptionApi.RealtimeResponse.Payload.Output.Translation> translations, DashScopeAudioTranscriptionApi.RealtimeResponse.Payload.Output.Transcription transcription) Creates an instance of aOutputrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.sentence()Returns the value of thesentencerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetranscriptionrecord component.Returns the value of thetranslationsrecord component.
-
Constructor Details
-
Output
public Output(DashScopeAudioTranscriptionApi.RealtimeResponse.Payload.Output.Sentence sentence, List<DashScopeAudioTranscriptionApi.RealtimeResponse.Payload.Output.Translation> translations, DashScopeAudioTranscriptionApi.RealtimeResponse.Payload.Output.Transcription transcription) Creates an instance of aOutputrecord class.- Parameters:
sentence- the value for thesentencerecord componenttranslations- the value for thetranslationsrecord componenttranscription- the value for thetranscriptionrecord 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). -
sentence
Returns the value of thesentencerecord component.- Returns:
- the value of the
sentencerecord component
-
translations
public List<DashScopeAudioTranscriptionApi.RealtimeResponse.Payload.Output.Translation> translations()Returns the value of thetranslationsrecord component.- Returns:
- the value of the
translationsrecord component
-
transcription
Returns the value of thetranscriptionrecord component.- Returns:
- the value of the
transcriptionrecord component
-