Skip to content

Commit

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

PiperOrigin-RevId: 477955264

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

Source-Link: https://github.com/googleapis/googleapis-gen/commit/4abcbcaec855e74a0b22a4988cf9e0eb61a83094
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGFiY2JjYWVjODU1ZTc0YTBiMjJhNDk4OGNmOWUwZWI2MWE4MzA5NCJ9
  • Loading branch information
gcf-owl-bot[bot] committed Oct 3, 2022
1 parent 4f717c2 commit 3beec8e
Show file tree
Hide file tree
Showing 87 changed files with 5,163 additions and 7,988 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,95 +102,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}

private AppEngineHttpRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
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 8:
{
int rawValue = input.readEnum();

httpMethod_ = rawValue;
break;
}
case 18:
{
com.google.cloud.tasks.v2.AppEngineRouting.Builder subBuilder = null;
if (appEngineRouting_ != null) {
subBuilder = appEngineRouting_.toBuilder();
}
appEngineRouting_ =
input.readMessage(
com.google.cloud.tasks.v2.AppEngineRouting.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(appEngineRouting_);
appEngineRouting_ = subBuilder.buildPartial();
}

break;
}
case 26:
{
java.lang.String s = input.readStringRequireUtf8();

relativeUri_ = s;
break;
}
case 34:
{
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
headers_ =
com.google.protobuf.MapField.newMapField(
HeadersDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry<java.lang.String, java.lang.String> headers__ =
input.readMessage(
HeadersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
headers_.getMutableMap().put(headers__.getKey(), headers__.getValue());
break;
}
case 42:
{
body_ = input.readBytes();
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.tasks.v2.TargetProto
.internal_static_google_cloud_tasks_v2_AppEngineHttpRequest_descriptor;
Expand Down Expand Up @@ -662,7 +573,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!body_.isEmpty()) {
output.writeBytes(5, body_);
}
unknownFields.writeTo(output);
getUnknownFields().writeTo(output);
}

@java.lang.Override
Expand Down Expand Up @@ -693,7 +604,7 @@ public int getSerializedSize() {
if (!body_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, body_);
}
size += unknownFields.getSerializedSize();
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
Expand All @@ -717,7 +628,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getRelativeUri().equals(other.getRelativeUri())) return false;
if (!internalGetHeaders().equals(other.internalGetHeaders())) return false;
if (!getBody().equals(other.getBody())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}

Expand All @@ -742,7 +653,7 @@ public int hashCode() {
}
hash = (37 * hash) + BODY_FIELD_NUMBER;
hash = (53 * hash) + getBody().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
Expand Down Expand Up @@ -939,17 +850,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
}

// Construct using com.google.cloud.tasks.v2.AppEngineHttpRequest.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 @@ -1069,7 +973,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2.AppEngineHttpRequest other) {
if (other.getBody() != com.google.protobuf.ByteString.EMPTY) {
setBody(other.getBody());
}
this.mergeUnknownFields(other.unknownFields);
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
Expand All @@ -1084,17 +988,67 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.cloud.tasks.v2.AppEngineHttpRequest 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 8:
{
httpMethod_ = input.readEnum();

break;
} // case 8
case 18:
{
input.readMessage(
getAppEngineRoutingFieldBuilder().getBuilder(), extensionRegistry);

break;
} // case 18
case 26:
{
relativeUri_ = input.readStringRequireUtf8();

break;
} // case 26
case 34:
{
com.google.protobuf.MapEntry<java.lang.String, java.lang.String> headers__ =
input.readMessage(
HeadersDefaultEntryHolder.defaultEntry.getParserForType(),
extensionRegistry);
internalGetMutableHeaders()
.getMutableMap()
.put(headers__.getKey(), headers__.getValue());
break;
} // case 34
case 42:
{
body_ = input.readBytes();

break;
} // case 42
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.tasks.v2.AppEngineHttpRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
onChanged();
} // finally
return this;
}

Expand Down Expand Up @@ -2059,7 +2013,18 @@ public AppEngineHttpRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AppEngineHttpRequest(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 3beec8e

Please sign in to comment.