|
| 1 | +/* |
| 2 | + * (C) Copyright IBM Corp. 2019, 2020. |
| 3 | + * |
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with |
| 5 | + * the License. You may obtain a copy of the License at |
| 6 | + * |
| 7 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | + * |
| 9 | + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on |
| 10 | + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the |
| 11 | + * specific language governing permissions and limitations under the License. |
| 12 | + */ |
| 13 | +package com.ibm.watson.speech_to_text.v1.model; |
| 14 | + |
| 15 | +import com.google.gson.annotations.JsonAdapter; |
| 16 | +import com.ibm.cloud.sdk.core.service.model.GenericModel; |
| 17 | +import com.ibm.watson.speech_to_text.v1.util.SpeechTimestampTypeAdapter; |
| 18 | + |
| 19 | +/** Transcription timestamp. */ |
| 20 | +@JsonAdapter(SpeechTimestampTypeAdapter.class) |
| 21 | +public class SpeechTimestamp extends GenericModel { |
| 22 | + private Double endTime; |
| 23 | + private Double startTime; |
| 24 | + private String word; |
| 25 | + |
| 26 | + /** |
| 27 | + * Gets the end time. |
| 28 | + * |
| 29 | + * @return The end time |
| 30 | + */ |
| 31 | + public Double getEndTime() { |
| 32 | + return endTime; |
| 33 | + } |
| 34 | + |
| 35 | + /** |
| 36 | + * Gets the start time. |
| 37 | + * |
| 38 | + * @return The start time |
| 39 | + */ |
| 40 | + public Double getStartTime() { |
| 41 | + return startTime; |
| 42 | + } |
| 43 | + |
| 44 | + /** |
| 45 | + * Gets the word. |
| 46 | + * |
| 47 | + * @return The word |
| 48 | + */ |
| 49 | + public String getWord() { |
| 50 | + return word; |
| 51 | + } |
| 52 | + |
| 53 | + /** |
| 54 | + * Sets the end time. |
| 55 | + * |
| 56 | + * @param endTime The end time |
| 57 | + */ |
| 58 | + public void setEndTime(final Double endTime) { |
| 59 | + this.endTime = endTime; |
| 60 | + } |
| 61 | + |
| 62 | + /** |
| 63 | + * Sets the start time. |
| 64 | + * |
| 65 | + * @param startTime The start time |
| 66 | + */ |
| 67 | + public void setStartTime(final Double startTime) { |
| 68 | + this.startTime = startTime; |
| 69 | + } |
| 70 | + |
| 71 | + /** |
| 72 | + * Sets the word. |
| 73 | + * |
| 74 | + * @param word The word |
| 75 | + */ |
| 76 | + public void setWord(final String word) { |
| 77 | + this.word = word; |
| 78 | + } |
| 79 | +} |
0 commit comments