Skip to content

Commit 0c8a8ad

Browse files
yoshi-automationsduskis
authored andcommitted
Regenerate speech client (googleapis#832)
1 parent 9c8df97 commit 0c8a8ad

File tree

21 files changed

+3375
-1923
lines changed

21 files changed

+3375
-1923
lines changed

clients/1.26.0/google-api-services-speech/v1/com/google/api/services/speech/v1/model/RecognitionConfig.java

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,18 @@
3030
@SuppressWarnings("javadoc")
3131
public final class RecognitionConfig extends com.google.api.client.json.GenericJson {
3232

33+
/**
34+
* *Optional* The number of channels in the input audio data. ONLY set this for MULTI-CHANNEL
35+
* recognition. Valid values for LINEAR16 and FLAC are `1`-`8`. Valid values for OGG_OPUS are
36+
* '1'-'254'. Valid value for MULAW, AMR, AMR_WB and SPEEX_WITH_HEADER_BYTE is only `1`. If `0` or
37+
* omitted, defaults to one channel (mono). Note: We only recognize the first channel by default.
38+
* To perform independent recognition on each channel set
39+
* `enable_separate_recognition_per_channel` to 'true'.
40+
* The value may be {@code null}.
41+
*/
42+
@com.google.api.client.util.Key
43+
private java.lang.Integer audioChannelCount;
44+
3345
/**
3446
* *Optional* If 'true', adds punctuation to recognition result hypotheses. This feature is only
3547
* available in select languages. Setting this for requests in other languages has no effect at
@@ -89,6 +101,13 @@ public final class RecognitionConfig extends com.google.api.client.json.GenericJ
89101
@com.google.api.client.util.Key
90102
private java.lang.Integer maxAlternatives;
91103

104+
/**
105+
* *Optional* Metadata regarding this request.
106+
* The value may be {@code null}.
107+
*/
108+
@com.google.api.client.util.Key
109+
private RecognitionMetadata metadata;
110+
92111
/**
93112
* *Optional* Which model to select for the given request. Select the model best suited to your
94113
* domain to get best results. If a model is not explicitly specified, then we auto-select a model
@@ -151,6 +170,33 @@ public final class RecognitionConfig extends com.google.api.client.json.GenericJ
151170
@com.google.api.client.util.Key
152171
private java.lang.Boolean useEnhanced;
153172

173+
/**
174+
* *Optional* The number of channels in the input audio data. ONLY set this for MULTI-CHANNEL
175+
* recognition. Valid values for LINEAR16 and FLAC are `1`-`8`. Valid values for OGG_OPUS are
176+
* '1'-'254'. Valid value for MULAW, AMR, AMR_WB and SPEEX_WITH_HEADER_BYTE is only `1`. If `0` or
177+
* omitted, defaults to one channel (mono). Note: We only recognize the first channel by default.
178+
* To perform independent recognition on each channel set
179+
* `enable_separate_recognition_per_channel` to 'true'.
180+
* @return value or {@code null} for none
181+
*/
182+
public java.lang.Integer getAudioChannelCount() {
183+
return audioChannelCount;
184+
}
185+
186+
/**
187+
* *Optional* The number of channels in the input audio data. ONLY set this for MULTI-CHANNEL
188+
* recognition. Valid values for LINEAR16 and FLAC are `1`-`8`. Valid values for OGG_OPUS are
189+
* '1'-'254'. Valid value for MULAW, AMR, AMR_WB and SPEEX_WITH_HEADER_BYTE is only `1`. If `0` or
190+
* omitted, defaults to one channel (mono). Note: We only recognize the first channel by default.
191+
* To perform independent recognition on each channel set
192+
* `enable_separate_recognition_per_channel` to 'true'.
193+
* @param audioChannelCount audioChannelCount or {@code null} for none
194+
*/
195+
public RecognitionConfig setAudioChannelCount(java.lang.Integer audioChannelCount) {
196+
this.audioChannelCount = audioChannelCount;
197+
return this;
198+
}
199+
154200
/**
155201
* *Optional* If 'true', adds punctuation to recognition result hypotheses. This feature is only
156202
* available in select languages. Setting this for requests in other languages has no effect at
@@ -287,6 +333,23 @@ public RecognitionConfig setMaxAlternatives(java.lang.Integer maxAlternatives) {
287333
return this;
288334
}
289335

336+
/**
337+
* *Optional* Metadata regarding this request.
338+
* @return value or {@code null} for none
339+
*/
340+
public RecognitionMetadata getMetadata() {
341+
return metadata;
342+
}
343+
344+
/**
345+
* *Optional* Metadata regarding this request.
346+
* @param metadata metadata or {@code null} for none
347+
*/
348+
public RecognitionConfig setMetadata(RecognitionMetadata metadata) {
349+
this.metadata = metadata;
350+
return this;
351+
}
352+
290353
/**
291354
* *Optional* Which model to select for the given request. Select the model best suited to your
292355
* domain to get best results. If a model is not explicitly specified, then we auto-select a model
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,277 @@
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+
}

clients/1.26.0/google-api-services-speech/v1/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-speech</artifactId>
11-
<version>v1-rev20190201-1.26.0</version>
12-
<name>Cloud Speech-to-Text API v1-rev20190201-1.26.0</name>
11+
<version>v1-rev20190211-1.26.0</version>
12+
<name>Cloud Speech-to-Text API v1-rev20190211-1.26.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

0 commit comments

Comments
 (0)