All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mux.sdk.models.TranscriptionVocabulary Maven / Gradle / Ivy

The newest version!
/*
 * Mux API
 * Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.
 *
 * The version of the OpenAPI document: v1
 * Contact: [email protected]
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package com.mux.sdk.models;

import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;

/**
 * TranscriptionVocabulary
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class TranscriptionVocabulary {
  public static final String SERIALIZED_NAME_ID = "id";
  @SerializedName(SERIALIZED_NAME_ID)
  private String id;

  public static final String SERIALIZED_NAME_NAME = "name";
  @SerializedName(SERIALIZED_NAME_NAME)
  private String name;

  public static final String SERIALIZED_NAME_PHRASES = "phrases";
  @SerializedName(SERIALIZED_NAME_PHRASES)
  private java.util.List phrases = null;

  public static final String SERIALIZED_NAME_PASSTHROUGH = "passthrough";
  @SerializedName(SERIALIZED_NAME_PASSTHROUGH)
  private String passthrough;

  public static final String SERIALIZED_NAME_CREATED_AT = "created_at";
  @SerializedName(SERIALIZED_NAME_CREATED_AT)
  private String createdAt;

  public static final String SERIALIZED_NAME_UPDATED_AT = "updated_at";
  @SerializedName(SERIALIZED_NAME_UPDATED_AT)
  private String updatedAt;


  public TranscriptionVocabulary id(String id) {
    
    this.id = id;
    return this;
  }

   /**
   * Unique identifier for the Transcription Vocabulary
   * @return id
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Unique identifier for the Transcription Vocabulary")

  public String getId() {
    return id;
  }


  public void setId(String id) {
    this.id = id;
  }


  public TranscriptionVocabulary name(String name) {
    
    this.name = name;
    return this;
  }

   /**
   * The user-supplied name of the Transcription Vocabulary.
   * @return name
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "The user-supplied name of the Transcription Vocabulary.")

  public String getName() {
    return name;
  }


  public void setName(String name) {
    this.name = name;
  }


  public TranscriptionVocabulary phrases(java.util.List phrases) {
    
    this.phrases = phrases;
    return this;
  }

  public TranscriptionVocabulary addPhrasesItem(String phrasesItem) {
    if (this.phrases == null) {
      this.phrases = new java.util.ArrayList<>();
    }
    this.phrases.add(phrasesItem);
    return this;
  }

   /**
   * Phrases, individual words, or proper names to include in the Transcription Vocabulary. When the Transcription Vocabulary is attached to a live stream's `generated_subtitles` configuration, the probability of successful speech recognition for these words or phrases is boosted.
   * @return phrases
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Phrases, individual words, or proper names to include in the Transcription Vocabulary. When the Transcription Vocabulary is attached to a live stream's `generated_subtitles` configuration, the probability of successful speech recognition for these words or phrases is boosted.")

  public java.util.List getPhrases() {
    return phrases;
  }


  public void setPhrases(java.util.List phrases) {
    this.phrases = phrases;
  }


  public TranscriptionVocabulary passthrough(String passthrough) {
    
    this.passthrough = passthrough;
    return this;
  }

   /**
   * Arbitrary user-supplied metadata set for the Transcription Vocabulary. Max 255 characters.
   * @return passthrough
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Arbitrary user-supplied metadata set for the Transcription Vocabulary. Max 255 characters.")

  public String getPassthrough() {
    return passthrough;
  }


  public void setPassthrough(String passthrough) {
    this.passthrough = passthrough;
  }


  public TranscriptionVocabulary createdAt(String createdAt) {
    
    this.createdAt = createdAt;
    return this;
  }

   /**
   * Time the Transcription Vocabulary was created, defined as a Unix timestamp (seconds since epoch).
   * @return createdAt
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Time the Transcription Vocabulary was created, defined as a Unix timestamp (seconds since epoch).")

  public String getCreatedAt() {
    return createdAt;
  }


  public void setCreatedAt(String createdAt) {
    this.createdAt = createdAt;
  }


  public TranscriptionVocabulary updatedAt(String updatedAt) {
    
    this.updatedAt = updatedAt;
    return this;
  }

   /**
   * Time the Transcription Vocabulary was updated, defined as a Unix timestamp (seconds since epoch).
   * @return updatedAt
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Time the Transcription Vocabulary was updated, defined as a Unix timestamp (seconds since epoch).")

  public String getUpdatedAt() {
    return updatedAt;
  }


  public void setUpdatedAt(String updatedAt) {
    this.updatedAt = updatedAt;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    TranscriptionVocabulary transcriptionVocabulary = (TranscriptionVocabulary) o;
    return Objects.equals(this.id, transcriptionVocabulary.id) &&
        Objects.equals(this.name, transcriptionVocabulary.name) &&
        Objects.equals(this.phrases, transcriptionVocabulary.phrases) &&
        Objects.equals(this.passthrough, transcriptionVocabulary.passthrough) &&
        Objects.equals(this.createdAt, transcriptionVocabulary.createdAt) &&
        Objects.equals(this.updatedAt, transcriptionVocabulary.updatedAt);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, name, phrases, passthrough, createdAt, updatedAt);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class TranscriptionVocabulary {\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    phrases: ").append(toIndentedString(phrases)).append("\n");
    sb.append("    passthrough: ").append(toIndentedString(passthrough)).append("\n");
    sb.append("    createdAt: ").append(toIndentedString(createdAt)).append("\n");
    sb.append("    updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy