Class ApiTranscriptSegment

java.lang.Object
com.dropbox.core.v2.riviera.ApiTranscriptSegment

public class ApiTranscriptSegment extends Object
Transcript segment for APIv2
  • Field Details

    • text

      @Nonnull protected final String text
    • startTime

      protected final double startTime
    • endTime

      protected final double endTime
  • Constructor Details

    • ApiTranscriptSegment

      public ApiTranscriptSegment(@Nonnull String text, double startTime, double endTime)
      Transcript segment for APIv2

      Use newBuilder() to create instances of this class without specifying values for all optional fields.

      Parameters:
      text - Must not be null.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • ApiTranscriptSegment

      public ApiTranscriptSegment()
      Transcript segment for APIv2

      The default values for unset fields will be used.

  • Method Details

    • getText

      @Nonnull public String getText()
      Returns:
      value for this field, or null if not present. Defaults to "".
    • getStartTime

      public double getStartTime()
      Returns:
      value for this field, or null if not present. Defaults to 0.0.
    • getEndTime

      public double getEndTime()
      Returns:
      value for this field, or null if not present. Defaults to 0.0.
    • newBuilder

      public static ApiTranscriptSegment.Builder newBuilder()
      Returns a new builder for creating an instance of this class.
      Returns:
      builder for this class.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toStringMultiline

      public String toStringMultiline()
      Returns a String representation of this object formatted for easier readability.

      The returned String may contain newlines.

      Returns:
      Formatted, multiline String representation of this object