From ea2adbe2f91f77783c473ecdabff6cdba3fb0863 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 19 Oct 2021 18:52:15 +0000 Subject: [PATCH] chore(ruby): Re-enable bigquery-storage-v1 generation, which also required updating protobuf from 3.15.3 to 3.18.1 for codegen (#553) - [x] Regenerate this pull request now. PiperOrigin-RevId: 403132955 Source-Link: https://github.com/googleapis/googleapis/commit/d2977af9e9f1fc0c9dc8368352daa032471f3c63 Source-Link: https://github.com/googleapis/googleapis-gen/commit/99bb13c813c0e9c2682d03a8b3c3bcb382a909c9 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTliYjEzYzgxM2MwZTljMjY4MmQwM2E4YjNjM2JjYjM4MmE5MDljOSJ9 --- .../v1beta1/StreamingTranslateSpeechResult.java | 4 ++-- .../v1beta1/TranslateSpeechConfig.java | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/proto-google-cloud-mediatranslation-v1beta1/src/main/java/com/google/cloud/mediatranslation/v1beta1/StreamingTranslateSpeechResult.java b/proto-google-cloud-mediatranslation-v1beta1/src/main/java/com/google/cloud/mediatranslation/v1beta1/StreamingTranslateSpeechResult.java index 8f389d28..ed605bf8 100644 --- a/proto-google-cloud-mediatranslation-v1beta1/src/main/java/com/google/cloud/mediatranslation/v1beta1/StreamingTranslateSpeechResult.java +++ b/proto-google-cloud-mediatranslation-v1beta1/src/main/java/com/google/cloud/mediatranslation/v1beta1/StreamingTranslateSpeechResult.java @@ -366,7 +366,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getTranslationBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(translation_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, translation_); } if (isFinal_ != false) { @@ -381,7 +381,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getTranslationBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(translation_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, translation_); } if (isFinal_ != false) { diff --git a/proto-google-cloud-mediatranslation-v1beta1/src/main/java/com/google/cloud/mediatranslation/v1beta1/TranslateSpeechConfig.java b/proto-google-cloud-mediatranslation-v1beta1/src/main/java/com/google/cloud/mediatranslation/v1beta1/TranslateSpeechConfig.java index 1e99cd77..7866ef7b 100644 --- a/proto-google-cloud-mediatranslation-v1beta1/src/main/java/com/google/cloud/mediatranslation/v1beta1/TranslateSpeechConfig.java +++ b/proto-google-cloud-mediatranslation-v1beta1/src/main/java/com/google/cloud/mediatranslation/v1beta1/TranslateSpeechConfig.java @@ -418,19 +418,19 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getAudioEncodingBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(audioEncoding_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, audioEncoding_); } - if (!getSourceLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sourceLanguageCode_); } - if (!getTargetLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetLanguageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, targetLanguageCode_); } if (sampleRateHertz_ != 0) { output.writeInt32(4, sampleRateHertz_); } - if (!getModelBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, model_); } unknownFields.writeTo(output); @@ -442,19 +442,19 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getAudioEncodingBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(audioEncoding_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, audioEncoding_); } - if (!getSourceLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sourceLanguageCode_); } - if (!getTargetLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetLanguageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, targetLanguageCode_); } if (sampleRateHertz_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, sampleRateHertz_); } - if (!getModelBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, model_); } size += unknownFields.getSerializedSize();