From e67e0f84933cfee3bf4ae74b8784ae2982fcb2a9 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 2 Mar 2021 10:26:11 -0800 Subject: [PATCH] feat(generator): update protoc to v3.15.3 (#235) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/03645e34-b7a2-470a-9ea5-23f9d034150c/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 359781040 Source-Link: https://github.com/googleapis/googleapis/commit/f6dd7e47620566925a4b3f1ce029e74e1b2f2516 --- .../clirr-ignored-differences.xml | 9 ++++ .../StreamingTranslateSpeechRequest.java | 43 +++++++++++++++++++ ...eamingTranslateSpeechRequestOrBuilder.java | 19 ++++++++ synth.metadata | 6 +-- 4 files changed, 74 insertions(+), 3 deletions(-) create mode 100644 proto-google-cloud-mediatranslation-v1beta1/clirr-ignored-differences.xml diff --git a/proto-google-cloud-mediatranslation-v1beta1/clirr-ignored-differences.xml b/proto-google-cloud-mediatranslation-v1beta1/clirr-ignored-differences.xml new file mode 100644 index 00000000..a7ff9fa6 --- /dev/null +++ b/proto-google-cloud-mediatranslation-v1beta1/clirr-ignored-differences.xml @@ -0,0 +1,9 @@ + + + + + 7012 + com/google/cloud/mediatranslation/v1beta1/*OrBuilder + * has*(*) + + \ No newline at end of file diff --git a/proto-google-cloud-mediatranslation-v1beta1/src/main/java/com/google/cloud/mediatranslation/v1beta1/StreamingTranslateSpeechRequest.java b/proto-google-cloud-mediatranslation-v1beta1/src/main/java/com/google/cloud/mediatranslation/v1beta1/StreamingTranslateSpeechRequest.java index 0e62aab0..de8ae1d0 100644 --- a/proto-google-cloud-mediatranslation-v1beta1/src/main/java/com/google/cloud/mediatranslation/v1beta1/StreamingTranslateSpeechRequest.java +++ b/proto-google-cloud-mediatranslation-v1beta1/src/main/java/com/google/cloud/mediatranslation/v1beta1/StreamingTranslateSpeechRequest.java @@ -255,6 +255,28 @@ public boolean hasStreamingConfig() { } public static final int AUDIO_CONTENT_FIELD_NUMBER = 2; + /** + * + * + *
+   * The audio data to be translated. Sequential chunks of audio data are sent
+   * in sequential `StreamingTranslateSpeechRequest` messages. The first
+   * `StreamingTranslateSpeechRequest` message must not contain
+   * `audio_content` data and all subsequent `StreamingTranslateSpeechRequest`
+   * messages must contain `audio_content` data. The audio bytes must be
+   * encoded as specified in `StreamingTranslateSpeechConfig`. Note: as with
+   * all bytes fields, protobuffers use a pure binary representation (not
+   * base64).
+   * 
+ * + * bytes audio_content = 2; + * + * @return Whether the audioContent field is set. + */ + @java.lang.Override + public boolean hasAudioContent() { + return streamingRequestCase_ == 2; + } /** * * @@ -951,6 +973,27 @@ public Builder clearStreamingConfig() { return streamingConfigBuilder_; } + /** + * + * + *
+     * The audio data to be translated. Sequential chunks of audio data are sent
+     * in sequential `StreamingTranslateSpeechRequest` messages. The first
+     * `StreamingTranslateSpeechRequest` message must not contain
+     * `audio_content` data and all subsequent `StreamingTranslateSpeechRequest`
+     * messages must contain `audio_content` data. The audio bytes must be
+     * encoded as specified in `StreamingTranslateSpeechConfig`. Note: as with
+     * all bytes fields, protobuffers use a pure binary representation (not
+     * base64).
+     * 
+ * + * bytes audio_content = 2; + * + * @return Whether the audioContent field is set. + */ + public boolean hasAudioContent() { + return streamingRequestCase_ == 2; + } /** * * diff --git a/proto-google-cloud-mediatranslation-v1beta1/src/main/java/com/google/cloud/mediatranslation/v1beta1/StreamingTranslateSpeechRequestOrBuilder.java b/proto-google-cloud-mediatranslation-v1beta1/src/main/java/com/google/cloud/mediatranslation/v1beta1/StreamingTranslateSpeechRequestOrBuilder.java index cf832c06..ca784886 100644 --- a/proto-google-cloud-mediatranslation-v1beta1/src/main/java/com/google/cloud/mediatranslation/v1beta1/StreamingTranslateSpeechRequestOrBuilder.java +++ b/proto-google-cloud-mediatranslation-v1beta1/src/main/java/com/google/cloud/mediatranslation/v1beta1/StreamingTranslateSpeechRequestOrBuilder.java @@ -71,6 +71,25 @@ public interface StreamingTranslateSpeechRequestOrBuilder com.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechConfigOrBuilder getStreamingConfigOrBuilder(); + /** + * + * + *
+   * The audio data to be translated. Sequential chunks of audio data are sent
+   * in sequential `StreamingTranslateSpeechRequest` messages. The first
+   * `StreamingTranslateSpeechRequest` message must not contain
+   * `audio_content` data and all subsequent `StreamingTranslateSpeechRequest`
+   * messages must contain `audio_content` data. The audio bytes must be
+   * encoded as specified in `StreamingTranslateSpeechConfig`. Note: as with
+   * all bytes fields, protobuffers use a pure binary representation (not
+   * base64).
+   * 
+ * + * bytes audio_content = 2; + * + * @return Whether the audioContent field is set. + */ + boolean hasAudioContent(); /** * * diff --git a/synth.metadata b/synth.metadata index 7e2249d8..f864d0ab 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-mediatranslation.git", - "sha": "d006dd255388bd945e5be3b8ba7f3f1c6f977213" + "sha": "209abebf925e0bf803a5b10a7cb35a07c8ecef12" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "af8f71dae961ee036a0ac52a1965270149a6b2c9", - "internalRef": "358516065" + "sha": "f6dd7e47620566925a4b3f1ce029e74e1b2f2516", + "internalRef": "359781040" } }, {