diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java index 5f40bc9bc..5ae326828 100644 --- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java +++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java @@ -30,6 +30,7 @@ import com.google.cloud.speech.v1p1beta1.stub.AdaptationStubSettings; import com.google.common.util.concurrent.MoreExecutors; import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -496,6 +497,35 @@ public final UnaryCallable listPhra return stub.listPhraseSetCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a phrase set. + * + *

Sample code: + * + *

{@code
+   * try (AdaptationClient adaptationClient = AdaptationClient.create()) {
+   *   PhraseSet phraseSet = PhraseSet.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   PhraseSet response = adaptationClient.updatePhraseSet(phraseSet, updateMask);
+   * }
+   * }
+ * + * @param phraseSet Required. The phrase set to update. + *

The phrase set's `name` field is used to identify the set to be updated. Format: + * {api_version}/projects/{project}/locations/{location}/phraseSets/{phrase_set} + * @param updateMask The list of fields to be updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PhraseSet updatePhraseSet(PhraseSet phraseSet, FieldMask updateMask) { + UpdatePhraseSetRequest request = + UpdatePhraseSetRequest.newBuilder() + .setPhraseSet(phraseSet) + .setUpdateMask(updateMask) + .build(); + return updatePhraseSet(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Update a phrase set. @@ -977,6 +1007,35 @@ public final ListCustomClassesPagedResponse listCustomClasses(ListCustomClassesR return stub.listCustomClassesCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a custom class. + * + *

Sample code: + * + *

{@code
+   * try (AdaptationClient adaptationClient = AdaptationClient.create()) {
+   *   CustomClass customClass = CustomClass.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   CustomClass response = adaptationClient.updateCustomClass(customClass, updateMask);
+   * }
+   * }
+ * + * @param customClass Required. The custom class to update. + *

The custom class's `name` field is used to identify the custom class to be updated. + * Format: {api_version}/projects/{project}/locations/{location}/customClasses/{custom_class} + * @param updateMask The list of fields to be updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CustomClass updateCustomClass(CustomClass customClass, FieldMask updateMask) { + UpdateCustomClassRequest request = + UpdateCustomClassRequest.newBuilder() + .setCustomClass(customClass) + .setUpdateMask(updateMask) + .build(); + return updateCustomClass(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Update a custom class. diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java index c91af4abe..156d35f0a 100644 --- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java +++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java @@ -273,6 +273,7 @@ public final UnaryCallable recognizeCallabl * LongRunningRecognizeRequest.newBuilder() * .setConfig(RecognitionConfig.newBuilder().build()) * .setAudio(RecognitionAudio.newBuilder().build()) + * .setOutputConfig(TranscriptOutputConfig.newBuilder().build()) * .build(); * LongRunningRecognizeResponse response = speechClient.longRunningRecognizeAsync(request).get(); * } @@ -301,6 +302,7 @@ public final UnaryCallable recognizeCallabl * LongRunningRecognizeRequest.newBuilder() * .setConfig(RecognitionConfig.newBuilder().build()) * .setAudio(RecognitionAudio.newBuilder().build()) + * .setOutputConfig(TranscriptOutputConfig.newBuilder().build()) * .build(); * OperationFuture future = * speechClient.longRunningRecognizeOperationCallable().futureCall(request); @@ -330,6 +332,7 @@ public final UnaryCallable recognizeCallabl * LongRunningRecognizeRequest.newBuilder() * .setConfig(RecognitionConfig.newBuilder().build()) * .setAudio(RecognitionAudio.newBuilder().build()) + * .setOutputConfig(TranscriptOutputConfig.newBuilder().build()) * .build(); * ApiFuture future = speechClient.longRunningRecognizeCallable().futureCall(request); * // Do something. diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/gapic_metadata.json b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/gapic_metadata.json index 3525fcfa8..304cbe0bf 100644 --- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/gapic_metadata.json +++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/gapic_metadata.json @@ -53,10 +53,10 @@ "methods": ["listPhraseSet", "listPhraseSet", "listPhraseSet", "listPhraseSetPagedCallable", "listPhraseSetCallable"] }, "UpdateCustomClass": { - "methods": ["updateCustomClass", "updateCustomClassCallable"] + "methods": ["updateCustomClass", "updateCustomClass", "updateCustomClassCallable"] }, "UpdatePhraseSet": { - "methods": ["updatePhraseSet", "updatePhraseSetCallable"] + "methods": ["updatePhraseSet", "updatePhraseSet", "updatePhraseSetCallable"] } } } diff --git a/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java b/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java index 48e208932..cd27b8af6 100644 --- a/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java +++ b/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java @@ -352,21 +352,18 @@ public void updatePhraseSetTest() throws Exception { .build(); mockAdaptation.addResponse(expectedResponse); - UpdatePhraseSetRequest request = - UpdatePhraseSetRequest.newBuilder() - .setPhraseSet(PhraseSet.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); + PhraseSet phraseSet = PhraseSet.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - PhraseSet actualResponse = client.updatePhraseSet(request); + PhraseSet actualResponse = client.updatePhraseSet(phraseSet, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAdaptation.getRequests(); Assert.assertEquals(1, actualRequests.size()); UpdatePhraseSetRequest actualRequest = ((UpdatePhraseSetRequest) actualRequests.get(0)); - Assert.assertEquals(request.getPhraseSet(), actualRequest.getPhraseSet()); - Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); + Assert.assertEquals(phraseSet, actualRequest.getPhraseSet()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -379,12 +376,9 @@ public void updatePhraseSetExceptionTest() throws Exception { mockAdaptation.addException(exception); try { - UpdatePhraseSetRequest request = - UpdatePhraseSetRequest.newBuilder() - .setPhraseSet(PhraseSet.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - client.updatePhraseSet(request); + PhraseSet phraseSet = PhraseSet.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updatePhraseSet(phraseSet, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -729,21 +723,18 @@ public void updateCustomClassTest() throws Exception { .build(); mockAdaptation.addResponse(expectedResponse); - UpdateCustomClassRequest request = - UpdateCustomClassRequest.newBuilder() - .setCustomClass(CustomClass.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); + CustomClass customClass = CustomClass.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - CustomClass actualResponse = client.updateCustomClass(request); + CustomClass actualResponse = client.updateCustomClass(customClass, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAdaptation.getRequests(); Assert.assertEquals(1, actualRequests.size()); UpdateCustomClassRequest actualRequest = ((UpdateCustomClassRequest) actualRequests.get(0)); - Assert.assertEquals(request.getCustomClass(), actualRequest.getCustomClass()); - Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); + Assert.assertEquals(customClass, actualRequest.getCustomClass()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -756,12 +747,9 @@ public void updateCustomClassExceptionTest() throws Exception { mockAdaptation.addException(exception); try { - UpdateCustomClassRequest request = - UpdateCustomClassRequest.newBuilder() - .setCustomClass(CustomClass.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - client.updateCustomClass(request); + CustomClass customClass = CustomClass.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateCustomClass(customClass, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java index 538b5a4ec..33968d0b4 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java @@ -267,8 +267,8 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { * * *

