Class ApiTranscriptSegment.Builder

java.lang.Object
com.dropbox.core.v2.riviera.ApiTranscriptSegment.Builder
Enclosing class:
ApiTranscriptSegment

public static class ApiTranscriptSegment.Builder extends Object
  • Field Details

    • text

      protected String text
    • startTime

      protected double startTime
    • endTime

      protected double endTime
  • Constructor Details

    • Builder

      protected Builder()
  • Method Details

    • withText

      public ApiTranscriptSegment.Builder withText(String text)
      Set value for optional field.

      If left unset or set to null, defaults to "".

      Parameters:
      text - Must not be null. Defaults to "" when set to null.
      Returns:
      this builder
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • withStartTime

      public ApiTranscriptSegment.Builder withStartTime(Double startTime)
      Set value for optional field.

      If left unset or set to null, defaults to 0.0.

      Parameters:
      startTime - Defaults to 0.0 when set to null.
      Returns:
      this builder
    • withEndTime

      public ApiTranscriptSegment.Builder withEndTime(Double endTime)
      Set value for optional field.

      If left unset or set to null, defaults to 0.0.

      Parameters:
      endTime - Defaults to 0.0 when set to null.
      Returns:
      this builder
    • build

      public ApiTranscriptSegment build()
      Builds an instance of ApiTranscriptSegment configured with this builder's values
      Returns:
      new instance of ApiTranscriptSegment