Skip to content

Commit

Permalink
chore(bazel): update protobuf to v3.21.7 (googleapis#721)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 477955264

Source-Link: https://togithub.com/googleapis/googleapis/commit/a724450af76d0001f23602684c49cd6a4b3a5654

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/4abcbcaec855e74a0b22a4988cf9e0eb61a83094
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGFiY2JjYWVjODU1ZTc0YTBiMjJhNDk4OGNmOWUwZWI2MWE4MzA5NCJ9
  • Loading branch information
gcf-owl-bot[bot] authored Oct 3, 2022
1 parent 8d2a642 commit 0605e06
Show file tree
Hide file tree
Showing 5 changed files with 332 additions and 542 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,68 +51,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}

private StreamingTranslateSpeechConfig(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
com.google.cloud.mediatranslation.v1beta1.TranslateSpeechConfig.Builder subBuilder =
null;
if (audioConfig_ != null) {
subBuilder = audioConfig_.toBuilder();
}
audioConfig_ =
input.readMessage(
com.google.cloud.mediatranslation.v1beta1.TranslateSpeechConfig.parser(),
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(audioConfig_);
audioConfig_ = subBuilder.buildPartial();
}

break;
}
case 16:
{
singleUtterance_ = input.readBool();
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}

public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.mediatranslation.v1beta1.MediaTranslationProto
.internal_static_google_cloud_mediatranslation_v1beta1_StreamingTranslateSpeechConfig_descriptor;
Expand Down Expand Up @@ -233,7 +171,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (singleUtterance_ != false) {
output.writeBool(2, singleUtterance_);
}
unknownFields.writeTo(output);
getUnknownFields().writeTo(output);
}

@java.lang.Override
Expand All @@ -248,7 +186,7 @@ public int getSerializedSize() {
if (singleUtterance_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, singleUtterance_);
}
size += unknownFields.getSerializedSize();
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
Expand All @@ -270,7 +208,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getAudioConfig().equals(other.getAudioConfig())) return false;
}
if (getSingleUtterance() != other.getSingleUtterance()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}

Expand All @@ -287,7 +225,7 @@ public int hashCode() {
}
hash = (37 * hash) + SINGLE_UTTERANCE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSingleUtterance());
hash = (29 * hash) + unknownFields.hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
Expand Down Expand Up @@ -420,17 +358,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {

// Construct using
// com.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechConfig.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder() {}

private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}

private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}

@java.lang.Override
Expand Down Expand Up @@ -540,7 +471,7 @@ public Builder mergeFrom(
if (other.getSingleUtterance() != false) {
setSingleUtterance(other.getSingleUtterance());
}
this.mergeUnknownFields(other.unknownFields);
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
Expand All @@ -555,19 +486,43 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechConfig parsedMessage = null;
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
input.readMessage(getAudioConfigFieldBuilder().getBuilder(), extensionRegistry);

break;
} // case 10
case 16:
{
singleUtterance_ = input.readBool();

break;
} // case 16
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(com.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechConfig)
e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
onChanged();
} // finally
return this;
}

Expand Down Expand Up @@ -903,7 +858,18 @@ public StreamingTranslateSpeechConfig parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StreamingTranslateSpeechConfig(input, extensionRegistry);
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};

Expand Down
Loading

0 comments on commit 0605e06

Please sign in to comment.