Skip to content
This repository has been archived by the owner on Oct 14, 2023. It is now read-only.

Commit

Permalink
chore(ruby): Re-enable bigquery-storage-v1 generation, which also req…
Browse files Browse the repository at this point in the history
…uired updating protobuf from 3.15.3 to 3.18.1 for codegen (#831)

- [x] Regenerate this pull request now.

PiperOrigin-RevId: 403132955

Source-Link: googleapis/googleapis@d2977af

Source-Link: googleapis/googleapis-gen@99bb13c
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTliYjEzYzgxM2MwZTljMjY4MmQwM2E4YjNjM2JjYjM4MmE5MDljOSJ9
  • Loading branch information
gcf-owl-bot[bot] committed Oct 19, 2021
1 parent 9cb67d9 commit 5ea9747
Show file tree
Hide file tree
Showing 61 changed files with 222 additions and 222 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -57,13 +57,13 @@ implementation 'com.google.cloud:google-cloud-translate'
If you are using Gradle without BOM, add this to your dependencies

```Groovy
implementation 'com.google.cloud:google-cloud-translate:2.1.6'
implementation 'com.google.cloud:google-cloud-translate:2.1.7'
```

If you are using SBT, add this to your dependencies

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-translate" % "2.1.6"
libraryDependencies += "com.google.cloud" % "google-cloud-translate" % "2.1.7"
```

## Authentication
Expand Down
Expand Up @@ -174,7 +174,7 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
unknownFields.writeTo(output);
Expand All @@ -186,7 +186,7 @@ public int getSerializedSize() {
if (size != -1) return size;

size = 0;
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
size += unknownFields.getSerializedSize();
Expand Down
Expand Up @@ -311,16 +311,16 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!getFilterBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_);
}
if (pageSize_ != 0) {
output.writeInt32(3, pageSize_);
}
if (!getPageTokenBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_);
}
unknownFields.writeTo(output);
Expand All @@ -332,16 +332,16 @@ public int getSerializedSize() {
if (size != -1) return size;

size = 0;
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (!getFilterBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_);
}
if (pageSize_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_);
}
if (!getPageTokenBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_);
}
size += unknownFields.getSerializedSize();
Expand Down
Expand Up @@ -262,7 +262,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < locations_.size(); i++) {
output.writeMessage(1, locations_.get(i));
}
if (!getNextPageTokenBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
}
unknownFields.writeTo(output);
Expand All @@ -277,7 +277,7 @@ public int getSerializedSize() {
for (int i = 0; i < locations_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, locations_.get(i));
}
if (!getNextPageTokenBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
}
size += unknownFields.getSerializedSize();
Expand Down
Expand Up @@ -482,18 +482,18 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2);
if (metadata_ != null) {
output.writeMessage(3, getMetadata());
}
if (!getLocationIdBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locationId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, locationId_);
}
if (!getDisplayNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_);
}
unknownFields.writeTo(output);
Expand All @@ -505,7 +505,7 @@ public int getSerializedSize() {
if (size != -1) return size;

size = 0;
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
Expand All @@ -521,10 +521,10 @@ public int getSerializedSize() {
if (metadata_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMetadata());
}
if (!getLocationIdBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locationId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, locationId_);
}
if (!getDisplayNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_);
}
size += unknownFields.getSerializedSize();
Expand Down
Expand Up @@ -980,10 +980,10 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getParentBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
}
if (!getSourceLanguageCodeBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguageCode_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sourceLanguageCode_);
}
for (int i = 0; i < targetLanguageCodes_.size(); i++) {
Expand Down Expand Up @@ -1013,10 +1013,10 @@ public int getSerializedSize() {
if (size != -1) return size;

size = 0;
if (!getParentBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
}
if (!getSourceLanguageCodeBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguageCode_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sourceLanguageCode_);
}
{
Expand Down
Expand Up @@ -951,10 +951,10 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getParentBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
}
if (!getSourceLanguageCodeBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguageCode_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sourceLanguageCode_);
}
for (int i = 0; i < targetLanguageCodes_.size(); i++) {
Expand All @@ -981,10 +981,10 @@ public int getSerializedSize() {
if (size != -1) return size;

size = 0;
if (!getParentBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
}
if (!getSourceLanguageCodeBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguageCode_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sourceLanguageCode_);
}
{
Expand Down
Expand Up @@ -510,7 +510,7 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (state_
Expand All @@ -530,7 +530,7 @@ public int getSerializedSize() {
if (size != -1) return size;

size = 0;
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (state_
Expand Down
Expand Up @@ -248,7 +248,7 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getParentBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
}
if (glossary_ != null) {
Expand All @@ -263,7 +263,7 @@ public int getSerializedSize() {
if (size != -1) return size;

size = 0;
if (!getParentBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
}
if (glossary_ != null) {
Expand Down
Expand Up @@ -510,7 +510,7 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (state_
Expand All @@ -530,7 +530,7 @@ public int getSerializedSize() {
if (size != -1) return size;

size = 0;
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (state_
Expand Down
Expand Up @@ -178,7 +178,7 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
unknownFields.writeTo(output);
Expand All @@ -190,7 +190,7 @@ public int getSerializedSize() {
if (size != -1) return size;

size = 0;
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
size += unknownFields.getSerializedSize();
Expand Down
Expand Up @@ -304,7 +304,7 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (submitTime_ != null) {
Expand All @@ -322,7 +322,7 @@ public int getSerializedSize() {
if (size != -1) return size;

size = 0;
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (submitTime_ != null) {
Expand Down
Expand Up @@ -589,13 +589,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (sourceCase_ == 1) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, source_);
}
if (!getMimeTypeBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, mimeType_);
}
if (!getModelBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, model_);
}
if (!getParentBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, parent_);
}
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
Expand All @@ -612,13 +612,13 @@ public int getSerializedSize() {
if (sourceCase_ == 1) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, source_);
}
if (!getMimeTypeBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mimeType_);
}
if (!getModelBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, model_);
}
if (!getParentBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parent_);
}
for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
Expand Down
Expand Up @@ -199,7 +199,7 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getLanguageCodeBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCode_);
}
if (confidence_ != 0F) {
Expand All @@ -214,7 +214,7 @@ public int getSerializedSize() {
if (size != -1) return size;

size = 0;
if (!getLanguageCodeBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, languageCode_);
}
if (confidence_ != 0F) {
Expand Down
Expand Up @@ -354,7 +354,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (sourceCase_ == 2) {
output.writeMessage(2, (com.google.cloud.translate.v3.GcsSource) source_);
}
if (!getMimeTypeBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, mimeType_);
}
unknownFields.writeTo(output);
Expand All @@ -376,7 +376,7 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
2, (com.google.cloud.translate.v3.GcsSource) source_);
}
if (!getMimeTypeBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, mimeType_);
}
size += unknownFields.getSerializedSize();
Expand Down
Expand Up @@ -410,7 +410,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (destinationCase_ == 1) {
output.writeMessage(1, (com.google.cloud.translate.v3.GcsDestination) destination_);
}
if (!getMimeTypeBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, mimeType_);
}
unknownFields.writeTo(output);
Expand All @@ -427,7 +427,7 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
1, (com.google.cloud.translate.v3.GcsDestination) destination_);
}
if (!getMimeTypeBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mimeType_);
}
size += unknownFields.getSerializedSize();
Expand Down
Expand Up @@ -309,10 +309,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < byteStreamOutputs_.size(); i++) {
output.writeBytes(1, byteStreamOutputs_.get(i));
}
if (!getMimeTypeBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, mimeType_);
}
if (!getDetectedLanguageCodeBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detectedLanguageCode_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, detectedLanguageCode_);
}
unknownFields.writeTo(output);
Expand All @@ -333,10 +333,10 @@ public int getSerializedSize() {
size += dataSize;
size += 1 * getByteStreamOutputsList().size();
}
if (!getMimeTypeBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, mimeType_);
}
if (!getDetectedLanguageCodeBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detectedLanguageCode_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, detectedLanguageCode_);
}
size += unknownFields.getSerializedSize();
Expand Down

0 comments on commit 5ea9747

Please sign in to comment.