Skip to content
This repository was archived by the owner on Dec 15, 2023. It is now read-only.

Commit d717da9

Browse files
chore(bazel): update version of Protobuf to v3.20.1 (#875)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 444328399 Source-Link: googleapis/googleapis@c7ca416 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d61705453a62b3ecda78aa30c192840ebc5a8a90 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDYxNzA1NDUzYTYyYjNlY2RhNzhhYTMwYzE5Mjg0MGViYzVhOGE5MCJ9
1 parent 52adffa commit d717da9

File tree

60 files changed

+202
-37
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+202
-37
lines changed

google-cloud-speech/src/test/resources/META-INF/native-image/com.google.cloud/speech/resource-config.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ private CustomClass(
113113
}
114114
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
115115
throw e.setUnfinishedMessage(this);
116+
} catch (com.google.protobuf.UninitializedMessageException e) {
117+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
116118
} catch (java.io.IOException e) {
117119
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
118120
} finally {
@@ -239,6 +241,8 @@ private ClassItem(
239241
}
240242
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
241243
throw e.setUnfinishedMessage(this);
244+
} catch (com.google.protobuf.UninitializedMessageException e) {
245+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
242246
} catch (java.io.IOException e) {
243247
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
244248
} finally {

proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ private LongRunningRecognizeMetadata(
125125
}
126126
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
127127
throw e.setUnfinishedMessage(this);
128+
} catch (com.google.protobuf.UninitializedMessageException e) {
129+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
128130
} catch (java.io.IOException e) {
129131
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
130132
} finally {

proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ private LongRunningRecognizeRequest(
129129
}
130130
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
131131
throw e.setUnfinishedMessage(this);
132+
} catch (com.google.protobuf.UninitializedMessageException e) {
133+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
132134
} catch (java.io.IOException e) {
133135
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
134136
} finally {

proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ private LongRunningRecognizeResponse(
145145
}
146146
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
147147
throw e.setUnfinishedMessage(this);
148+
} catch (com.google.protobuf.UninitializedMessageException e) {
149+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
148150
} catch (java.io.IOException e) {
149151
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
150152
} finally {

proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ private PhraseSet(
107107
}
108108
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
109109
throw e.setUnfinishedMessage(this);
110+
} catch (com.google.protobuf.UninitializedMessageException e) {
111+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
110112
} catch (java.io.IOException e) {
111113
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
112114
} finally {
@@ -281,6 +283,8 @@ private Phrase(
281283
}
282284
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
283285
throw e.setUnfinishedMessage(this);
286+
} catch (com.google.protobuf.UninitializedMessageException e) {
287+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
284288
} catch (java.io.IOException e) {
285289
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
286290
} finally {
@@ -396,7 +400,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
396400
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) {
397401
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_);
398402
}
399-
if (boost_ != 0F) {
403+
if (java.lang.Float.floatToRawIntBits(boost_) != 0) {
400404
output.writeFloat(2, boost_);
401405
}
402406
unknownFields.writeTo(output);
@@ -411,7 +415,7 @@ public int getSerializedSize() {
411415
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) {
412416
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_);
413417
}
414-
if (boost_ != 0F) {
418+
if (java.lang.Float.floatToRawIntBits(boost_) != 0) {
415419
size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, boost_);
416420
}
417421
size += unknownFields.getSerializedSize();
@@ -1135,7 +1139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
11351139
for (int i = 0; i < phrases_.size(); i++) {
11361140
output.writeMessage(2, phrases_.get(i));
11371141
}
1138-
if (boost_ != 0F) {
1142+
if (java.lang.Float.floatToRawIntBits(boost_) != 0) {
11391143
output.writeFloat(4, boost_);
11401144
}
11411145
unknownFields.writeTo(output);
@@ -1153,7 +1157,7 @@ public int getSerializedSize() {
11531157
for (int i = 0; i < phrases_.size(); i++) {
11541158
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, phrases_.get(i));
11551159
}
1156-
if (boost_ != 0F) {
1160+
if (java.lang.Float.floatToRawIntBits(boost_) != 0) {
11571161
size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, boost_);
11581162
}
11591163
size += unknownFields.getSerializedSize();

proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ private RecognitionAudio(
7373
break;
7474
case 10:
7575
{
76-
audioSourceCase_ = 1;
7776
audioSource_ = input.readBytes();
77+
audioSourceCase_ = 1;
7878
break;
7979
}
8080
case 18:
@@ -95,6 +95,8 @@ private RecognitionAudio(
9595
}
9696
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
9797
throw e.setUnfinishedMessage(this);
98+
} catch (com.google.protobuf.UninitializedMessageException e) {
99+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
98100
} catch (java.io.IOException e) {
99101
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
100102
} finally {

proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,8 @@ private RecognitionConfig(
254254
}
255255
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
256256
throw e.setUnfinishedMessage(this);
257+
} catch (com.google.protobuf.UninitializedMessageException e) {
258+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
257259
} catch (java.io.IOException e) {
258260
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
259261
} finally {

proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ private RecognitionMetadata(
141141
}
142142
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
143143
throw e.setUnfinishedMessage(this);
144+
} catch (com.google.protobuf.UninitializedMessageException e) {
145+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
144146
} catch (java.io.IOException e) {
145147
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
146148
} finally {

proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ private RecognizeRequest(
111111
}
112112
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
113113
throw e.setUnfinishedMessage(this);
114+
} catch (com.google.protobuf.UninitializedMessageException e) {
115+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
114116
} catch (java.io.IOException e) {
115117
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
116118
} finally {

0 commit comments

Comments
 (0)