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

Commit 79d519c

Browse files
chore(bazel): update protobuf to v3.21.7 (#792)
- [ ] 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
1 parent 7367b31 commit 79d519c

File tree

87 files changed

+5163
-7988
lines changed

Some content is hidden

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

87 files changed

+5163
-7988
lines changed

proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineHttpRequest.java

Lines changed: 75 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -102,95 +102,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
102102
return this.unknownFields;
103103
}
104104

105-
private AppEngineHttpRequest(
106-
com.google.protobuf.CodedInputStream input,
107-
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
108-
throws com.google.protobuf.InvalidProtocolBufferException {
109-
this();
110-
if (extensionRegistry == null) {
111-
throw new java.lang.NullPointerException();
112-
}
113-
int mutable_bitField0_ = 0;
114-
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
115-
com.google.protobuf.UnknownFieldSet.newBuilder();
116-
try {
117-
boolean done = false;
118-
while (!done) {
119-
int tag = input.readTag();
120-
switch (tag) {
121-
case 0:
122-
done = true;
123-
break;
124-
case 8:
125-
{
126-
int rawValue = input.readEnum();
127-
128-
httpMethod_ = rawValue;
129-
break;
130-
}
131-
case 18:
132-
{
133-
com.google.cloud.tasks.v2.AppEngineRouting.Builder subBuilder = null;
134-
if (appEngineRouting_ != null) {
135-
subBuilder = appEngineRouting_.toBuilder();
136-
}
137-
appEngineRouting_ =
138-
input.readMessage(
139-
com.google.cloud.tasks.v2.AppEngineRouting.parser(), extensionRegistry);
140-
if (subBuilder != null) {
141-
subBuilder.mergeFrom(appEngineRouting_);
142-
appEngineRouting_ = subBuilder.buildPartial();
143-
}
144-
145-
break;
146-
}
147-
case 26:
148-
{
149-
java.lang.String s = input.readStringRequireUtf8();
150-
151-
relativeUri_ = s;
152-
break;
153-
}
154-
case 34:
155-
{
156-
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
157-
headers_ =
158-
com.google.protobuf.MapField.newMapField(
159-
HeadersDefaultEntryHolder.defaultEntry);
160-
mutable_bitField0_ |= 0x00000001;
161-
}
162-
com.google.protobuf.MapEntry<java.lang.String, java.lang.String> headers__ =
163-
input.readMessage(
164-
HeadersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
165-
headers_.getMutableMap().put(headers__.getKey(), headers__.getValue());
166-
break;
167-
}
168-
case 42:
169-
{
170-
body_ = input.readBytes();
171-
break;
172-
}
173-
default:
174-
{
175-
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
176-
done = true;
177-
}
178-
break;
179-
}
180-
}
181-
}
182-
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
183-
throw e.setUnfinishedMessage(this);
184-
} catch (com.google.protobuf.UninitializedMessageException e) {
185-
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
186-
} catch (java.io.IOException e) {
187-
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
188-
} finally {
189-
this.unknownFields = unknownFields.build();
190-
makeExtensionsImmutable();
191-
}
192-
}
193-
194105
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
195106
return com.google.cloud.tasks.v2.TargetProto
196107
.internal_static_google_cloud_tasks_v2_AppEngineHttpRequest_descriptor;
@@ -662,7 +573,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
662573
if (!body_.isEmpty()) {
663574
output.writeBytes(5, body_);
664575
}
665-
unknownFields.writeTo(output);
576+
getUnknownFields().writeTo(output);
666577
}
667578

668579
@java.lang.Override
@@ -693,7 +604,7 @@ public int getSerializedSize() {
693604
if (!body_.isEmpty()) {
694605
size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, body_);
695606
}
696-
size += unknownFields.getSerializedSize();
607+
size += getUnknownFields().getSerializedSize();
697608
memoizedSize = size;
698609
return size;
699610
}
@@ -717,7 +628,7 @@ public boolean equals(final java.lang.Object obj) {
717628
if (!getRelativeUri().equals(other.getRelativeUri())) return false;
718629
if (!internalGetHeaders().equals(other.internalGetHeaders())) return false;
719630
if (!getBody().equals(other.getBody())) return false;
720-
if (!unknownFields.equals(other.unknownFields)) return false;
631+
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
721632
return true;
722633
}
723634

