|
| 1 | +/* |
| 2 | + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except |
| 3 | + * in compliance with the License. You may obtain a copy of the License at |
| 4 | + * |
| 5 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 6 | + * |
| 7 | + * Unless required by applicable law or agreed to in writing, software distributed under the License |
| 8 | + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
| 9 | + * or implied. See the License for the specific language governing permissions and limitations under |
| 10 | + * the License. |
| 11 | + */ |
| 12 | +/* |
| 13 | + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ |
| 14 | + * Modify at your own risk. |
| 15 | + */ |
| 16 | + |
| 17 | +package com.google.api.services.speech.v1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Description of audio data to be recognized. |
| 21 | + * |
| 22 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 23 | + * transmitted over HTTP when working with the Cloud Speech-to-Text API. For a detailed explanation |
| 24 | + * see: |
| 25 | + * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a> |
| 26 | + * </p> |
| 27 | + * |
| 28 | + * @author Google, Inc. |
| 29 | + */ |
| 30 | +@SuppressWarnings("javadoc") |
| 31 | +public final class RecognitionMetadata extends com.google.api.client.json.GenericJson { |
| 32 | + |
| 33 | + /** |
| 34 | + * Description of the content. Eg. "Recordings of federal supreme court hearings from 2012". |
| 35 | + * The value may be {@code null}. |
| 36 | + */ |
| 37 | + @com.google.api.client.util.Key |
| 38 | + private java.lang.String audioTopic; |
| 39 | + |
| 40 | + /** |
| 41 | + * The industry vertical to which this speech recognition request most closely applies. This is |
| 42 | + * most indicative of the topics contained in the audio. Use the 6-digit NAICS code to identify |
| 43 | + * the industry vertical - see https://www.naics.com/search/. |
| 44 | + * The value may be {@code null}. |
| 45 | + */ |
| 46 | + @com.google.api.client.util.Key |
| 47 | + private java.lang.Long industryNaicsCodeOfAudio; |
| 48 | + |
| 49 | + /** |
| 50 | + * The use case most closely describing the audio content to be recognized. |
| 51 | + * The value may be {@code null}. |
| 52 | + */ |
| 53 | + @com.google.api.client.util.Key |
| 54 | + private java.lang.String interactionType; |
| 55 | + |
| 56 | + /** |
| 57 | + * The audio type that most closely describes the audio being recognized. |
| 58 | + * The value may be {@code null}. |
| 59 | + */ |
| 60 | + @com.google.api.client.util.Key |
| 61 | + private java.lang.String microphoneDistance; |
| 62 | + |
| 63 | + /** |
| 64 | + * Obfuscated (privacy-protected) ID of the user, to identify number of unique users using the |
| 65 | + * service. |
| 66 | + * The value may be {@code null}. |
| 67 | + */ |
| 68 | + @com.google.api.client.util.Key @com.google.api.client.json.JsonString |
| 69 | + private java.lang.Long obfuscatedId; |
| 70 | + |
| 71 | + /** |
| 72 | + * The original media the speech was recorded on. |
| 73 | + * The value may be {@code null}. |
| 74 | + */ |
| 75 | + @com.google.api.client.util.Key |
| 76 | + private java.lang.String originalMediaType; |
| 77 | + |
| 78 | + /** |
| 79 | + * Mime type of the original audio file. For example `audio/m4a`, `audio/x-alaw-basic`, |
| 80 | + * `audio/mp3`, `audio/3gpp`. A list of possible audio mime types is maintained at |
| 81 | + * http://www.iana.org/assignments/media-types/media-types.xhtml#audio |
| 82 | + * The value may be {@code null}. |
| 83 | + */ |
| 84 | + @com.google.api.client.util.Key |
| 85 | + private java.lang.String originalMimeType; |
| 86 | + |
| 87 | + /** |
| 88 | + * The device used to make the recording. Examples 'Nexus 5X' or 'Polycom SoundStation IP 6000' |
| 89 | + * or 'POTS' or 'VoIP' or 'Cardioid Microphone'. |
| 90 | + * The value may be {@code null}. |
| 91 | + */ |
| 92 | + @com.google.api.client.util.Key |
| 93 | + private java.lang.String recordingDeviceName; |
| 94 | + |
| 95 | + /** |
| 96 | + * The type of device the speech was recorded with. |
| 97 | + * The value may be {@code null}. |
| 98 | + */ |
| 99 | + @com.google.api.client.util.Key |
| 100 | + private java.lang.String recordingDeviceType; |
| 101 | + |
| 102 | + /** |
| 103 | + * Description of the content. Eg. "Recordings of federal supreme court hearings from 2012". |
| 104 | + * @return value or {@code null} for none |
| 105 | + */ |
| 106 | + public java.lang.String getAudioTopic() { |
| 107 | + return audioTopic; |
| 108 | + } |
| 109 | + |
| 110 | + /** |
| 111 | + * Description of the content. Eg. "Recordings of federal supreme court hearings from 2012". |
| 112 | + * @param audioTopic audioTopic or {@code null} for none |
| 113 | + */ |
| 114 | + public RecognitionMetadata setAudioTopic(java.lang.String audioTopic) { |
| 115 | + this.audioTopic = audioTopic; |
| 116 | + return this; |
| 117 | + } |
| 118 | + |
| 119 | + /** |
| 120 | + * The industry vertical to which this speech recognition request most closely applies. This is |
| 121 | + * most indicative of the topics contained in the audio. Use the 6-digit NAICS code to identify |
| 122 | + * the industry vertical - see https://www.naics.com/search/. |
| 123 | + * @return value or {@code null} for none |
| 124 | + */ |
| 125 | + public java.lang.Long getIndustryNaicsCodeOfAudio() { |
| 126 | + return industryNaicsCodeOfAudio; |
| 127 | + } |
| 128 | + |
| 129 | + /** |
| 130 | + * The industry vertical to which this speech recognition request most closely applies. This is |
| 131 | + * most indicative of the topics contained in the audio. Use the 6-digit NAICS code to identify |
| 132 | + * the industry vertical - see https://www.naics.com/search/. |
| 133 | + * @param industryNaicsCodeOfAudio industryNaicsCodeOfAudio or {@code null} for none |
| 134 | + */ |
| 135 | + public RecognitionMetadata setIndustryNaicsCodeOfAudio(java.lang.Long industryNaicsCodeOfAudio) { |
| 136 | + this.industryNaicsCodeOfAudio = industryNaicsCodeOfAudio; |
| 137 | + return this; |
| 138 | + } |
| 139 | + |
| 140 | + /** |
| 141 | + * The use case most closely describing the audio content to be recognized. |
| 142 | + * @return value or {@code null} for none |
| 143 | + */ |
| 144 | + public java.lang.String getInteractionType() { |
| 145 | + return interactionType; |
| 146 | + } |
| 147 | + |
| 148 | + /** |
| 149 | + * The use case most closely describing the audio content to be recognized. |
| 150 | + * @param interactionType interactionType or {@code null} for none |
| 151 | + */ |
| 152 | + public RecognitionMetadata setInteractionType(java.lang.String interactionType) { |
| 153 | + this.interactionType = interactionType; |
| 154 | + return this; |
| 155 | + } |
| 156 | + |
| 157 | + /** |
| 158 | + * The audio type that most closely describes the audio being recognized. |
| 159 | + * @return value or {@code null} for none |
| 160 | + */ |
| 161 | + public java.lang.String getMicrophoneDistance() { |
| 162 | + return microphoneDistance; |
| 163 | + } |
| 164 | + |
| 165 | + /** |
| 166 | + * The audio type that most closely describes the audio being recognized. |
| 167 | + * @param microphoneDistance microphoneDistance or {@code null} for none |
| 168 | + */ |
| 169 | + public RecognitionMetadata setMicrophoneDistance(java.lang.String microphoneDistance) { |
| 170 | + this.microphoneDistance = microphoneDistance; |
| 171 | + return this; |
| 172 | + } |
| 173 | + |
| 174 | + /** |
| 175 | + * Obfuscated (privacy-protected) ID of the user, to identify number of unique users using the |
| 176 | + * service. |
| 177 | + * @return value or {@code null} for none |
| 178 | + */ |
| 179 | + public java.lang.Long getObfuscatedId() { |
| 180 | + return obfuscatedId; |
| 181 | + } |
| 182 | + |
| 183 | + /** |
| 184 | + * Obfuscated (privacy-protected) ID of the user, to identify number of unique users using the |
| 185 | + * service. |
| 186 | + * @param obfuscatedId obfuscatedId or {@code null} for none |
| 187 | + */ |
| 188 | + public RecognitionMetadata setObfuscatedId(java.lang.Long obfuscatedId) { |
| 189 | + this.obfuscatedId = obfuscatedId; |
| 190 | + return this; |
| 191 | + } |
| 192 | + |
| 193 | + /** |
| 194 | + * The original media the speech was recorded on. |
| 195 | + * @return value or {@code null} for none |
| 196 | + */ |
| 197 | + public java.lang.String getOriginalMediaType() { |
| 198 | + return originalMediaType; |
| 199 | + } |
| 200 | + |
| 201 | + /** |
| 202 | + * The original media the speech was recorded on. |
| 203 | + * @param originalMediaType originalMediaType or {@code null} for none |
| 204 | + */ |
| 205 | + public RecognitionMetadata setOriginalMediaType(java.lang.String originalMediaType) { |
| 206 | + this.originalMediaType = originalMediaType; |
| 207 | + return this; |
| 208 | + } |
| 209 | + |
| 210 | + /** |
| 211 | + * Mime type of the original audio file. For example `audio/m4a`, `audio/x-alaw-basic`, |
| 212 | + * `audio/mp3`, `audio/3gpp`. A list of possible audio mime types is maintained at |
| 213 | + * http://www.iana.org/assignments/media-types/media-types.xhtml#audio |
| 214 | + * @return value or {@code null} for none |
| 215 | + */ |
| 216 | + public java.lang.String getOriginalMimeType() { |
| 217 | + return originalMimeType; |
| 218 | + } |
| 219 | + |
| 220 | + /** |
| 221 | + * Mime type of the original audio file. For example `audio/m4a`, `audio/x-alaw-basic`, |
| 222 | + * `audio/mp3`, `audio/3gpp`. A list of possible audio mime types is maintained at |
| 223 | + * http://www.iana.org/assignments/media-types/media-types.xhtml#audio |
| 224 | + * @param originalMimeType originalMimeType or {@code null} for none |
| 225 | + */ |
| 226 | + public RecognitionMetadata setOriginalMimeType(java.lang.String originalMimeType) { |
| 227 | + this.originalMimeType = originalMimeType; |
| 228 | + return this; |
| 229 | + } |
| 230 | + |
| 231 | + /** |
| 232 | + * The device used to make the recording. Examples 'Nexus 5X' or 'Polycom SoundStation IP 6000' |
| 233 | + * or 'POTS' or 'VoIP' or 'Cardioid Microphone'. |
| 234 | + * @return value or {@code null} for none |
| 235 | + */ |
| 236 | + public java.lang.String getRecordingDeviceName() { |
| 237 | + return recordingDeviceName; |
| 238 | + } |
| 239 | + |
| 240 | + /** |
| 241 | + * The device used to make the recording. Examples 'Nexus 5X' or 'Polycom SoundStation IP 6000' |
| 242 | + * or 'POTS' or 'VoIP' or 'Cardioid Microphone'. |
| 243 | + * @param recordingDeviceName recordingDeviceName or {@code null} for none |
| 244 | + */ |
| 245 | + public RecognitionMetadata setRecordingDeviceName(java.lang.String recordingDeviceName) { |
| 246 | + this.recordingDeviceName = recordingDeviceName; |
| 247 | + return this; |
| 248 | + } |
| 249 | + |
| 250 | + /** |
| 251 | + * The type of device the speech was recorded with. |
| 252 | + * @return value or {@code null} for none |
| 253 | + */ |
| 254 | + public java.lang.String getRecordingDeviceType() { |
| 255 | + return recordingDeviceType; |
| 256 | + } |
| 257 | + |
| 258 | + /** |
| 259 | + * The type of device the speech was recorded with. |
| 260 | + * @param recordingDeviceType recordingDeviceType or {@code null} for none |
| 261 | + */ |
| 262 | + public RecognitionMetadata setRecordingDeviceType(java.lang.String recordingDeviceType) { |
| 263 | + this.recordingDeviceType = recordingDeviceType; |
| 264 | + return this; |
| 265 | + } |
| 266 | + |
| 267 | + @Override |
| 268 | + public RecognitionMetadata set(String fieldName, Object value) { |
| 269 | + return (RecognitionMetadata) super.set(fieldName, value); |
| 270 | + } |
| 271 | + |
| 272 | + @Override |
| 273 | + public RecognitionMetadata clone() { |
| 274 | + return (RecognitionMetadata) super.clone(); |
| 275 | + } |
| 276 | + |
| 277 | +} |
0 commit comments