-   * Output only. The URI of the audio file being transcribed. Empty if the
-   * audio was sent as byte content.
+   * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
+   * as byte content.
    * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -291,8 +291,8 @@ public java.lang.String getUri() { * * *
-   * Output only. The URI of the audio file being transcribed. Empty if the
-   * audio was sent as byte content.
+   * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
+   * as byte content.
    * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1131,8 +1131,8 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { * * *
-     * Output only. The URI of the audio file being transcribed. Empty if the
-     * audio was sent as byte content.
+     * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
+     * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1154,8 +1154,8 @@ public java.lang.String getUri() { * * *
-     * Output only. The URI of the audio file being transcribed. Empty if the
-     * audio was sent as byte content.
+     * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
+     * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1177,8 +1177,8 @@ public com.google.protobuf.ByteString getUriBytes() { * * *
-     * Output only. The URI of the audio file being transcribed. Empty if the
-     * audio was sent as byte content.
+     * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
+     * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1199,8 +1199,8 @@ public Builder setUri(java.lang.String value) { * * *
-     * Output only. The URI of the audio file being transcribed. Empty if the
-     * audio was sent as byte content.
+     * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
+     * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1217,8 +1217,8 @@ public Builder clearUri() { * * *
-     * Output only. The URI of the audio file being transcribed. Empty if the
-     * audio was sent as byte content.
+     * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
+     * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java index 50fc6216f..07cf90a75 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java @@ -111,8 +111,8 @@ public interface LongRunningRecognizeMetadataOrBuilder * * *
-   * Output only. The URI of the audio file being transcribed. Empty if the
-   * audio was sent as byte content.
+   * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
+   * as byte content.
    * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -124,8 +124,8 @@ public interface LongRunningRecognizeMetadataOrBuilder * * *
-   * Output only. The URI of the audio file being transcribed. Empty if the
-   * audio was sent as byte content.
+   * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
+   * as byte content.
    * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java index a19960d8b..d05dbda8a 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java @@ -101,6 +101,23 @@ private LongRunningRecognizeRequest( audio_ = subBuilder.buildPartial(); } + break; + } + case 34: + { + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); + } + outputConfig_ = + input.readMessage( + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); + } + break; } default: @@ -248,6 +265,61 @@ public com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBui return getAudio(); } + public static final int OUTPUT_CONFIG_FIELD_NUMBER = 4; + private com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig outputConfig_; + /** + * + * + *
+   * Optional. Specifies an optional destination for the recognition results.
+   * 
+ * + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the outputConfig field is set. + */ + @java.lang.Override + public boolean hasOutputConfig() { + return outputConfig_ != null; + } + /** + * + * + *
+   * Optional. Specifies an optional destination for the recognition results.
+   * 
+ * + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The outputConfig. + */ + @java.lang.Override + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig() { + return outputConfig_ == null + ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; + } + /** + * + * + *
+   * Optional. Specifies an optional destination for the recognition results.
+   * 
+ * + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder + getOutputConfigOrBuilder() { + return getOutputConfig(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -268,6 +340,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (audio_ != null) { output.writeMessage(2, getAudio()); } + if (outputConfig_ != null) { + output.writeMessage(4, getOutputConfig()); + } unknownFields.writeTo(output); } @@ -283,6 +358,9 @@ public int getSerializedSize() { if (audio_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAudio()); } + if (outputConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getOutputConfig()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -307,6 +385,10 @@ public boolean equals(final java.lang.Object obj) { if (hasAudio()) { if (!getAudio().equals(other.getAudio())) return false; } + if (hasOutputConfig() != other.hasOutputConfig()) return false; + if (hasOutputConfig()) { + if (!getOutputConfig().equals(other.getOutputConfig())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -326,6 +408,10 @@ public int hashCode() { hash = (37 * hash) + AUDIO_FIELD_NUMBER; hash = (53 * hash) + getAudio().hashCode(); } + if (hasOutputConfig()) { + hash = (37 * hash) + OUTPUT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getOutputConfig().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -485,6 +571,12 @@ public Builder clear() { audio_ = null; audioBuilder_ = null; } + if (outputConfigBuilder_ == null) { + outputConfig_ = null; + } else { + outputConfig_ = null; + outputConfigBuilder_ = null; + } return this; } @@ -523,6 +615,11 @@ public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest buildPartia } else { result.audio_ = audioBuilder_.build(); } + if (outputConfigBuilder_ == null) { + result.outputConfig_ = outputConfig_; + } else { + result.outputConfig_ = outputConfigBuilder_.build(); + } onBuilt(); return result; } @@ -580,6 +677,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeR if (other.hasAudio()) { mergeAudio(other.getAudio()); } + if (other.hasOutputConfig()) { + mergeOutputConfig(other.getOutputConfig()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1028,6 +1128,213 @@ public com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBui return audioBuilder_; } + private com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig outputConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> + outputConfigBuilder_; + /** + * + * + *
+     * Optional. Specifies an optional destination for the recognition results.
+     * 
+ * + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the outputConfig field is set. + */ + public boolean hasOutputConfig() { + return outputConfigBuilder_ != null || outputConfig_ != null; + } + /** + * + * + *
+     * Optional. Specifies an optional destination for the recognition results.
+     * 
+ * + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The outputConfig. + */ + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig() { + if (outputConfigBuilder_ == null) { + return outputConfig_ == null + ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; + } else { + return outputConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Specifies an optional destination for the recognition results.
+     * 
+ * + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { + if (outputConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputConfig_ = value; + onChanged(); + } else { + outputConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Specifies an optional destination for the recognition results.
+     * 
+ * + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOutputConfig( + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder builderForValue) { + if (outputConfigBuilder_ == null) { + outputConfig_ = builderForValue.build(); + onChanged(); + } else { + outputConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. Specifies an optional destination for the recognition results.
+     * 
+ * + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeOutputConfig( + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { + if (outputConfigBuilder_ == null) { + if (outputConfig_ != null) { + outputConfig_ = + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + outputConfig_ = value; + } + onChanged(); + } else { + outputConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Specifies an optional destination for the recognition results.
+     * 
+ * + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearOutputConfig() { + if (outputConfigBuilder_ == null) { + outputConfig_ = null; + onChanged(); + } else { + outputConfig_ = null; + outputConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. Specifies an optional destination for the recognition results.
+     * 
+ * + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder + getOutputConfigBuilder() { + + onChanged(); + return getOutputConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Specifies an optional destination for the recognition results.
+     * 
+ * + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder + getOutputConfigOrBuilder() { + if (outputConfigBuilder_ != null) { + return outputConfigBuilder_.getMessageOrBuilder(); + } else { + return outputConfig_ == null + ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; + } + } + /** + * + * + *
+     * Optional. Specifies an optional destination for the recognition results.
+     * 
+ * + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> + getOutputConfigFieldBuilder() { + if (outputConfigBuilder_ == null) { + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); + outputConfig_ = null; + } + return outputConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java index eac75ceed..02d21f70f 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java @@ -107,4 +107,45 @@ public interface LongRunningRecognizeRequestOrBuilder * */ com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBuilder(); + + /** + * + * + *
+   * Optional. Specifies an optional destination for the recognition results.
+   * 
+ * + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the outputConfig field is set. + */ + boolean hasOutputConfig(); + /** + * + * + *
+   * Optional. Specifies an optional destination for the recognition results.
+   * 
+ * + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The outputConfig. + */ + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig(); + /** + * + * + *
+   * Optional. Specifies an optional destination for the recognition results.
+   * 
+ * + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder(); } diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java index a1945017a..1a4741551 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java @@ -24,8 +24,8 @@ *
  * Contains audio data in the encoding specified in the `RecognitionConfig`.
  * Either `content` or `uri` must be supplied. Supplying both or neither
- * returns [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT].
- * See [content limits](https://cloud.google.com/speech-to-text/quotas#content).
+ * returns [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. See
+ * [content limits](https://cloud.google.com/speech-to-text/quotas#content).
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognitionAudio} @@ -214,9 +214,8 @@ public com.google.protobuf.ByteString getContent() { * Currently, only Google Cloud Storage URIs are * supported, which must be specified in the following format: * `gs://bucket_name/object_name` (other URI formats return - * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). - * For more information, see [Request - * URIs](https://cloud.google.com/storage/docs/reference-uris). + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see + * [Request URIs](https://cloud.google.com/storage/docs/reference-uris). * * * string uri = 2; @@ -235,9 +234,8 @@ public boolean hasUri() { * Currently, only Google Cloud Storage URIs are * supported, which must be specified in the following format: * `gs://bucket_name/object_name` (other URI formats return - * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). - * For more information, see [Request - * URIs](https://cloud.google.com/storage/docs/reference-uris). + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see + * [Request URIs](https://cloud.google.com/storage/docs/reference-uris). * * * string uri = 2; @@ -269,9 +267,8 @@ public java.lang.String getUri() { * Currently, only Google Cloud Storage URIs are * supported, which must be specified in the following format: * `gs://bucket_name/object_name` (other URI formats return - * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). - * For more information, see [Request - * URIs](https://cloud.google.com/storage/docs/reference-uris). + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see + * [Request URIs](https://cloud.google.com/storage/docs/reference-uris). * * * string uri = 2; @@ -488,8 +485,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build *
    * Contains audio data in the encoding specified in the `RecognitionConfig`.
    * Either `content` or `uri` must be supplied. Supplying both or neither
-   * returns [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT].
-   * See [content limits](https://cloud.google.com/speech-to-text/quotas#content).
+   * returns [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. See
+   * [content limits](https://cloud.google.com/speech-to-text/quotas#content).
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognitionAudio} @@ -767,9 +764,8 @@ public Builder clearContent() { * Currently, only Google Cloud Storage URIs are * supported, which must be specified in the following format: * `gs://bucket_name/object_name` (other URI formats return - * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). - * For more information, see [Request - * URIs](https://cloud.google.com/storage/docs/reference-uris). + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see + * [Request URIs](https://cloud.google.com/storage/docs/reference-uris). * * * string uri = 2; @@ -789,9 +785,8 @@ public boolean hasUri() { * Currently, only Google Cloud Storage URIs are * supported, which must be specified in the following format: * `gs://bucket_name/object_name` (other URI formats return - * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). - * For more information, see [Request - * URIs](https://cloud.google.com/storage/docs/reference-uris). + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see + * [Request URIs](https://cloud.google.com/storage/docs/reference-uris). * * * string uri = 2; @@ -824,9 +819,8 @@ public java.lang.String getUri() { * Currently, only Google Cloud Storage URIs are * supported, which must be specified in the following format: * `gs://bucket_name/object_name` (other URI formats return - * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). - * For more information, see [Request - * URIs](https://cloud.google.com/storage/docs/reference-uris). + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see + * [Request URIs](https://cloud.google.com/storage/docs/reference-uris). * * * string uri = 2; @@ -859,9 +853,8 @@ public com.google.protobuf.ByteString getUriBytes() { * Currently, only Google Cloud Storage URIs are * supported, which must be specified in the following format: * `gs://bucket_name/object_name` (other URI formats return - * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). - * For more information, see [Request - * URIs](https://cloud.google.com/storage/docs/reference-uris). + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see + * [Request URIs](https://cloud.google.com/storage/docs/reference-uris). * * * string uri = 2; @@ -887,9 +880,8 @@ public Builder setUri(java.lang.String value) { * Currently, only Google Cloud Storage URIs are * supported, which must be specified in the following format: * `gs://bucket_name/object_name` (other URI formats return - * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). - * For more information, see [Request - * URIs](https://cloud.google.com/storage/docs/reference-uris). + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see + * [Request URIs](https://cloud.google.com/storage/docs/reference-uris). * * * string uri = 2; @@ -913,9 +905,8 @@ public Builder clearUri() { * Currently, only Google Cloud Storage URIs are * supported, which must be specified in the following format: * `gs://bucket_name/object_name` (other URI formats return - * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). - * For more information, see [Request - * URIs](https://cloud.google.com/storage/docs/reference-uris). + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see + * [Request URIs](https://cloud.google.com/storage/docs/reference-uris). * * * string uri = 2; diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java index 37868a416..37850c3d9 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java @@ -61,9 +61,8 @@ public interface RecognitionAudioOrBuilder * Currently, only Google Cloud Storage URIs are * supported, which must be specified in the following format: * `gs://bucket_name/object_name` (other URI formats return - * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). - * For more information, see [Request - * URIs](https://cloud.google.com/storage/docs/reference-uris). + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see + * [Request URIs](https://cloud.google.com/storage/docs/reference-uris). * * * string uri = 2; @@ -80,9 +79,8 @@ public interface RecognitionAudioOrBuilder * Currently, only Google Cloud Storage URIs are * supported, which must be specified in the following format: * `gs://bucket_name/object_name` (other URI formats return - * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). - * For more information, see [Request - * URIs](https://cloud.google.com/storage/docs/reference-uris). + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see + * [Request URIs](https://cloud.google.com/storage/docs/reference-uris). * * * string uri = 2; @@ -99,9 +97,8 @@ public interface RecognitionAudioOrBuilder * Currently, only Google Cloud Storage URIs are * supported, which must be specified in the following format: * `gs://bucket_name/object_name` (other URI formats return - * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). - * For more information, see [Request - * URIs](https://cloud.google.com/storage/docs/reference-uris). + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see + * [Request URIs](https://cloud.google.com/storage/docs/reference-uris). * * * string uri = 2; diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java index cecc942a1..114d4f6db 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java @@ -277,7 +277,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * a lossless encoding (`FLAC` or `LINEAR16`). The accuracy of the speech * recognition can be reduced if lossy codecs are used to capture or transmit * audio, particularly if background noise is present. Lossy codecs include - * `MULAW`, `AMR`, `AMR_WB`, `OGG_OPUS`, `SPEEX_WITH_HEADER_BYTE`, and `MP3`. + * `MULAW`, `AMR`, `AMR_WB`, `OGG_OPUS`, `SPEEX_WITH_HEADER_BYTE`, `MP3`. * The `FLAC` and `WAV` audio file formats include a header that describes the * included audio content. You can request recognition for `WAV` files that * contain either `LINEAR16` or `MULAW` encoded audio. @@ -287,8 +287,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * an `AudioEncoding` when you send send `FLAC` or `WAV` audio, the * encoding configuration must match the encoding described in the audio * header; otherwise the request returns an - * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] error - * code. + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] error code. * * * Protobuf enum {@code google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding} @@ -627,8 +626,7 @@ private AudioEncoding(int value) { *
    * Encoding of audio data sent in all `RecognitionAudio` messages.
    * This field is optional for `FLAC` and `WAV` audio files and required
-   * for all other audio formats. For details, see
-   * [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding].
+   * for all other audio formats. For details, see [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding].
    * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; @@ -645,8 +643,7 @@ public int getEncodingValue() { *
    * Encoding of audio data sent in all `RecognitionAudio` messages.
    * This field is optional for `FLAC` and `WAV` audio files and required
-   * for all other audio formats. For details, see
-   * [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding].
+   * for all other audio formats. For details, see [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding].
    * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; @@ -675,8 +672,7 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding getEnco * source to 16000 Hz. If that's not possible, use the native sample rate of * the audio source (instead of re-sampling). * This field is optional for FLAC and WAV audio files, but is - * required for all other audio formats. For details, see - * [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding]. + * required for all other audio formats. For details, see [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding]. * * * int32 sample_rate_hertz = 2; @@ -2162,8 +2158,7 @@ public Builder mergeFrom( *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
-     * for all other audio formats. For details, see
-     * [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding].
+     * for all other audio formats. For details, see [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding].
      * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; @@ -2180,8 +2175,7 @@ public int getEncodingValue() { *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
-     * for all other audio formats. For details, see
-     * [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding].
+     * for all other audio formats. For details, see [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding].
      * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; @@ -2201,8 +2195,7 @@ public Builder setEncodingValue(int value) { *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
-     * for all other audio formats. For details, see
-     * [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding].
+     * for all other audio formats. For details, see [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding].
      * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; @@ -2224,8 +2217,7 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding getEnco *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
-     * for all other audio formats. For details, see
-     * [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding].
+     * for all other audio formats. For details, see [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding].
      * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; @@ -2249,8 +2241,7 @@ public Builder setEncoding( *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
-     * for all other audio formats. For details, see
-     * [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding].
+     * for all other audio formats. For details, see [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding].
      * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; @@ -2275,8 +2266,7 @@ public Builder clearEncoding() { * source to 16000 Hz. If that's not possible, use the native sample rate of * the audio source (instead of re-sampling). * This field is optional for FLAC and WAV audio files, but is - * required for all other audio formats. For details, see - * [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding]. + * required for all other audio formats. For details, see [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding]. * * * int32 sample_rate_hertz = 2; @@ -2297,8 +2287,7 @@ public int getSampleRateHertz() { * source to 16000 Hz. If that's not possible, use the native sample rate of * the audio source (instead of re-sampling). * This field is optional for FLAC and WAV audio files, but is - * required for all other audio formats. For details, see - * [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding]. + * required for all other audio formats. For details, see [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding]. * * * int32 sample_rate_hertz = 2; @@ -2322,8 +2311,7 @@ public Builder setSampleRateHertz(int value) { * source to 16000 Hz. If that's not possible, use the native sample rate of * the audio source (instead of re-sampling). * This field is optional for FLAC and WAV audio files, but is - * required for all other audio formats. For details, see - * [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding]. + * required for all other audio formats. For details, see [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding]. * * * int32 sample_rate_hertz = 2; diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java index 199837a00..08087a1d6 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java @@ -29,8 +29,7 @@ public interface RecognitionConfigOrBuilder *
    * Encoding of audio data sent in all `RecognitionAudio` messages.
    * This field is optional for `FLAC` and `WAV` audio files and required
-   * for all other audio formats. For details, see
-   * [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding].
+   * for all other audio formats. For details, see [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding].
    * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; @@ -44,8 +43,7 @@ public interface RecognitionConfigOrBuilder *
    * Encoding of audio data sent in all `RecognitionAudio` messages.
    * This field is optional for `FLAC` and `WAV` audio files and required
-   * for all other audio formats. For details, see
-   * [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding].
+   * for all other audio formats. For details, see [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding].
    * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; @@ -64,8 +62,7 @@ public interface RecognitionConfigOrBuilder * source to 16000 Hz. If that's not possible, use the native sample rate of * the audio source (instead of re-sampling). * This field is optional for FLAC and WAV audio files, but is - * required for all other audio formats. For details, see - * [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding]. + * required for all other audio formats. For details, see [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding]. * * * int32 sample_rate_hertz = 2; diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java index a528a7cde..2fa5af18e 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java @@ -128,7 +128,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "h.v1p1beta1.CustomClass\022\027\n\017next_page_tok" + "en\030\002 \001(\t\"S\n\030DeleteCustomClassRequest\0227\n\004" + "name\030\001 \001(\tB)\340A\002\372A#\n!speech.googleapis.co" - + "m/CustomClass2\236\020\n\nAdaptation\022\326\001\n\017CreateP" + + "m/CustomClass2\322\020\n\nAdaptation\022\326\001\n\017CreateP" + "hraseSet\0225.google.cloud.speech.v1p1beta1" + ".CreatePhraseSetRequest\032(.google.cloud.s" + "peech.v1p1beta1.PhraseSet\"b\202\323\344\223\002:\"5/v1p1" @@ -143,48 +143,49 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tPhraseSetRequest\0324.google.cloud.speech." + "v1p1beta1.ListPhraseSetResponse\"F\202\323\344\223\0027\022" + "5/v1p1beta1/{parent=projects/*/locations" - + "/*}/phraseSets\332A\006parent\022\310\001\n\017UpdatePhrase" + + "/*}/phraseSets\332A\006parent\022\341\001\n\017UpdatePhrase" + "Set\0225.google.cloud.speech.v1p1beta1.Upda" + "tePhraseSetRequest\032(.google.cloud.speech" - + ".v1p1beta1.PhraseSet\"T\202\323\344\223\002N2@/v1p1beta1" + + ".v1p1beta1.PhraseSet\"m\202\323\344\223\002N2@/v1p1beta1" + "/{phrase_set.name=projects/*/locations/*" - + "/phraseSets/*}:\nphrase_set\022\246\001\n\017DeletePhr" - + "aseSet\0225.google.cloud.speech.v1p1beta1.D" - + "eletePhraseSetRequest\032\026.google.protobuf." - + "Empty\"D\202\323\344\223\0027*5/v1p1beta1/{name=projects" - + "/*/locations/*/phraseSets/*}\332A\004name\022\343\001\n\021" - + "CreateCustomClass\0227.google.cloud.speech." - + "v1p1beta1.CreateCustomClassRequest\032*.goo" - + "gle.cloud.speech.v1p1beta1.CustomClass\"i" - + "\202\323\344\223\002=\"8/v1p1beta1/{parent=projects/*/lo" - + "cations/*}/customClasses:\001*\332A#parent,cus" - + "tom_class,custom_class_id\022\273\001\n\016GetCustomC" - + "lass\0224.google.cloud.speech.v1p1beta1.Get" - + "CustomClassRequest\032*.google.cloud.speech" - + ".v1p1beta1.CustomClass\"G\202\323\344\223\002:\0228/v1p1bet" - + "a1/{name=projects/*/locations/*/customCl" - + "asses/*}\332A\004name\022\321\001\n\021ListCustomClasses\0227." - + "google.cloud.speech.v1p1beta1.ListCustom" - + "ClassesRequest\0328.google.cloud.speech.v1p" - + "1beta1.ListCustomClassesResponse\"I\202\323\344\223\002:" - + "\0228/v1p1beta1/{parent=projects/*/location" - + "s/*}/customClasses\332A\006parent\022\325\001\n\021UpdateCu" - + "stomClass\0227.google.cloud.speech.v1p1beta" - + "1.UpdateCustomClassRequest\032*.google.clou" - + "d.speech.v1p1beta1.CustomClass\"[\202\323\344\223\002U2E" - + "/v1p1beta1/{custom_class.name=projects/*" - + "/locations/*/customClasses/*}:\014custom_cl" - + "ass\022\255\001\n\021DeleteCustomClass\0227.google.cloud" - + ".speech.v1p1beta1.DeleteCustomClassReque" - + "st\032\026.google.protobuf.Empty\"G\202\323\344\223\002:*8/v1p" - + "1beta1/{name=projects/*/locations/*/cust" - + "omClasses/*}\332A\004name\032I\312A\025speech.googleapi" - + "s.com\322A.https://www.googleapis.com/auth/" - + "cloud-platformB\212\001\n!com.google.cloud.spee" - + "ch.v1p1beta1B\025SpeechAdaptationProtoP\001ZCg" - + "oogle.golang.org/genproto/googleapis/clo" - + "ud/speech/v1p1beta1;speech\370\001\001\242\002\003GCSb\006pro" - + "to3" + + "/phraseSets/*}:\nphrase_set\332A\026phrase_set," + + "update_mask\022\246\001\n\017DeletePhraseSet\0225.google" + + ".cloud.speech.v1p1beta1.DeletePhraseSetR" + + "equest\032\026.google.protobuf.Empty\"D\202\323\344\223\0027*5" + + "/v1p1beta1/{name=projects/*/locations/*/" + + "phraseSets/*}\332A\004name\022\343\001\n\021CreateCustomCla" + + "ss\0227.google.cloud.speech.v1p1beta1.Creat" + + "eCustomClassRequest\032*.google.cloud.speec" + + "h.v1p1beta1.CustomClass\"i\202\323\344\223\002=\"8/v1p1be" + + "ta1/{parent=projects/*/locations/*}/cust" + + "omClasses:\001*\332A#parent,custom_class,custo" + + "m_class_id\022\273\001\n\016GetCustomClass\0224.google.c" + + "loud.speech.v1p1beta1.GetCustomClassRequ" + + "est\032*.google.cloud.speech.v1p1beta1.Cust" + + "omClass\"G\202\323\344\223\002:\0228/v1p1beta1/{name=projec" + + "ts/*/locations/*/customClasses/*}\332A\004name" + + "\022\321\001\n\021ListCustomClasses\0227.google.cloud.sp" + + "eech.v1p1beta1.ListCustomClassesRequest\032" + + "8.google.cloud.speech.v1p1beta1.ListCust" + + "omClassesResponse\"I\202\323\344\223\002:\0228/v1p1beta1/{p" + + "arent=projects/*/locations/*}/customClas" + + "ses\332A\006parent\022\360\001\n\021UpdateCustomClass\0227.goo" + + "gle.cloud.speech.v1p1beta1.UpdateCustomC" + + "lassRequest\032*.google.cloud.speech.v1p1be" + + "ta1.CustomClass\"v\202\323\344\223\002U2E/v1p1beta1/{cus" + + "tom_class.name=projects/*/locations/*/cu" + + "stomClasses/*}:\014custom_class\332A\030custom_cl" + + "ass,update_mask\022\255\001\n\021DeleteCustomClass\0227." + + "google.cloud.speech.v1p1beta1.DeleteCust" + + "omClassRequest\032\026.google.protobuf.Empty\"G" + + "\202\323\344\223\002:*8/v1p1beta1/{name=projects/*/loca" + + "tions/*/customClasses/*}\332A\004name\032I\312A\025spee" + + "ch.googleapis.com\322A.https://www.googleap" + + "is.com/auth/cloud-platformB\212\001\n!com.googl" + + "e.cloud.speech.v1p1beta1B\025SpeechAdaptati" + + "onProtoP\001ZCgoogle.golang.org/genproto/go" + + "ogleapis/cloud/speech/v1p1beta1;speech\370\001" + + "\001\242\002\003GCSb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java index bcc62d545..208bf86bb 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java @@ -35,6 +35,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -108,143 +112,146 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "eech.proto\022\035google.cloud.speech.v1p1beta" + "1\032\034google/api/annotations.proto\032\027google/" + "api/client.proto\032\037google/api/field_behav" - + "ior.proto\032\031google/api/resource.proto\032,go" - + "ogle/cloud/speech/v1p1beta1/resource.pro" - + "to\032#google/longrunning/operations.proto\032" - + "\031google/protobuf/any.proto\032\036google/proto" - + "buf/duration.proto\032\037google/protobuf/time" - + "stamp.proto\032\027google/rpc/status.proto\"\236\001\n" - + "\020RecognizeRequest\022E\n\006config\030\001 \001(\01320.goog" - + "le.cloud.speech.v1p1beta1.RecognitionCon" - + "figB\003\340A\002\022C\n\005audio\030\002 \001(\0132/.google.cloud.s" - + "peech.v1p1beta1.RecognitionAudioB\003\340A\002\"\251\001" - + "\n\033LongRunningRecognizeRequest\022E\n\006config\030" - + "\001 \001(\01320.google.cloud.speech.v1p1beta1.Re" - + "cognitionConfigB\003\340A\002\022C\n\005audio\030\002 \001(\0132/.go" - + "ogle.cloud.speech.v1p1beta1.RecognitionA" - + "udioB\003\340A\002\"\240\001\n\031StreamingRecognizeRequest\022" - + "U\n\020streaming_config\030\001 \001(\01329.google.cloud" - + ".speech.v1p1beta1.StreamingRecognitionCo" - + "nfigH\000\022\027\n\raudio_content\030\002 \001(\014H\000B\023\n\021strea" - + "ming_request\"\226\001\n\032StreamingRecognitionCon" - + "fig\022E\n\006config\030\001 \001(\01320.google.cloud.speec" - + "h.v1p1beta1.RecognitionConfigB\003\340A\002\022\030\n\020si" - + "ngle_utterance\030\002 \001(\010\022\027\n\017interim_results\030" - + "\003 \001(\010\"\334\007\n\021RecognitionConfig\022P\n\010encoding\030" - + "\001 \001(\0162>.google.cloud.speech.v1p1beta1.Re" - + "cognitionConfig.AudioEncoding\022\031\n\021sample_" - + "rate_hertz\030\002 \001(\005\022\033\n\023audio_channel_count\030" - + "\007 \001(\005\022/\n\'enable_separate_recognition_per" - + "_channel\030\014 \001(\010\022\032\n\rlanguage_code\030\003 \001(\tB\003\340" - + "A\002\022\"\n\032alternative_language_codes\030\022 \003(\t\022\030" - + "\n\020max_alternatives\030\004 \001(\005\022\030\n\020profanity_fi" - + "lter\030\005 \001(\010\022C\n\nadaptation\030\024 \001(\0132/.google." - + "cloud.speech.v1p1beta1.SpeechAdaptation\022" - + "E\n\017speech_contexts\030\006 \003(\0132,.google.cloud." - + "speech.v1p1beta1.SpeechContext\022 \n\030enable" - + "_word_time_offsets\030\010 \001(\010\022\036\n\026enable_word_" - + "confidence\030\017 \001(\010\022$\n\034enable_automatic_pun" - + "ctuation\030\013 \001(\010\022&\n\032enable_speaker_diariza" - + "tion\030\020 \001(\010B\002\030\001\022%\n\031diarization_speaker_co" - + "unt\030\021 \001(\005B\002\030\001\022S\n\022diarization_config\030\023 \001(" - + "\01327.google.cloud.speech.v1p1beta1.Speake" - + "rDiarizationConfig\022D\n\010metadata\030\t \001(\01322.g" + + "ior.proto\032,google/cloud/speech/v1p1beta1" + + "/resource.proto\032#google/longrunning/oper" + + "ations.proto\032\031google/protobuf/any.proto\032" + + "\036google/protobuf/duration.proto\032\037google/" + + "protobuf/timestamp.proto\032\027google/rpc/sta" + + "tus.proto\"\236\001\n\020RecognizeRequest\022E\n\006config" + + "\030\001 \001(\01320.google.cloud.speech.v1p1beta1.R" + + "ecognitionConfigB\003\340A\002\022C\n\005audio\030\002 \001(\0132/.g" + "oogle.cloud.speech.v1p1beta1.Recognition" - + "Metadata\022\r\n\005model\030\r \001(\t\022\024\n\014use_enhanced\030" - + "\016 \001(\010\"\224\001\n\rAudioEncoding\022\030\n\024ENCODING_UNSP" - + "ECIFIED\020\000\022\014\n\010LINEAR16\020\001\022\010\n\004FLAC\020\002\022\t\n\005MUL" - + "AW\020\003\022\007\n\003AMR\020\004\022\n\n\006AMR_WB\020\005\022\014\n\010OGG_OPUS\020\006\022" - + "\032\n\026SPEEX_WITH_HEADER_BYTE\020\007\022\007\n\003MP3\020\010\"\220\001\n" - + "\030SpeakerDiarizationConfig\022\"\n\032enable_spea" - + "ker_diarization\030\001 \001(\010\022\031\n\021min_speaker_cou" - + "nt\030\002 \001(\005\022\031\n\021max_speaker_count\030\003 \001(\005\022\032\n\013s" - + "peaker_tag\030\005 \001(\005B\005\030\001\340A\003\"\327\010\n\023RecognitionM" - + "etadata\022\\\n\020interaction_type\030\001 \001(\0162B.goog" - + "le.cloud.speech.v1p1beta1.RecognitionMet" - + "adata.InteractionType\022$\n\034industry_naics_" - + "code_of_audio\030\003 \001(\r\022b\n\023microphone_distan" - + "ce\030\004 \001(\0162E.google.cloud.speech.v1p1beta1" - + ".RecognitionMetadata.MicrophoneDistance\022" - + "a\n\023original_media_type\030\005 \001(\0162D.google.cl" - + "oud.speech.v1p1beta1.RecognitionMetadata" - + ".OriginalMediaType\022e\n\025recording_device_t" - + "ype\030\006 \001(\0162F.google.cloud.speech.v1p1beta" - + "1.RecognitionMetadata.RecordingDeviceTyp" - + "e\022\035\n\025recording_device_name\030\007 \001(\t\022\032\n\022orig" - + "inal_mime_type\030\010 \001(\t\022\031\n\robfuscated_id\030\t " - + "\001(\003B\002\030\001\022\023\n\013audio_topic\030\n \001(\t\"\305\001\n\017Interac" - + "tionType\022 \n\034INTERACTION_TYPE_UNSPECIFIED" - + "\020\000\022\016\n\nDISCUSSION\020\001\022\020\n\014PRESENTATION\020\002\022\016\n\n" - + "PHONE_CALL\020\003\022\r\n\tVOICEMAIL\020\004\022\033\n\027PROFESSIO" - + "NALLY_PRODUCED\020\005\022\020\n\014VOICE_SEARCH\020\006\022\021\n\rVO" - + "ICE_COMMAND\020\007\022\r\n\tDICTATION\020\010\"d\n\022Micropho" - + "neDistance\022#\n\037MICROPHONE_DISTANCE_UNSPEC" - + "IFIED\020\000\022\r\n\tNEARFIELD\020\001\022\014\n\010MIDFIELD\020\002\022\014\n\010" - + "FARFIELD\020\003\"N\n\021OriginalMediaType\022#\n\037ORIGI" - + "NAL_MEDIA_TYPE_UNSPECIFIED\020\000\022\t\n\005AUDIO\020\001\022" - + "\t\n\005VIDEO\020\002\"\244\001\n\023RecordingDeviceType\022%\n!RE" - + "CORDING_DEVICE_TYPE_UNSPECIFIED\020\000\022\016\n\nSMA" - + "RTPHONE\020\001\022\006\n\002PC\020\002\022\016\n\nPHONE_LINE\020\003\022\013\n\007VEH" - + "ICLE\020\004\022\030\n\024OTHER_OUTDOOR_DEVICE\020\005\022\027\n\023OTHE" - + "R_INDOOR_DEVICE\020\006\"/\n\rSpeechContext\022\017\n\007ph" - + "rases\030\001 \003(\t\022\r\n\005boost\030\004 \001(\002\"D\n\020Recognitio" - + "nAudio\022\021\n\007content\030\001 \001(\014H\000\022\r\n\003uri\030\002 \001(\tH\000" - + "B\016\n\014audio_source\"\\\n\021RecognizeResponse\022G\n" - + "\007results\030\002 \003(\01326.google.cloud.speech.v1p" - + "1beta1.SpeechRecognitionResult\"g\n\034LongRu" - + "nningRecognizeResponse\022G\n\007results\030\002 \003(\0132" - + "6.google.cloud.speech.v1p1beta1.SpeechRe" - + "cognitionResult\"\260\001\n\034LongRunningRecognize" - + "Metadata\022\030\n\020progress_percent\030\001 \001(\005\022.\n\nst" - + "art_time\030\002 \001(\0132\032.google.protobuf.Timesta" - + "mp\0224\n\020last_update_time\030\003 \001(\0132\032.google.pr" - + "otobuf.Timestamp\022\020\n\003uri\030\004 \001(\tB\003\340A\003\"\277\002\n\032S" - + "treamingRecognizeResponse\022!\n\005error\030\001 \001(\013" - + "2\022.google.rpc.Status\022J\n\007results\030\002 \003(\01329." - + "google.cloud.speech.v1p1beta1.StreamingR" - + "ecognitionResult\022d\n\021speech_event_type\030\004 " - + "\001(\0162I.google.cloud.speech.v1p1beta1.Stre" - + "amingRecognizeResponse.SpeechEventType\"L" - + "\n\017SpeechEventType\022\034\n\030SPEECH_EVENT_UNSPEC" - + "IFIED\020\000\022\033\n\027END_OF_SINGLE_UTTERANCE\020\001\"\371\001\n" - + "\032StreamingRecognitionResult\022Q\n\014alternati" - + "ves\030\001 \003(\0132;.google.cloud.speech.v1p1beta" - + "1.SpeechRecognitionAlternative\022\020\n\010is_fin" - + "al\030\002 \001(\010\022\021\n\tstability\030\003 \001(\002\0222\n\017result_en" - + "d_time\030\004 \001(\0132\031.google.protobuf.Duration\022" - + "\023\n\013channel_tag\030\005 \001(\005\022\032\n\rlanguage_code\030\006 " - + "\001(\tB\003\340A\003\"\235\001\n\027SpeechRecognitionResult\022Q\n\014" - + "alternatives\030\001 \003(\0132;.google.cloud.speech" - + ".v1p1beta1.SpeechRecognitionAlternative\022" - + "\023\n\013channel_tag\030\002 \001(\005\022\032\n\rlanguage_code\030\005 " - + "\001(\tB\003\340A\003\"~\n\034SpeechRecognitionAlternative" - + "\022\022\n\ntranscript\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002" - + "\0226\n\005words\030\003 \003(\0132\'.google.cloud.speech.v1" - + "p1beta1.WordInfo\"\242\001\n\010WordInfo\022-\n\nstart_t" - + "ime\030\001 \001(\0132\031.google.protobuf.Duration\022+\n\010" - + "end_time\030\002 \001(\0132\031.google.protobuf.Duratio" - + "n\022\014\n\004word\030\003 \001(\t\022\022\n\nconfidence\030\004 \001(\002\022\030\n\013s" - + "peaker_tag\030\005 \001(\005B\003\340A\0032\202\005\n\006Speech\022\245\001\n\tRec" - + "ognize\022/.google.cloud.speech.v1p1beta1.R" - + "ecognizeRequest\0320.google.cloud.speech.v1" - + "p1beta1.RecognizeResponse\"5\202\323\344\223\002 \"\033/v1p1" - + "beta1/speech:recognize:\001*\332A\014config,audio" - + "\022\362\001\n\024LongRunningRecognize\022:.google.cloud" - + ".speech.v1p1beta1.LongRunningRecognizeRe" - + "quest\032\035.google.longrunning.Operation\"\177\202\323" - + "\344\223\002+\"&/v1p1beta1/speech:longrunningrecog" - + "nize:\001*\332A\014config,audio\312A<\n\034LongRunningRe" - + "cognizeResponse\022\034LongRunningRecognizeMet" - + "adata\022\217\001\n\022StreamingRecognize\0228.google.cl" - + "oud.speech.v1p1beta1.StreamingRecognizeR" - + "equest\0329.google.cloud.speech.v1p1beta1.S" - + "treamingRecognizeResponse\"\000(\0010\001\032I\312A\025spee" - + "ch.googleapis.com\322A.https://www.googleap" - + "is.com/auth/cloud-platformB\200\001\n!com.googl" - + "e.cloud.speech.v1p1beta1B\013SpeechProtoP\001Z" - + "Cgoogle.golang.org/genproto/googleapis/c" - + "loud/speech/v1p1beta1;speech\370\001\001\242\002\003GCSb\006p" - + "roto3" + + "AudioB\003\340A\002\"\374\001\n\033LongRunningRecognizeReque" + + "st\022E\n\006config\030\001 \001(\01320.google.cloud.speech" + + ".v1p1beta1.RecognitionConfigB\003\340A\002\022C\n\005aud" + + "io\030\002 \001(\0132/.google.cloud.speech.v1p1beta1" + + ".RecognitionAudioB\003\340A\002\022Q\n\routput_config\030" + + "\004 \001(\01325.google.cloud.speech.v1p1beta1.Tr" + + "anscriptOutputConfigB\003\340A\001\":\n\026TranscriptO" + + "utputConfig\022\021\n\007gcs_uri\030\001 \001(\tH\000B\r\n\013output" + + "_type\"\240\001\n\031StreamingRecognizeRequest\022U\n\020s" + + "treaming_config\030\001 \001(\01329.google.cloud.spe" + + "ech.v1p1beta1.StreamingRecognitionConfig" + + "H\000\022\027\n\raudio_content\030\002 \001(\014H\000B\023\n\021streaming" + + "_request\"\226\001\n\032StreamingRecognitionConfig\022" + + "E\n\006config\030\001 \001(\01320.google.cloud.speech.v1" + + "p1beta1.RecognitionConfigB\003\340A\002\022\030\n\020single" + + "_utterance\030\002 \001(\010\022\027\n\017interim_results\030\003 \001(" + + "\010\"\334\007\n\021RecognitionConfig\022P\n\010encoding\030\001 \001(" + + "\0162>.google.cloud.speech.v1p1beta1.Recogn" + + "itionConfig.AudioEncoding\022\031\n\021sample_rate" + + "_hertz\030\002 \001(\005\022\033\n\023audio_channel_count\030\007 \001(" + + "\005\022/\n\'enable_separate_recognition_per_cha" + + "nnel\030\014 \001(\010\022\032\n\rlanguage_code\030\003 \001(\tB\003\340A\002\022\"" + + "\n\032alternative_language_codes\030\022 \003(\t\022\030\n\020ma" + + "x_alternatives\030\004 \001(\005\022\030\n\020profanity_filter" + + "\030\005 \001(\010\022C\n\nadaptation\030\024 \001(\0132/.google.clou" + + "d.speech.v1p1beta1.SpeechAdaptation\022E\n\017s" + + "peech_contexts\030\006 \003(\0132,.google.cloud.spee" + + "ch.v1p1beta1.SpeechContext\022 \n\030enable_wor" + + "d_time_offsets\030\010 \001(\010\022\036\n\026enable_word_conf" + + "idence\030\017 \001(\010\022$\n\034enable_automatic_punctua" + + "tion\030\013 \001(\010\022&\n\032enable_speaker_diarization" + + "\030\020 \001(\010B\002\030\001\022%\n\031diarization_speaker_count\030" + + "\021 \001(\005B\002\030\001\022S\n\022diarization_config\030\023 \001(\01327." + + "google.cloud.speech.v1p1beta1.SpeakerDia" + + "rizationConfig\022D\n\010metadata\030\t \001(\01322.googl" + + "e.cloud.speech.v1p1beta1.RecognitionMeta" + + "data\022\r\n\005model\030\r \001(\t\022\024\n\014use_enhanced\030\016 \001(" + + "\010\"\224\001\n\rAudioEncoding\022\030\n\024ENCODING_UNSPECIF" + + "IED\020\000\022\014\n\010LINEAR16\020\001\022\010\n\004FLAC\020\002\022\t\n\005MULAW\020\003" + + "\022\007\n\003AMR\020\004\022\n\n\006AMR_WB\020\005\022\014\n\010OGG_OPUS\020\006\022\032\n\026S" + + "PEEX_WITH_HEADER_BYTE\020\007\022\007\n\003MP3\020\010\"\220\001\n\030Spe" + + "akerDiarizationConfig\022\"\n\032enable_speaker_" + + "diarization\030\001 \001(\010\022\031\n\021min_speaker_count\030\002" + + " \001(\005\022\031\n\021max_speaker_count\030\003 \001(\005\022\032\n\013speak" + + "er_tag\030\005 \001(\005B\005\030\001\340A\003\"\327\010\n\023RecognitionMetad" + + "ata\022\\\n\020interaction_type\030\001 \001(\0162B.google.c" + + "loud.speech.v1p1beta1.RecognitionMetadat" + + "a.InteractionType\022$\n\034industry_naics_code" + + "_of_audio\030\003 \001(\r\022b\n\023microphone_distance\030\004" + + " \001(\0162E.google.cloud.speech.v1p1beta1.Rec" + + "ognitionMetadata.MicrophoneDistance\022a\n\023o" + + "riginal_media_type\030\005 \001(\0162D.google.cloud." + + "speech.v1p1beta1.RecognitionMetadata.Ori" + + "ginalMediaType\022e\n\025recording_device_type\030" + + "\006 \001(\0162F.google.cloud.speech.v1p1beta1.Re" + + "cognitionMetadata.RecordingDeviceType\022\035\n" + + "\025recording_device_name\030\007 \001(\t\022\032\n\022original" + + "_mime_type\030\010 \001(\t\022\031\n\robfuscated_id\030\t \001(\003B" + + "\002\030\001\022\023\n\013audio_topic\030\n \001(\t\"\305\001\n\017Interaction" + + "Type\022 \n\034INTERACTION_TYPE_UNSPECIFIED\020\000\022\016" + + "\n\nDISCUSSION\020\001\022\020\n\014PRESENTATION\020\002\022\016\n\nPHON" + + "E_CALL\020\003\022\r\n\tVOICEMAIL\020\004\022\033\n\027PROFESSIONALL" + + "Y_PRODUCED\020\005\022\020\n\014VOICE_SEARCH\020\006\022\021\n\rVOICE_" + + "COMMAND\020\007\022\r\n\tDICTATION\020\010\"d\n\022MicrophoneDi" + + "stance\022#\n\037MICROPHONE_DISTANCE_UNSPECIFIE" + + "D\020\000\022\r\n\tNEARFIELD\020\001\022\014\n\010MIDFIELD\020\002\022\014\n\010FARF" + + "IELD\020\003\"N\n\021OriginalMediaType\022#\n\037ORIGINAL_" + + "MEDIA_TYPE_UNSPECIFIED\020\000\022\t\n\005AUDIO\020\001\022\t\n\005V" + + "IDEO\020\002\"\244\001\n\023RecordingDeviceType\022%\n!RECORD" + + "ING_DEVICE_TYPE_UNSPECIFIED\020\000\022\016\n\nSMARTPH" + + "ONE\020\001\022\006\n\002PC\020\002\022\016\n\nPHONE_LINE\020\003\022\013\n\007VEHICLE" + + "\020\004\022\030\n\024OTHER_OUTDOOR_DEVICE\020\005\022\027\n\023OTHER_IN" + + "DOOR_DEVICE\020\006\"/\n\rSpeechContext\022\017\n\007phrase" + + "s\030\001 \003(\t\022\r\n\005boost\030\004 \001(\002\"D\n\020RecognitionAud" + + "io\022\021\n\007content\030\001 \001(\014H\000\022\r\n\003uri\030\002 \001(\tH\000B\016\n\014" + + "audio_source\"\\\n\021RecognizeResponse\022G\n\007res" + + "ults\030\002 \003(\01326.google.cloud.speech.v1p1bet" + + "a1.SpeechRecognitionResult\"g\n\034LongRunnin" + + "gRecognizeResponse\022G\n\007results\030\002 \003(\01326.go" + + "ogle.cloud.speech.v1p1beta1.SpeechRecogn" + + "itionResult\"\260\001\n\034LongRunningRecognizeMeta" + + "data\022\030\n\020progress_percent\030\001 \001(\005\022.\n\nstart_" + + "time\030\002 \001(\0132\032.google.protobuf.Timestamp\0224" + + "\n\020last_update_time\030\003 \001(\0132\032.google.protob" + + "uf.Timestamp\022\020\n\003uri\030\004 \001(\tB\003\340A\003\"\277\002\n\032Strea" + + "mingRecognizeResponse\022!\n\005error\030\001 \001(\0132\022.g" + + "oogle.rpc.Status\022J\n\007results\030\002 \003(\01329.goog" + + "le.cloud.speech.v1p1beta1.StreamingRecog" + + "nitionResult\022d\n\021speech_event_type\030\004 \001(\0162" + + "I.google.cloud.speech.v1p1beta1.Streamin" + + "gRecognizeResponse.SpeechEventType\"L\n\017Sp" + + "eechEventType\022\034\n\030SPEECH_EVENT_UNSPECIFIE" + + "D\020\000\022\033\n\027END_OF_SINGLE_UTTERANCE\020\001\"\371\001\n\032Str" + + "eamingRecognitionResult\022Q\n\014alternatives\030" + + "\001 \003(\0132;.google.cloud.speech.v1p1beta1.Sp" + + "eechRecognitionAlternative\022\020\n\010is_final\030\002" + + " \001(\010\022\021\n\tstability\030\003 \001(\002\0222\n\017result_end_ti" + + "me\030\004 \001(\0132\031.google.protobuf.Duration\022\023\n\013c" + + "hannel_tag\030\005 \001(\005\022\032\n\rlanguage_code\030\006 \001(\tB" + + "\003\340A\003\"\235\001\n\027SpeechRecognitionResult\022Q\n\014alte" + + "rnatives\030\001 \003(\0132;.google.cloud.speech.v1p" + + "1beta1.SpeechRecognitionAlternative\022\023\n\013c" + + "hannel_tag\030\002 \001(\005\022\032\n\rlanguage_code\030\005 \001(\tB" + + "\003\340A\003\"~\n\034SpeechRecognitionAlternative\022\022\n\n" + + "transcript\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\0226\n\005" + + "words\030\003 \003(\0132\'.google.cloud.speech.v1p1be" + + "ta1.WordInfo\"\242\001\n\010WordInfo\022-\n\nstart_time\030" + + "\001 \001(\0132\031.google.protobuf.Duration\022+\n\010end_" + + "time\030\002 \001(\0132\031.google.protobuf.Duration\022\014\n" + + "\004word\030\003 \001(\t\022\022\n\nconfidence\030\004 \001(\002\022\030\n\013speak" + + "er_tag\030\005 \001(\005B\003\340A\0032\202\005\n\006Speech\022\245\001\n\tRecogni" + + "ze\022/.google.cloud.speech.v1p1beta1.Recog" + + "nizeRequest\0320.google.cloud.speech.v1p1be" + + "ta1.RecognizeResponse\"5\202\323\344\223\002 \"\033/v1p1beta" + + "1/speech:recognize:\001*\332A\014config,audio\022\362\001\n" + + "\024LongRunningRecognize\022:.google.cloud.spe" + + "ech.v1p1beta1.LongRunningRecognizeReques" + + "t\032\035.google.longrunning.Operation\"\177\202\323\344\223\002+" + + "\"&/v1p1beta1/speech:longrunningrecognize" + + ":\001*\332A\014config,audio\312A<\n\034LongRunningRecogn" + + "izeResponse\022\034LongRunningRecognizeMetadat" + + "a\022\217\001\n\022StreamingRecognize\0228.google.cloud." + + "speech.v1p1beta1.StreamingRecognizeReque" + + "st\0329.google.cloud.speech.v1p1beta1.Strea" + + "mingRecognizeResponse\"\000(\0010\001\032I\312A\025speech.g" + + "oogleapis.com\322A.https://www.googleapis.c" + + "om/auth/cloud-platformB\200\001\n!com.google.cl" + + "oud.speech.v1p1beta1B\013SpeechProtoP\001ZCgoo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/speech/v1p1beta1;speech\370\001\001\242\002\003GCSb\006proto" + + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -253,7 +260,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.AnnotationsProto.getDescriptor(), com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), com.google.cloud.speech.v1p1beta1.SpeechResourceProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.AnyProto.getDescriptor(), @@ -275,10 +281,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor, new java.lang.String[] { - "Config", "Audio", + "Config", "Audio", "OutputConfig", }); - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor = + internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor, + new java.lang.String[] { + "GcsUri", "OutputType", + }); + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor = + getDescriptor().getMessageTypes().get(3); internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor, @@ -286,7 +300,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StreamingConfig", "AudioContent", "StreamingRequest", }); internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(4); internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor, @@ -294,7 +308,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Config", "SingleUtterance", "InterimResults", }); internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(5); internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor, @@ -320,7 +334,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UseEnhanced", }); internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(6); internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor, @@ -328,7 +342,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableSpeakerDiarization", "MinSpeakerCount", "MaxSpeakerCount", "SpeakerTag", }); internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor, @@ -344,7 +358,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AudioTopic", }); internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_speech_v1p1beta1_SpeechContext_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor, @@ -352,7 +366,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Phrases", "Boost", }); internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor, @@ -360,7 +374,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Content", "Uri", "AudioSource", }); internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor, @@ -368,7 +382,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Results", }); internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor, @@ -376,7 +390,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Results", }); internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor, @@ -384,7 +398,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProgressPercent", "StartTime", "LastUpdateTime", "Uri", }); internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor, @@ -392,7 +406,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Error", "Results", "SpeechEventType", }); internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor, @@ -400,7 +414,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Alternatives", "IsFinal", "Stability", "ResultEndTime", "ChannelTag", "LanguageCode", }); internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor, @@ -408,7 +422,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Alternatives", "ChannelTag", "LanguageCode", }); internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor, @@ -416,7 +430,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Transcript", "Confidence", "Words", }); internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_speech_v1p1beta1_WordInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor, @@ -436,7 +450,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); com.google.cloud.speech.v1p1beta1.SpeechResourceProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.AnyProto.getDescriptor(); diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java index ff7c05220..be8919d45 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java @@ -254,9 +254,9 @@ public int getChannelTag() { * * *
-   * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
-   * language tag of the language in this result. This language code was
-   * detected to have the most likelihood of being spoken in the audio.
+   * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
+   * of the language in this result. This language code was detected to have
+   * the most likelihood of being spoken in the audio.
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -279,9 +279,9 @@ public java.lang.String getLanguageCode() { * * *
-   * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
-   * language tag of the language in this result. This language code was
-   * detected to have the most likelihood of being spoken in the audio.
+   * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
+   * of the language in this result. This language code was detected to have
+   * the most likelihood of being spoken in the audio.
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1196,9 +1196,9 @@ public Builder clearChannelTag() { * * *
-     * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
-     * language tag of the language in this result. This language code was
-     * detected to have the most likelihood of being spoken in the audio.
+     * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
+     * of the language in this result. This language code was detected to have
+     * the most likelihood of being spoken in the audio.
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1220,9 +1220,9 @@ public java.lang.String getLanguageCode() { * * *
-     * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
-     * language tag of the language in this result. This language code was
-     * detected to have the most likelihood of being spoken in the audio.
+     * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
+     * of the language in this result. This language code was detected to have
+     * the most likelihood of being spoken in the audio.
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1244,9 +1244,9 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { * * *
-     * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
-     * language tag of the language in this result. This language code was
-     * detected to have the most likelihood of being spoken in the audio.
+     * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
+     * of the language in this result. This language code was detected to have
+     * the most likelihood of being spoken in the audio.
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1267,9 +1267,9 @@ public Builder setLanguageCode(java.lang.String value) { * * *
-     * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
-     * language tag of the language in this result. This language code was
-     * detected to have the most likelihood of being spoken in the audio.
+     * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
+     * of the language in this result. This language code was detected to have
+     * the most likelihood of being spoken in the audio.
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1286,9 +1286,9 @@ public Builder clearLanguageCode() { * * *
-     * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
-     * language tag of the language in this result. This language code was
-     * detected to have the most likelihood of being spoken in the audio.
+     * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
+     * of the language in this result. This language code was detected to have
+     * the most likelihood of being spoken in the audio.
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java index b27b1cbad..a41fb3df8 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java @@ -116,9 +116,9 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter * * *
-   * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
-   * language tag of the language in this result. This language code was
-   * detected to have the most likelihood of being spoken in the audio.
+   * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
+   * of the language in this result. This language code was detected to have
+   * the most likelihood of being spoken in the audio.
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -130,9 +130,9 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter * * *
-   * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
-   * language tag of the language in this result. This language code was
-   * detected to have the most likelihood of being spoken in the audio.
+   * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
+   * of the language in this result. This language code was detected to have
+   * the most likelihood of being spoken in the audio.
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java index eea12db42..2cc4721ff 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java @@ -375,9 +375,9 @@ public int getChannelTag() { * * *
-   * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
-   * language tag of the language in this result. This language code was
-   * detected to have the most likelihood of being spoken in the audio.
+   * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
+   * of the language in this result. This language code was detected to have
+   * the most likelihood of being spoken in the audio.
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -400,9 +400,9 @@ public java.lang.String getLanguageCode() { * * *
-   * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
-   * language tag of the language in this result. This language code was
-   * detected to have the most likelihood of being spoken in the audio.
+   * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
+   * of the language in this result. This language code was detected to have
+   * the most likelihood of being spoken in the audio.
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1701,9 +1701,9 @@ public Builder clearChannelTag() { * * *
-     * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
-     * language tag of the language in this result. This language code was
-     * detected to have the most likelihood of being spoken in the audio.
+     * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
+     * of the language in this result. This language code was detected to have
+     * the most likelihood of being spoken in the audio.
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1725,9 +1725,9 @@ public java.lang.String getLanguageCode() { * * *
-     * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
-     * language tag of the language in this result. This language code was
-     * detected to have the most likelihood of being spoken in the audio.
+     * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
+     * of the language in this result. This language code was detected to have
+     * the most likelihood of being spoken in the audio.
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1749,9 +1749,9 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { * * *
-     * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
-     * language tag of the language in this result. This language code was
-     * detected to have the most likelihood of being spoken in the audio.
+     * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
+     * of the language in this result. This language code was detected to have
+     * the most likelihood of being spoken in the audio.
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1772,9 +1772,9 @@ public Builder setLanguageCode(java.lang.String value) { * * *
-     * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
-     * language tag of the language in this result. This language code was
-     * detected to have the most likelihood of being spoken in the audio.
+     * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
+     * of the language in this result. This language code was detected to have
+     * the most likelihood of being spoken in the audio.
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1791,9 +1791,9 @@ public Builder clearLanguageCode() { * * *
-     * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
-     * language tag of the language in this result. This language code was
-     * detected to have the most likelihood of being spoken in the audio.
+     * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
+     * of the language in this result. This language code was detected to have
+     * the most likelihood of being spoken in the audio.
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java index bde0e8939..8a2935d37 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java @@ -188,9 +188,9 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter * * *
-   * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
-   * language tag of the language in this result. This language code was
-   * detected to have the most likelihood of being spoken in the audio.
+   * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
+   * of the language in this result. This language code was detected to have
+   * the most likelihood of being spoken in the audio.
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -202,9 +202,9 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter * * *
-   * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
-   * language tag of the language in this result. This language code was
-   * detected to have the most likelihood of being spoken in the audio.
+   * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
+   * of the language in this result. This language code was detected to have
+   * the most likelihood of being spoken in the audio.
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java new file mode 100644 index 000000000..1fc12e9f4 --- /dev/null +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java @@ -0,0 +1,785 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1p1beta1/cloud_speech.proto + +package com.google.cloud.speech.v1p1beta1; + +/** + * + * + *
+ * Specifies an optional destination for the recognition results.
+ * 
+ * + * Protobuf type {@code google.cloud.speech.v1p1beta1.TranscriptOutputConfig} + */ +public final class TranscriptOutputConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.TranscriptOutputConfig) + TranscriptOutputConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use TranscriptOutputConfig.newBuilder() to construct. + private TranscriptOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TranscriptOutputConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TranscriptOutputConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TranscriptOutputConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + outputTypeCase_ = 1; + outputType_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.class, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder.class); + } + + private int outputTypeCase_ = 0; + private java.lang.Object outputType_; + + public enum OutputTypeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GCS_URI(1), + OUTPUTTYPE_NOT_SET(0); + private final int value; + + private OutputTypeCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OutputTypeCase valueOf(int value) { + return forNumber(value); + } + + public static OutputTypeCase forNumber(int value) { + switch (value) { + case 1: + return GCS_URI; + case 0: + return OUTPUTTYPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OutputTypeCase getOutputTypeCase() { + return OutputTypeCase.forNumber(outputTypeCase_); + } + + public static final int GCS_URI_FIELD_NUMBER = 1; + /** + * + * + *
+   * Specifies a Cloud Storage URI for the recognition results. Must be
+   * specified in the format: `gs://bucket_name/object_name`, and the bucket
+   * must already exist.
+   * 
+ * + * string gcs_uri = 1; + * + * @return Whether the gcsUri field is set. + */ + public boolean hasGcsUri() { + return outputTypeCase_ == 1; + } + /** + * + * + *
+   * Specifies a Cloud Storage URI for the recognition results. Must be
+   * specified in the format: `gs://bucket_name/object_name`, and the bucket
+   * must already exist.
+   * 
+ * + * string gcs_uri = 1; + * + * @return The gcsUri. + */ + public java.lang.String getGcsUri() { + java.lang.Object ref = ""; + if (outputTypeCase_ == 1) { + ref = outputType_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputTypeCase_ == 1) { + outputType_ = s; + } + return s; + } + } + /** + * + * + *
+   * Specifies a Cloud Storage URI for the recognition results. Must be
+   * specified in the format: `gs://bucket_name/object_name`, and the bucket
+   * must already exist.
+   * 
+ * + * string gcs_uri = 1; + * + * @return The bytes for gcsUri. + */ + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = ""; + if (outputTypeCase_ == 1) { + ref = outputType_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (outputTypeCase_ == 1) { + outputType_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (outputTypeCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (outputTypeCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, outputType_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig)) { + return super.equals(obj); + } + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig other = + (com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig) obj; + + if (!getOutputTypeCase().equals(other.getOutputTypeCase())) return false; + switch (outputTypeCase_) { + case 1: + if (!getGcsUri().equals(other.getGcsUri())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (outputTypeCase_) { + case 1: + hash = (37 * hash) + GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getGcsUri().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Specifies an optional destination for the recognition results.
+   * 
+ * + * Protobuf type {@code google.cloud.speech.v1p1beta1.TranscriptOutputConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.TranscriptOutputConfig) + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.class, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder.class); + } + + // Construct using com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + outputTypeCase_ = 0; + outputType_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getDefaultInstanceForType() { + return com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig build() { + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig buildPartial() { + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig result = + new com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig(this); + if (outputTypeCase_ == 1) { + result.outputType_ = outputType_; + } + result.outputTypeCase_ = outputTypeCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig) { + return mergeFrom((com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig other) { + if (other == com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance()) + return this; + switch (other.getOutputTypeCase()) { + case GCS_URI: + { + outputTypeCase_ = 1; + outputType_ = other.outputType_; + onChanged(); + break; + } + case OUTPUTTYPE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int outputTypeCase_ = 0; + private java.lang.Object outputType_; + + public OutputTypeCase getOutputTypeCase() { + return OutputTypeCase.forNumber(outputTypeCase_); + } + + public Builder clearOutputType() { + outputTypeCase_ = 0; + outputType_ = null; + onChanged(); + return this; + } + + /** + * + * + *
+     * Specifies a Cloud Storage URI for the recognition results. Must be
+     * specified in the format: `gs://bucket_name/object_name`, and the bucket
+     * must already exist.
+     * 
+ * + * string gcs_uri = 1; + * + * @return Whether the gcsUri field is set. + */ + @java.lang.Override + public boolean hasGcsUri() { + return outputTypeCase_ == 1; + } + /** + * + * + *
+     * Specifies a Cloud Storage URI for the recognition results. Must be
+     * specified in the format: `gs://bucket_name/object_name`, and the bucket
+     * must already exist.
+     * 
+ * + * string gcs_uri = 1; + * + * @return The gcsUri. + */ + @java.lang.Override + public java.lang.String getGcsUri() { + java.lang.Object ref = ""; + if (outputTypeCase_ == 1) { + ref = outputType_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputTypeCase_ == 1) { + outputType_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Specifies a Cloud Storage URI for the recognition results. Must be
+     * specified in the format: `gs://bucket_name/object_name`, and the bucket
+     * must already exist.
+     * 
+ * + * string gcs_uri = 1; + * + * @return The bytes for gcsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = ""; + if (outputTypeCase_ == 1) { + ref = outputType_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (outputTypeCase_ == 1) { + outputType_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Specifies a Cloud Storage URI for the recognition results. Must be
+     * specified in the format: `gs://bucket_name/object_name`, and the bucket
+     * must already exist.
+     * 
+ * + * string gcs_uri = 1; + * + * @param value The gcsUri to set. + * @return This builder for chaining. + */ + public Builder setGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputTypeCase_ = 1; + outputType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies a Cloud Storage URI for the recognition results. Must be
+     * specified in the format: `gs://bucket_name/object_name`, and the bucket
+     * must already exist.
+     * 
+ * + * string gcs_uri = 1; + * + * @return This builder for chaining. + */ + public Builder clearGcsUri() { + if (outputTypeCase_ == 1) { + outputTypeCase_ = 0; + outputType_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Specifies a Cloud Storage URI for the recognition results. Must be
+     * specified in the format: `gs://bucket_name/object_name`, and the bucket
+     * must already exist.
+     * 
+ * + * string gcs_uri = 1; + * + * @param value The bytes for gcsUri to set. + * @return This builder for chaining. + */ + public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputTypeCase_ = 1; + outputType_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.TranscriptOutputConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.TranscriptOutputConfig) + private static final com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig(); + } + + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranscriptOutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TranscriptOutputConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java new file mode 100644 index 000000000..102d1f01e --- /dev/null +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java @@ -0,0 +1,71 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1p1beta1/cloud_speech.proto + +package com.google.cloud.speech.v1p1beta1; + +public interface TranscriptOutputConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.TranscriptOutputConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Specifies a Cloud Storage URI for the recognition results. Must be
+   * specified in the format: `gs://bucket_name/object_name`, and the bucket
+   * must already exist.
+   * 
+ * + * string gcs_uri = 1; + * + * @return Whether the gcsUri field is set. + */ + boolean hasGcsUri(); + /** + * + * + *
+   * Specifies a Cloud Storage URI for the recognition results. Must be
+   * specified in the format: `gs://bucket_name/object_name`, and the bucket
+   * must already exist.
+   * 
+ * + * string gcs_uri = 1; + * + * @return The gcsUri. + */ + java.lang.String getGcsUri(); + /** + * + * + *
+   * Specifies a Cloud Storage URI for the recognition results. Must be
+   * specified in the format: `gs://bucket_name/object_name`, and the bucket
+   * must already exist.
+   * 
+ * + * string gcs_uri = 1; + * + * @return The bytes for gcsUri. + */ + com.google.protobuf.ByteString getGcsUriBytes(); + + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.OutputTypeCase + getOutputTypeCase(); +} diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto b/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto index 3eccfb661..0fcea916b 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto +++ b/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto @@ -19,7 +19,6 @@ package google.cloud.speech.v1p1beta1; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; import "google/cloud/speech/v1p1beta1/resource.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/any.proto"; @@ -37,8 +36,7 @@ option objc_class_prefix = "GCS"; // Service that implements Google Cloud Speech API. service Speech { option (google.api.default_host) = "speech.googleapis.com"; - option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; // Performs synchronous speech recognition: receive results after all audio // has been sent and processed. @@ -56,8 +54,7 @@ service Speech { // a `LongRunningRecognizeResponse` message. // For more information on asynchronous speech recognition, see the // [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize). - rpc LongRunningRecognize(LongRunningRecognizeRequest) - returns (google.longrunning.Operation) { + rpc LongRunningRecognize(LongRunningRecognizeRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1p1beta1/speech:longrunningrecognize" body: "*" @@ -71,8 +68,8 @@ service Speech { // Performs bidirectional streaming speech recognition: receive results while // sending audio. This method is only available via the gRPC API (not REST). - rpc StreamingRecognize(stream StreamingRecognizeRequest) - returns (stream StreamingRecognizeResponse) {} + rpc StreamingRecognize(stream StreamingRecognizeRequest) returns (stream StreamingRecognizeResponse) { + } } // The top-level message sent by the client for the `Recognize` method. @@ -94,6 +91,19 @@ message LongRunningRecognizeRequest { // Required. The audio data to be recognized. RecognitionAudio audio = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Specifies an optional destination for the recognition results. + TranscriptOutputConfig output_config = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Specifies an optional destination for the recognition results. +message TranscriptOutputConfig { + oneof output_type { + // Specifies a Cloud Storage URI for the recognition results. Must be + // specified in the format: `gs://bucket_name/object_name`, and the bucket + // must already exist. + string gcs_uri = 1; + } } // The top-level message sent by the client for the `StreamingRecognize` method. @@ -171,7 +181,7 @@ message RecognitionConfig { // a lossless encoding (`FLAC` or `LINEAR16`). The accuracy of the speech // recognition can be reduced if lossy codecs are used to capture or transmit // audio, particularly if background noise is present. Lossy codecs include - // `MULAW`, `AMR`, `AMR_WB`, `OGG_OPUS`, `SPEEX_WITH_HEADER_BYTE`, and `MP3`. + // `MULAW`, `AMR`, `AMR_WB`, `OGG_OPUS`, `SPEEX_WITH_HEADER_BYTE`, `MP3`. // // The `FLAC` and `WAV` audio file formats include a header that describes the // included audio content. You can request recognition for `WAV` files that @@ -182,8 +192,7 @@ message RecognitionConfig { // an `AudioEncoding` when you send send `FLAC` or `WAV` audio, the // encoding configuration must match the encoding described in the audio // header; otherwise the request returns an - // [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] error - // code. + // [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] error code. enum AudioEncoding { // Not specified. ENCODING_UNSPECIFIED = 0; @@ -237,8 +246,7 @@ message RecognitionConfig { // Encoding of audio data sent in all `RecognitionAudio` messages. // This field is optional for `FLAC` and `WAV` audio files and required - // for all other audio formats. For details, see - // [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding]. + // for all other audio formats. For details, see [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding]. AudioEncoding encoding = 1; // Sample rate in Hertz of the audio data sent in all @@ -247,8 +255,7 @@ message RecognitionConfig { // source to 16000 Hz. If that's not possible, use the native sample rate of // the audio source (instead of re-sampling). // This field is optional for FLAC and WAV audio files, but is - // required for all other audio formats. For details, see - // [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding]. + // required for all other audio formats. For details, see [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding]. int32 sample_rate_hertz = 2; // The number of channels in the input audio data. @@ -424,8 +431,10 @@ message SpeakerDiarizationConfig { int32 max_speaker_count = 3; // Output only. Unused. - int32 speaker_tag = 5 - [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; + int32 speaker_tag = 5 [ + deprecated = true, + (google.api.field_behavior) = OUTPUT_ONLY + ]; } // Description of audio data to be recognized. @@ -589,8 +598,8 @@ message SpeechContext { // Contains audio data in the encoding specified in the `RecognitionConfig`. // Either `content` or `uri` must be supplied. Supplying both or neither -// returns [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. -// See [content limits](https://cloud.google.com/speech-to-text/quotas#content). +// returns [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. See +// [content limits](https://cloud.google.com/speech-to-text/quotas#content). message RecognitionAudio { // The audio source, which is either inline content or a Google Cloud // Storage uri. @@ -605,9 +614,8 @@ message RecognitionAudio { // Currently, only Google Cloud Storage URIs are // supported, which must be specified in the following format: // `gs://bucket_name/object_name` (other URI formats return - // [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). - // For more information, see [Request - // URIs](https://cloud.google.com/storage/docs/reference-uris). + // [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see + // [Request URIs](https://cloud.google.com/storage/docs/reference-uris). string uri = 2; } } @@ -646,8 +654,8 @@ message LongRunningRecognizeMetadata { // Time of the most recent processing update. google.protobuf.Timestamp last_update_time = 3; - // Output only. The URI of the audio file being transcribed. Empty if the - // audio was sent as byte content. + // Output only. The URI of the audio file being transcribed. Empty if the audio was sent + // as byte content. string uri = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } @@ -762,9 +770,9 @@ message StreamingRecognitionResult { // For audio_channel_count = N, its output values can range from '1' to 'N'. int32 channel_tag = 5; - // Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) - // language tag of the language in this result. This language code was - // detected to have the most likelihood of being spoken in the audio. + // Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag + // of the language in this result. This language code was detected to have + // the most likelihood of being spoken in the audio. string language_code = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; } @@ -781,9 +789,9 @@ message SpeechRecognitionResult { // For audio_channel_count = N, its output values can range from '1' to 'N'. int32 channel_tag = 2; - // Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) - // language tag of the language in this result. This language code was - // detected to have the most likelihood of being spoken in the audio. + // Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag + // of the language in this result. This language code was detected to have + // the most likelihood of being spoken in the audio. string language_code = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto b/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto index 4e4377c9c..16789739d 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto +++ b/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto @@ -69,6 +69,7 @@ service Adaptation { patch: "/v1p1beta1/{phrase_set.name=projects/*/locations/*/phraseSets/*}" body: "phrase_set" }; + option (google.api.method_signature) = "phrase_set,update_mask"; } // Delete a phrase set. @@ -110,6 +111,7 @@ service Adaptation { patch: "/v1p1beta1/{custom_class.name=projects/*/locations/*/customClasses/*}" body: "custom_class" }; + option (google.api.method_signature) = "custom_class,update_mask"; } // Delete a custom class. diff --git a/synth.metadata b/synth.metadata index bae36aa33..8f7af0098 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,23 +4,23 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-speech.git", - "sha": "75eeee27422175692a6fdac40f6fd3932da8b640" + "sha": "98dae49de8d86f6f96fc2707e77010886f3e1881" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "0e915217fb5261c1e57bfaf0e16ee5c7feaaba89", - "internalRef": "361377784" + "sha": "b6ebac16c3aecb798d4f25443d96df2f42a965ca", + "internalRef": "362294447" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "0e915217fb5261c1e57bfaf0e16ee5c7feaaba89", - "internalRef": "361377784" + "sha": "b6ebac16c3aecb798d4f25443d96df2f42a965ca", + "internalRef": "362294447" } }, { @@ -254,6 +254,8 @@ "proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java", "proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java", "proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java", + "proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java", + "proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java", "proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java", "proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java", "proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java",