@@ -742,7 +653,7 @@ public int hashCode() {
742653
}
743654
hash = (37 * hash) + BODY_FIELD_NUMBER;
744655
hash = (53 * hash) + getBody().hashCode();
745-
hash = (29 * hash) + unknownFields.hashCode();
656+
hash = (29 * hash) + getUnknownFields().hashCode();
746657
memoizedHashCode = hash;
747658
return hash;
748659
}
@@ -939,17 +850,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
939850
}
940851

941852
// Construct using com.google.cloud.tasks.v2.AppEngineHttpRequest.newBuilder()
942-
private Builder() {
943-
maybeForceBuilderInitialization();
944-
}
853+
private Builder() {}
945854

946855
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
947856
super(parent);
948-
maybeForceBuilderInitialization();
949-
}
950-
951-
private void maybeForceBuilderInitialization() {
952-
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
953857
}
954858

955859
@java.lang.Override
@@ -1069,7 +973,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2.AppEngineHttpRequest other) {
1069973
if (other.getBody() != com.google.protobuf.ByteString.EMPTY) {
1070974
setBody(other.getBody());
1071975
}
1072-
this.mergeUnknownFields(other.unknownFields);
976+
this.mergeUnknownFields(other.getUnknownFields());
1073977
onChanged();
1074978
return this;
1075979
}
@@ -1084,17 +988,67 @@ public Builder mergeFrom(
1084988
com.google.protobuf.CodedInputStream input,
1085989
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1086990
throws java.io.IOException {
1087-
com.google.cloud.tasks.v2.AppEngineHttpRequest parsedMessage = null;
991+
if (extensionRegistry == null) {
992+
throw new java.lang.NullPointerException();
993+
}
1088994
try {
1089-
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
995+
boolean done = false;
996+
while (!done) {
997+
int tag = input.readTag();
998+
switch (tag) {
999+
case 0:
1000+
done = true;
1001+
break;
1002+
case 8:
1003+
{
1004+
httpMethod_ = input.readEnum();
1005+
1006+
break;
1007+
} // case 8
1008+
case 18:
1009+
{
1010+
input.readMessage(
1011+
getAppEngineRoutingFieldBuilder().getBuilder(), extensionRegistry);
1012+
1013+
break;
1014+
} // case 18
1015+
case 26:
1016+
{
1017+
relativeUri_ = input.readStringRequireUtf8();
1018+
1019+
break;
1020+
} // case 26
1021+
case 34:
1022+
{
1023+
com.google.protobuf.MapEntry<java.lang.String, java.lang.String> headers__ =
1024+
input.readMessage(
1025+
HeadersDefaultEntryHolder.defaultEntry.getParserForType(),
1026+
extensionRegistry);
1027+
internalGetMutableHeaders()
1028+
.getMutableMap()
1029+
.put(headers__.getKey(), headers__.getValue());
1030+
break;
1031+
} // case 34
1032+
case 42:
1033+
{
1034+
body_ = input.readBytes();
1035+
1036+
break;
1037+
} // case 42
1038+
default:
1039+
{
1040+
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1041+
done = true; // was an endgroup tag
1042+
}
1043+
break;
1044+
} // default:
1045+
} // switch (tag)
1046+
} // while (!done)
10901047
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
1091-
parsedMessage = (com.google.cloud.tasks.v2.AppEngineHttpRequest) e.getUnfinishedMessage();
10921048
throw e.unwrapIOException();
10931049
} finally {
1094-
if (parsedMessage != null) {
1095-
mergeFrom(parsedMessage);
1096-
}
1097-
}
1050+
onChanged();
1051+
} // finally
10981052
return this;
10991053
}
11001054

@@ -2059,7 +2013,18 @@ public AppEngineHttpRequest parsePartialFrom(
20592013
com.google.protobuf.CodedInputStream input,
20602014
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
20612015
throws com.google.protobuf.InvalidProtocolBufferException {
2062-
return new AppEngineHttpRequest(input, extensionRegistry);
2016+
Builder builder = newBuilder();
2017+
try {
2018+
builder.mergeFrom(input, extensionRegistry);
2019+
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
2020+
throw e.setUnfinishedMessage(builder.buildPartial());
2021+
} catch (com.google.protobuf.UninitializedMessageException e) {
2022+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
2023+
} catch (java.io.IOException e) {
2024+
throw new com.google.protobuf.InvalidProtocolBufferException(e)
2025+
.setUnfinishedMessage(builder.buildPartial());
2026+
}
2027+
return builder.buildPartial();
20632028
}
20642029
};
20652030

0 commit comments

Comments
 (0)