From e624289f70c30a3f1a8e3e921dcc7d0a51ca83c6 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 1 Mar 2021 09:30:22 -0800 Subject: [PATCH] feat(generator): update protoc to v3.15.3 (#453) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/c70c2328-69c5-4e5d-a0a1-376c1f8b88da/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 359781040 Source-Link: https://github.com/googleapis/googleapis/commit/f6dd7e47620566925a4b3f1ce029e74e1b2f2516 --- .../cloud/speech/v1/RecognitionAudio.java | 74 ++++++++++++++++++ .../speech/v1/RecognitionAudioOrBuilder.java | 32 ++++++++ .../speech/v1/StreamingRecognizeRequest.java | 43 +++++++++++ .../StreamingRecognizeRequestOrBuilder.java | 19 +++++ .../speech/v1p1beta1/RecognitionAudio.java | 76 +++++++++++++++++++ .../v1p1beta1/RecognitionAudioOrBuilder.java | 33 ++++++++ .../v1p1beta1/StreamingRecognizeRequest.java | 43 +++++++++++ .../StreamingRecognizeRequestOrBuilder.java | 19 +++++ synth.metadata | 10 +-- 9 files changed, 344 insertions(+), 5 deletions(-) diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java index df04b6b76..b3ba56d14 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java @@ -166,6 +166,23 @@ public AudioSourceCase getAudioSourceCase() { } public static final int CONTENT_FIELD_NUMBER = 1; + /** + * + * + *
+   * The audio data bytes encoded as specified in
+   * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
+   * pure binary representation, whereas JSON representations use base64.
+   * 
+ * + * bytes content = 1; + * + * @return Whether the content field is set. + */ + @java.lang.Override + public boolean hasContent() { + return audioSourceCase_ == 1; + } /** * * @@ -188,6 +205,26 @@ public com.google.protobuf.ByteString getContent() { } public static final int URI_FIELD_NUMBER = 2; + /** + * + * + *
+   * URI that points to a file that contains audio data bytes as specified in
+   * `RecognitionConfig`. The file must not be compressed (for example, gzip).
+   * 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).
+   * 
+ * + * string uri = 2; + * + * @return Whether the uri field is set. + */ + public boolean hasUri() { + return audioSourceCase_ == 2; + } /** * * @@ -636,6 +673,22 @@ public Builder clearAudioSource() { return this; } + /** + * + * + *
+     * The audio data bytes encoded as specified in
+     * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
+     * pure binary representation, whereas JSON representations use base64.
+     * 
+ * + * bytes content = 1; + * + * @return Whether the content field is set. + */ + public boolean hasContent() { + return audioSourceCase_ == 1; + } /** * * @@ -700,6 +753,27 @@ public Builder clearContent() { return this; } + /** + * + * + *
+     * URI that points to a file that contains audio data bytes as specified in
+     * `RecognitionConfig`. The file must not be compressed (for example, gzip).
+     * 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).
+     * 
+ * + * string uri = 2; + * + * @return Whether the uri field is set. + */ + @java.lang.Override + public boolean hasUri() { + return audioSourceCase_ == 2; + } /** * * diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java index d5a8cca14..b8330aa93 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java @@ -23,6 +23,20 @@ public interface RecognitionAudioOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.RecognitionAudio) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * The audio data bytes encoded as specified in
+   * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
+   * pure binary representation, whereas JSON representations use base64.
+   * 
+ * + * bytes content = 1; + * + * @return Whether the content field is set. + */ + boolean hasContent(); /** * * @@ -38,6 +52,24 @@ public interface RecognitionAudioOrBuilder */ com.google.protobuf.ByteString getContent(); + /** + * + * + *
+   * URI that points to a file that contains audio data bytes as specified in
+   * `RecognitionConfig`. The file must not be compressed (for example, gzip).
+   * 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).
+   * 
+ * + * string uri = 2; + * + * @return Whether the uri field is set. + */ + boolean hasUri(); /** * * diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java index 9d456331e..da898b89e 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java @@ -238,6 +238,28 @@ public com.google.cloud.speech.v1.StreamingRecognitionConfig getStreamingConfig( } public static final int AUDIO_CONTENT_FIELD_NUMBER = 2; + /** + * + * + *
+   * The audio data to be recognized. Sequential chunks of audio data are sent
+   * in sequential `StreamingRecognizeRequest` messages. The first
+   * `StreamingRecognizeRequest` message must not contain `audio_content` data
+   * and all subsequent `StreamingRecognizeRequest` messages must contain
+   * `audio_content` data. The audio bytes must be encoded as specified in
+   * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
+   * pure binary representation (not base64). See
+   * [content limits](https://cloud.google.com/speech-to-text/quotas#content).
+   * 
+ * + * bytes audio_content = 2; + * + * @return Whether the audioContent field is set. + */ + @java.lang.Override + public boolean hasAudioContent() { + return streamingRequestCase_ == 2; + } /** * * @@ -885,6 +907,27 @@ public Builder clearStreamingConfig() { return streamingConfigBuilder_; } + /** + * + * + *
+     * The audio data to be recognized. Sequential chunks of audio data are sent
+     * in sequential `StreamingRecognizeRequest` messages. The first
+     * `StreamingRecognizeRequest` message must not contain `audio_content` data
+     * and all subsequent `StreamingRecognizeRequest` messages must contain
+     * `audio_content` data. The audio bytes must be encoded as specified in
+     * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
+     * pure binary representation (not base64). See
+     * [content limits](https://cloud.google.com/speech-to-text/quotas#content).
+     * 
+ * + * bytes audio_content = 2; + * + * @return Whether the audioContent field is set. + */ + public boolean hasAudioContent() { + return streamingRequestCase_ == 2; + } /** * * diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java index ca902250e..13fc461c9 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java @@ -64,6 +64,25 @@ public interface StreamingRecognizeRequestOrBuilder */ com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder getStreamingConfigOrBuilder(); + /** + * + * + *
+   * The audio data to be recognized. Sequential chunks of audio data are sent
+   * in sequential `StreamingRecognizeRequest` messages. The first
+   * `StreamingRecognizeRequest` message must not contain `audio_content` data
+   * and all subsequent `StreamingRecognizeRequest` messages must contain
+   * `audio_content` data. The audio bytes must be encoded as specified in
+   * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
+   * pure binary representation (not base64). See
+   * [content limits](https://cloud.google.com/speech-to-text/quotas#content).
+   * 
+ * + * bytes audio_content = 2; + * + * @return Whether the audioContent field is set. + */ + boolean hasAudioContent(); /** * * 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 174dc1636..a1945017a 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 @@ -166,6 +166,23 @@ public AudioSourceCase getAudioSourceCase() { } public static final int CONTENT_FIELD_NUMBER = 1; + /** + * + * + *
+   * The audio data bytes encoded as specified in
+   * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
+   * pure binary representation, whereas JSON representations use base64.
+   * 
+ * + * bytes content = 1; + * + * @return Whether the content field is set. + */ + @java.lang.Override + public boolean hasContent() { + return audioSourceCase_ == 1; + } /** * * @@ -188,6 +205,27 @@ public com.google.protobuf.ByteString getContent() { } public static final int URI_FIELD_NUMBER = 2; + /** + * + * + *
+   * URI that points to a file that contains audio data bytes as specified in
+   * `RecognitionConfig`. The file must not be compressed (for example, gzip).
+   * 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).
+   * 
+ * + * string uri = 2; + * + * @return Whether the uri field is set. + */ + public boolean hasUri() { + return audioSourceCase_ == 2; + } /** * * @@ -640,6 +678,22 @@ public Builder clearAudioSource() { return this; } + /** + * + * + *
+     * The audio data bytes encoded as specified in
+     * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
+     * pure binary representation, whereas JSON representations use base64.
+     * 
+ * + * bytes content = 1; + * + * @return Whether the content field is set. + */ + public boolean hasContent() { + return audioSourceCase_ == 1; + } /** * * @@ -704,6 +758,28 @@ public Builder clearContent() { return this; } + /** + * + * + *
+     * URI that points to a file that contains audio data bytes as specified in
+     * `RecognitionConfig`. The file must not be compressed (for example, gzip).
+     * 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).
+     * 
+ * + * string uri = 2; + * + * @return Whether the uri field is set. + */ + @java.lang.Override + public boolean hasUri() { + return audioSourceCase_ == 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 417e5bbe2..37868a416 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 @@ -23,6 +23,20 @@ public interface RecognitionAudioOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.RecognitionAudio) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * The audio data bytes encoded as specified in
+   * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
+   * pure binary representation, whereas JSON representations use base64.
+   * 
+ * + * bytes content = 1; + * + * @return Whether the content field is set. + */ + boolean hasContent(); /** * * @@ -38,6 +52,25 @@ public interface RecognitionAudioOrBuilder */ com.google.protobuf.ByteString getContent(); + /** + * + * + *
+   * URI that points to a file that contains audio data bytes as specified in
+   * `RecognitionConfig`. The file must not be compressed (for example, gzip).
+   * 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).
+   * 
+ * + * string uri = 2; + * + * @return Whether the uri field is set. + */ + boolean hasUri(); /** * * diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java index dda6bbb18..e9f014285 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java @@ -241,6 +241,28 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig getStreaming } public static final int AUDIO_CONTENT_FIELD_NUMBER = 2; + /** + * + * + *
+   * The audio data to be recognized. Sequential chunks of audio data are sent
+   * in sequential `StreamingRecognizeRequest` messages. The first
+   * `StreamingRecognizeRequest` message must not contain `audio_content` data
+   * and all subsequent `StreamingRecognizeRequest` messages must contain
+   * `audio_content` data. The audio bytes must be encoded as specified in
+   * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
+   * pure binary representation (not base64). See
+   * [content limits](https://cloud.google.com/speech-to-text/quotas#content).
+   * 
+ * + * bytes audio_content = 2; + * + * @return Whether the audioContent field is set. + */ + @java.lang.Override + public boolean hasAudioContent() { + return streamingRequestCase_ == 2; + } /** * * @@ -892,6 +914,27 @@ public Builder clearStreamingConfig() { return streamingConfigBuilder_; } + /** + * + * + *
+     * The audio data to be recognized. Sequential chunks of audio data are sent
+     * in sequential `StreamingRecognizeRequest` messages. The first
+     * `StreamingRecognizeRequest` message must not contain `audio_content` data
+     * and all subsequent `StreamingRecognizeRequest` messages must contain
+     * `audio_content` data. The audio bytes must be encoded as specified in
+     * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
+     * pure binary representation (not base64). See
+     * [content limits](https://cloud.google.com/speech-to-text/quotas#content).
+     * 
+ * + * bytes audio_content = 2; + * + * @return Whether the audioContent field is set. + */ + public boolean hasAudioContent() { + return streamingRequestCase_ == 2; + } /** * * diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java index 280ddf8ec..f6b61734f 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java @@ -65,6 +65,25 @@ public interface StreamingRecognizeRequestOrBuilder com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder getStreamingConfigOrBuilder(); + /** + * + * + *
+   * The audio data to be recognized. Sequential chunks of audio data are sent
+   * in sequential `StreamingRecognizeRequest` messages. The first
+   * `StreamingRecognizeRequest` message must not contain `audio_content` data
+   * and all subsequent `StreamingRecognizeRequest` messages must contain
+   * `audio_content` data. The audio bytes must be encoded as specified in
+   * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
+   * pure binary representation (not base64). See
+   * [content limits](https://cloud.google.com/speech-to-text/quotas#content).
+   * 
+ * + * bytes audio_content = 2; + * + * @return Whether the audioContent field is set. + */ + boolean hasAudioContent(); /** * * diff --git a/synth.metadata b/synth.metadata index d3f990276..5893e61cf 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,23 +4,23 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-speech.git", - "sha": "cd50bdf91cdff1b923070ac7483e425f39f62f8d" + "sha": "546daab4cd03aec0df2cd971b8a9b24e22f49cb7" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "af8f71dae961ee036a0ac52a1965270149a6b2c9", - "internalRef": "358516065" + "sha": "f6dd7e47620566925a4b3f1ce029e74e1b2f2516", + "internalRef": "359781040" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "af8f71dae961ee036a0ac52a1965270149a6b2c9", - "internalRef": "358516065" + "sha": "f6dd7e47620566925a4b3f1ce029e74e1b2f2516", + "internalRef": "359781040" } }, {