@@ -99,6 +99,23 @@ private LongRunningRecognizeRequest(
9999 audio_ = subBuilder .buildPartial ();
100100 }
101101
102+ break ;
103+ }
104+ case 34 :
105+ {
106+ com .google .cloud .speech .v1 .TranscriptOutputConfig .Builder subBuilder = null ;
107+ if (outputConfig_ != null ) {
108+ subBuilder = outputConfig_ .toBuilder ();
109+ }
110+ outputConfig_ =
111+ input .readMessage (
112+ com .google .cloud .speech .v1 .TranscriptOutputConfig .parser (),
113+ extensionRegistry );
114+ if (subBuilder != null ) {
115+ subBuilder .mergeFrom (outputConfig_ );
116+ outputConfig_ = subBuilder .buildPartial ();
117+ }
118+
102119 break ;
103120 }
104121 default :
@@ -246,6 +263,60 @@ public com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder()
246263 return getAudio ();
247264 }
248265
266+ public static final int OUTPUT_CONFIG_FIELD_NUMBER = 4 ;
267+ private com .google .cloud .speech .v1 .TranscriptOutputConfig outputConfig_ ;
268+ /**
269+ *
270+ *
271+ * <pre>
272+ * Optional. Specifies an optional destination for the recognition results.
273+ * </pre>
274+ *
275+ * <code>
276+ * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL];
277+ * </code>
278+ *
279+ * @return Whether the outputConfig field is set.
280+ */
281+ @ java .lang .Override
282+ public boolean hasOutputConfig () {
283+ return outputConfig_ != null ;
284+ }
285+ /**
286+ *
287+ *
288+ * <pre>
289+ * Optional. Specifies an optional destination for the recognition results.
290+ * </pre>
291+ *
292+ * <code>
293+ * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL];
294+ * </code>
295+ *
296+ * @return The outputConfig.
297+ */
298+ @ java .lang .Override
299+ public com .google .cloud .speech .v1 .TranscriptOutputConfig getOutputConfig () {
300+ return outputConfig_ == null
301+ ? com .google .cloud .speech .v1 .TranscriptOutputConfig .getDefaultInstance ()
302+ : outputConfig_ ;
303+ }
304+ /**
305+ *
306+ *
307+ * <pre>
308+ * Optional. Specifies an optional destination for the recognition results.
309+ * </pre>
310+ *
311+ * <code>
312+ * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL];
313+ * </code>
314+ */
315+ @ java .lang .Override
316+ public com .google .cloud .speech .v1 .TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder () {
317+ return getOutputConfig ();
318+ }
319+
249320 private byte memoizedIsInitialized = -1 ;
250321
251322 @ java .lang .Override
@@ -266,6 +337,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
266337 if (audio_ != null ) {
267338 output .writeMessage (2 , getAudio ());
268339 }
340+ if (outputConfig_ != null ) {
341+ output .writeMessage (4 , getOutputConfig ());
342+ }
269343 unknownFields .writeTo (output );
270344 }
271345
@@ -281,6 +355,9 @@ public int getSerializedSize() {
281355 if (audio_ != null ) {
282356 size += com .google .protobuf .CodedOutputStream .computeMessageSize (2 , getAudio ());
283357 }
358+ if (outputConfig_ != null ) {
359+ size += com .google .protobuf .CodedOutputStream .computeMessageSize (4 , getOutputConfig ());
360+ }
284361 size += unknownFields .getSerializedSize ();
285362 memoizedSize = size ;
286363 return size ;
@@ -305,6 +382,10 @@ public boolean equals(final java.lang.Object obj) {
305382 if (hasAudio ()) {
306383 if (!getAudio ().equals (other .getAudio ())) return false ;
307384 }
385+ if (hasOutputConfig () != other .hasOutputConfig ()) return false ;
386+ if (hasOutputConfig ()) {
387+ if (!getOutputConfig ().equals (other .getOutputConfig ())) return false ;
388+ }
308389 if (!unknownFields .equals (other .unknownFields )) return false ;
309390 return true ;
310391 }
@@ -324,6 +405,10 @@ public int hashCode() {
324405 hash = (37 * hash ) + AUDIO_FIELD_NUMBER ;
325406 hash = (53 * hash ) + getAudio ().hashCode ();
326407 }
408+ if (hasOutputConfig ()) {
409+ hash = (37 * hash ) + OUTPUT_CONFIG_FIELD_NUMBER ;
410+ hash = (53 * hash ) + getOutputConfig ().hashCode ();
411+ }
327412 hash = (29 * hash ) + unknownFields .hashCode ();
328413 memoizedHashCode = hash ;
329414 return hash ;
@@ -483,6 +568,12 @@ public Builder clear() {
483568 audio_ = null ;
484569 audioBuilder_ = null ;
485570 }
571+ if (outputConfigBuilder_ == null ) {
572+ outputConfig_ = null ;
573+ } else {
574+ outputConfig_ = null ;
575+ outputConfigBuilder_ = null ;
576+ }
486577 return this ;
487578 }
488579
@@ -520,6 +611,11 @@ public com.google.cloud.speech.v1.LongRunningRecognizeRequest buildPartial() {
520611 } else {
521612 result .audio_ = audioBuilder_ .build ();
522613 }
614+ if (outputConfigBuilder_ == null ) {
615+ result .outputConfig_ = outputConfig_ ;
616+ } else {
617+ result .outputConfig_ = outputConfigBuilder_ .build ();
618+ }
523619 onBuilt ();
524620 return result ;
525621 }
@@ -576,6 +672,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1.LongRunningRecognizeRequest
576672 if (other .hasAudio ()) {
577673 mergeAudio (other .getAudio ());
578674 }
675+ if (other .hasOutputConfig ()) {
676+ mergeOutputConfig (other .getOutputConfig ());
677+ }
579678 this .mergeUnknownFields (other .unknownFields );
580679 onChanged ();
581680 return this ;
@@ -1021,6 +1120,210 @@ public com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder()
10211120 return audioBuilder_ ;
10221121 }
10231122
1123+ private com .google .cloud .speech .v1 .TranscriptOutputConfig outputConfig_ ;
1124+ private com .google .protobuf .SingleFieldBuilderV3 <
1125+ com .google .cloud .speech .v1 .TranscriptOutputConfig ,
1126+ com .google .cloud .speech .v1 .TranscriptOutputConfig .Builder ,
1127+ com .google .cloud .speech .v1 .TranscriptOutputConfigOrBuilder >
1128+ outputConfigBuilder_ ;
1129+ /**
1130+ *
1131+ *
1132+ * <pre>
1133+ * Optional. Specifies an optional destination for the recognition results.
1134+ * </pre>
1135+ *
1136+ * <code>
1137+ * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL];
1138+ * </code>
1139+ *
1140+ * @return Whether the outputConfig field is set.
1141+ */
1142+ public boolean hasOutputConfig () {
1143+ return outputConfigBuilder_ != null || outputConfig_ != null ;
1144+ }
1145+ /**
1146+ *
1147+ *
1148+ * <pre>
1149+ * Optional. Specifies an optional destination for the recognition results.
1150+ * </pre>
1151+ *
1152+ * <code>
1153+ * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL];
1154+ * </code>
1155+ *
1156+ * @return The outputConfig.
1157+ */
1158+ public com .google .cloud .speech .v1 .TranscriptOutputConfig getOutputConfig () {
1159+ if (outputConfigBuilder_ == null ) {
1160+ return outputConfig_ == null
1161+ ? com .google .cloud .speech .v1 .TranscriptOutputConfig .getDefaultInstance ()
1162+ : outputConfig_ ;
1163+ } else {
1164+ return outputConfigBuilder_ .getMessage ();
1165+ }
1166+ }
1167+ /**
1168+ *
1169+ *
1170+ * <pre>
1171+ * Optional. Specifies an optional destination for the recognition results.
1172+ * </pre>
1173+ *
1174+ * <code>
1175+ * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL];
1176+ * </code>
1177+ */
1178+ public Builder setOutputConfig (com .google .cloud .speech .v1 .TranscriptOutputConfig value ) {
1179+ if (outputConfigBuilder_ == null ) {
1180+ if (value == null ) {
1181+ throw new NullPointerException ();
1182+ }
1183+ outputConfig_ = value ;
1184+ onChanged ();
1185+ } else {
1186+ outputConfigBuilder_ .setMessage (value );
1187+ }
1188+
1189+ return this ;
1190+ }
1191+ /**
1192+ *
1193+ *
1194+ * <pre>
1195+ * Optional. Specifies an optional destination for the recognition results.
1196+ * </pre>
1197+ *
1198+ * <code>
1199+ * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL];
1200+ * </code>
1201+ */
1202+ public Builder setOutputConfig (
1203+ com .google .cloud .speech .v1 .TranscriptOutputConfig .Builder builderForValue ) {
1204+ if (outputConfigBuilder_ == null ) {
1205+ outputConfig_ = builderForValue .build ();
1206+ onChanged ();
1207+ } else {
1208+ outputConfigBuilder_ .setMessage (builderForValue .build ());
1209+ }
1210+
1211+ return this ;
1212+ }
1213+ /**
1214+ *
1215+ *
1216+ * <pre>
1217+ * Optional. Specifies an optional destination for the recognition results.
1218+ * </pre>
1219+ *
1220+ * <code>
1221+ * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL];
1222+ * </code>
1223+ */
1224+ public Builder mergeOutputConfig (com .google .cloud .speech .v1 .TranscriptOutputConfig value ) {
1225+ if (outputConfigBuilder_ == null ) {
1226+ if (outputConfig_ != null ) {
1227+ outputConfig_ =
1228+ com .google .cloud .speech .v1 .TranscriptOutputConfig .newBuilder (outputConfig_ )
1229+ .mergeFrom (value )
1230+ .buildPartial ();
1231+ } else {
1232+ outputConfig_ = value ;
1233+ }
1234+ onChanged ();
1235+ } else {
1236+ outputConfigBuilder_ .mergeFrom (value );
1237+ }
1238+
1239+ return this ;
1240+ }
1241+ /**
1242+ *
1243+ *
1244+ * <pre>
1245+ * Optional. Specifies an optional destination for the recognition results.
1246+ * </pre>
1247+ *
1248+ * <code>
1249+ * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL];
1250+ * </code>
1251+ */
1252+ public Builder clearOutputConfig () {
1253+ if (outputConfigBuilder_ == null ) {
1254+ outputConfig_ = null ;
1255+ onChanged ();
1256+ } else {
1257+ outputConfig_ = null ;
1258+ outputConfigBuilder_ = null ;
1259+ }
1260+
1261+ return this ;
1262+ }
1263+ /**
1264+ *
1265+ *
1266+ * <pre>
1267+ * Optional. Specifies an optional destination for the recognition results.
1268+ * </pre>
1269+ *
1270+ * <code>
1271+ * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL];
1272+ * </code>
1273+ */
1274+ public com .google .cloud .speech .v1 .TranscriptOutputConfig .Builder getOutputConfigBuilder () {
1275+
1276+ onChanged ();
1277+ return getOutputConfigFieldBuilder ().getBuilder ();
1278+ }
1279+ /**
1280+ *
1281+ *
1282+ * <pre>
1283+ * Optional. Specifies an optional destination for the recognition results.
1284+ * </pre>
1285+ *
1286+ * <code>
1287+ * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL];
1288+ * </code>
1289+ */
1290+ public com .google .cloud .speech .v1 .TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder () {
1291+ if (outputConfigBuilder_ != null ) {
1292+ return outputConfigBuilder_ .getMessageOrBuilder ();
1293+ } else {
1294+ return outputConfig_ == null
1295+ ? com .google .cloud .speech .v1 .TranscriptOutputConfig .getDefaultInstance ()
1296+ : outputConfig_ ;
1297+ }
1298+ }
1299+ /**
1300+ *
1301+ *
1302+ * <pre>
1303+ * Optional. Specifies an optional destination for the recognition results.
1304+ * </pre>
1305+ *
1306+ * <code>
1307+ * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL];
1308+ * </code>
1309+ */
1310+ private com .google .protobuf .SingleFieldBuilderV3 <
1311+ com .google .cloud .speech .v1 .TranscriptOutputConfig ,
1312+ com .google .cloud .speech .v1 .TranscriptOutputConfig .Builder ,
1313+ com .google .cloud .speech .v1 .TranscriptOutputConfigOrBuilder >
1314+ getOutputConfigFieldBuilder () {
1315+ if (outputConfigBuilder_ == null ) {
1316+ outputConfigBuilder_ =
1317+ new com .google .protobuf .SingleFieldBuilderV3 <
1318+ com .google .cloud .speech .v1 .TranscriptOutputConfig ,
1319+ com .google .cloud .speech .v1 .TranscriptOutputConfig .Builder ,
1320+ com .google .cloud .speech .v1 .TranscriptOutputConfigOrBuilder >(
1321+ getOutputConfig (), getParentForChildren (), isClean ());
1322+ outputConfig_ = null ;
1323+ }
1324+ return outputConfigBuilder_ ;
1325+ }
1326+
10241327 @ java .lang .Override
10251328 public final Builder setUnknownFields (final com .google .protobuf .UnknownFieldSet unknownFields ) {
10261329 return super .setUnknownFields (unknownFields );
0 commit comments