All Superinterfaces:
Buildable, CopyableBuilder<Result.Builder,Result>, SdkBuilder<Result.Builder,Result>, SdkPojo
Enclosing class:
Result

public static interface Result.Builder extends SdkPojo, CopyableBuilder<Result.Builder,Result>
  • Method Details

    • resultId

      Result.Builder resultId(String resultId)

      Provides a unique identifier for the Result.

      Parameters:
      resultId - Provides a unique identifier for the Result.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • startTime

      Result.Builder startTime(Double startTime)

      The start time, in milliseconds, of the Result.

      Parameters:
      startTime - The start time, in milliseconds, of the Result.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • endTime

      Result.Builder endTime(Double endTime)

      The end time, in milliseconds, of the Result.

      Parameters:
      endTime - The end time, in milliseconds, of the Result.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • isPartial

      Result.Builder isPartial(Boolean isPartial)

      Indicates if the segment is complete.

      If IsPartial is true, the segment is not complete. If IsPartial is false, the segment is complete.

      Parameters:
      isPartial - Indicates if the segment is complete.

      If IsPartial is true, the segment is not complete. If IsPartial is false, the segment is complete.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • alternatives

      Result.Builder alternatives(Collection<Alternative> alternatives)

      A list of possible alternative transcriptions for the input audio. Each alternative may contain one or more of Items, Entities, or Transcript.

      Parameters:
      alternatives - A list of possible alternative transcriptions for the input audio. Each alternative may contain one or more of Items, Entities, or Transcript.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • alternatives

      Result.Builder alternatives(Alternative... alternatives)

      A list of possible alternative transcriptions for the input audio. Each alternative may contain one or more of Items, Entities, or Transcript.

      Parameters:
      alternatives - A list of possible alternative transcriptions for the input audio. Each alternative may contain one or more of Items, Entities, or Transcript.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • alternatives

      Result.Builder alternatives(Consumer<Alternative.Builder>... alternatives)

      A list of possible alternative transcriptions for the input audio. Each alternative may contain one or more of Items, Entities, or Transcript.

      This is a convenience method that creates an instance of the Alternative.Builder avoiding the need to create one manually via Alternative.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to alternatives(List<Alternative>).

      Parameters:
      alternatives - a consumer that will call methods on Alternative.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • channelId

      Result.Builder channelId(String channelId)

      Indicates which audio channel is associated with the Result.

      Parameters:
      channelId - Indicates which audio channel is associated with the Result.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • languageCode

      Result.Builder languageCode(String languageCode)

      The language code that represents the language spoken in your audio stream.

      Parameters:
      languageCode - The language code that represents the language spoken in your audio stream.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • languageCode

      Result.Builder languageCode(LanguageCode languageCode)

      The language code that represents the language spoken in your audio stream.

      Parameters:
      languageCode - The language code that represents the language spoken in your audio stream.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • languageIdentification

      Result.Builder languageIdentification(Collection<LanguageWithScore> languageIdentification)

      The language code of the dominant language identified in your stream.

      If you enabled channel identification and each channel of your audio contains a different language, you may have more than one result.

      Parameters:
      languageIdentification - The language code of the dominant language identified in your stream.

      If you enabled channel identification and each channel of your audio contains a different language, you may have more than one result.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • languageIdentification

      Result.Builder languageIdentification(LanguageWithScore... languageIdentification)

      The language code of the dominant language identified in your stream.

      If you enabled channel identification and each channel of your audio contains a different language, you may have more than one result.

      Parameters:
      languageIdentification - The language code of the dominant language identified in your stream.

      If you enabled channel identification and each channel of your audio contains a different language, you may have more than one result.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • languageIdentification

      Result.Builder languageIdentification(Consumer<LanguageWithScore.Builder>... languageIdentification)

      The language code of the dominant language identified in your stream.

      If you enabled channel identification and each channel of your audio contains a different language, you may have more than one result.

      This is a convenience method that creates an instance of the LanguageWithScore.Builder avoiding the need to create one manually via LanguageWithScore.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to languageIdentification(List<LanguageWithScore>).

      Parameters:
      languageIdentification - a consumer that will call methods on LanguageWithScore.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: