Interface MedicalResult.Builder

  • Method Details

    • resultId

      MedicalResult.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

      MedicalResult.Builder startTime(Double startTime)

      The start time, in seconds, of the Result.

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

      MedicalResult.Builder endTime(Double endTime)

      The end time, in seconds, of the Result.

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

      MedicalResult.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

      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

      MedicalResult.Builder alternatives(MedicalAlternative... 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

      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 MedicalAlternative.Builder avoiding the need to create one manually via MedicalAlternative.builder().

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

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

      MedicalResult.Builder channelId(String channelId)

      Indicates the channel identified for the Result.

      Parameters:
      channelId - Indicates the channel identified for the Result.
      Returns:
      Returns a reference to this object so that method calls can be chained together.