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

Commit e03db73

Browse files
chore(bazel): update protobuf to v3.21.7 (#773)
- [ ] 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 e76a110 commit e03db73

File tree

94 files changed

+6601
-10131
lines changed

Some content is hidden

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

94 files changed

+6601
-10131
lines changed

proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrl.java

+57-82
Original file line numberDiff line numberDiff line change
@@ -56,66 +56,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5656
return this.unknownFields;
5757
}
5858

59-
private CrawledUrl(
60-
com.google.protobuf.CodedInputStream input,
61-
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
62-
throws com.google.protobuf.InvalidProtocolBufferException {
63-
this();
64-
if (extensionRegistry == null) {
65-
throw new java.lang.NullPointerException();
66-
}
67-
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
68-
com.google.protobuf.UnknownFieldSet.newBuilder();
69-
try {
70-
boolean done = false;
71-
while (!done) {
72-
int tag = input.readTag();
73-
switch (tag) {
74-
case 0:
75-
done = true;
76-
break;
77-
case 10:
78-
{
79-
java.lang.String s = input.readStringRequireUtf8();
80-
81-
httpMethod_ = s;
82-
break;
83-
}
84-
case 18:
85-
{
86-
java.lang.String s = input.readStringRequireUtf8();
87-
88-
url_ = s;
89-
break;
90-
}
91-
case 26:
92-
{
93-
java.lang.String s = input.readStringRequireUtf8();
94-
95-
body_ = s;
96-
break;
97-
}
98-
default:
99-
{
100-
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
101-
done = true;
102-
}
103-
break;
104-
}
105-
}
106-
}
107-
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
108-
throw e.setUnfinishedMessage(this);
109-
} catch (com.google.protobuf.UninitializedMessageException e) {
110-
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
111-
} catch (java.io.IOException e) {
112-
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
113-
} finally {
114-
this.unknownFields = unknownFields.build();
115-
makeExtensionsImmutable();
116-
}
117-
}
118-
11959
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
12060
return com.google.cloud.websecurityscanner.v1.CrawledUrlProto
12161
.internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_descriptor;
@@ -303,7 +243,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
303243
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(body_)) {
304244
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, body_);
305245
}
306-
unknownFields.writeTo(output);
246+
getUnknownFields().writeTo(output);
307247
}
308248

309249
@java.lang.Override
@@ -321,7 +261,7 @@ public int getSerializedSize() {
321261
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(body_)) {
322262
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, body_);
323263
}
324-
size += unknownFields.getSerializedSize();
264+
size += getUnknownFields().getSerializedSize();
325265
memoizedSize = size;
326266
return size;
327267
}
@@ -340,7 +280,7 @@ public boolean equals(final java.lang.Object obj) {
340280
if (!getHttpMethod().equals(other.getHttpMethod())) return false;
341281
if (!getUrl().equals(other.getUrl())) return false;
342282
if (!getBody().equals(other.getBody())) return false;
343-
if (!unknownFields.equals(other.unknownFields)) return false;
283+
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
344284
return true;
345285
}
346286

@@ -357,7 +297,7 @@ public int hashCode() {
357297
hash = (53 * hash) + getUrl().hashCode();
358298
hash = (37 * hash) + BODY_FIELD_NUMBER;
359299
hash = (53 * hash) + getBody().hashCode();
360-
hash = (29 * hash) + unknownFields.hashCode();
300+
hash = (29 * hash) + getUnknownFields().hashCode();
361301
memoizedHashCode = hash;
362302
return hash;
363303
}
@@ -488,17 +428,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
488428
}
489429

490430
// Construct using com.google.cloud.websecurityscanner.v1.CrawledUrl.newBuilder()
491-
private Builder() {
492-
maybeForceBuilderInitialization();
493-
}
431+
private Builder() {}
494432

495433
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
496434
super(parent);
497-
maybeForceBuilderInitialization();
498-
}
499-
500-
private void maybeForceBuilderInitialization() {
501-
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
502435
}
503436

504437
@java.lang.Override
@@ -602,7 +535,7 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.CrawledUrl other
602535
body_ = other.body_;
603536
onChanged();
604537
}
605-
this.mergeUnknownFields(other.unknownFields);
538+
this.mergeUnknownFields(other.getUnknownFields());
606539
onChanged();
607540
return this;
608541
}
@@ -617,18 +550,49 @@ public Builder mergeFrom(
617550
com.google.protobuf.CodedInputStream input,
618551
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
619552
throws java.io.IOException {
620-
com.google.cloud.websecurityscanner.v1.CrawledUrl parsedMessage = null;
553+
if (extensionRegistry == null) {
554+
throw new java.lang.NullPointerException();
555+
}
621556
try {
622-
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
557+
boolean done = false;
558+
while (!done) {
559+
int tag = input.readTag();
560+
switch (tag) {
561+
case 0:
562+
done = true;
563+
break;
564+
case 10:
565+
{
566+
httpMethod_ = input.readStringRequireUtf8();
567+
568+
break;
569+
} // case 10
570+
case 18:
571+
{
572+
url_ = input.readStringRequireUtf8();
573+
574+
break;
575+
} // case 18
576+
case 26:
577+
{
578+
body_ = input.readStringRequireUtf8();
579+
580+
break;
581+
} // case 26
582+
default:
583+
{
584+
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
585+
done = true; // was an endgroup tag
586+
}
587+
break;
588+
} // default:
589+
} // switch (tag)
590+
} // while (!done)
623591
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
624-
parsedMessage =
625-
(com.google.cloud.websecurityscanner.v1.CrawledUrl) e.getUnfinishedMessage();
626592
throw e.unwrapIOException();
627593
} finally {
628-
if (parsedMessage != null) {
629-
mergeFrom(parsedMessage);
630-
}
631-
}
594+
onChanged();
595+
} // finally
632596
return this;
633597
}
634598

@@ -987,7 +951,18 @@ public CrawledUrl parsePartialFrom(
987951
com.google.protobuf.CodedInputStream input,
988952
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
989953
throws com.google.protobuf.InvalidProtocolBufferException {
990-
return new CrawledUrl(input, extensionRegistry);
954+
Builder builder = newBuilder();
955+
try {
956+
builder.mergeFrom(input, extensionRegistry);
957+
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
958+
throw e.setUnfinishedMessage(builder.buildPartial());
959+
} catch (com.google.protobuf.UninitializedMessageException e) {
960+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
961+
} catch (java.io.IOException e) {
962+
throw new com.google.protobuf.InvalidProtocolBufferException(e)
963+
.setUnfinishedMessage(builder.buildPartial());
964+
}
965+
return builder.buildPartial();
991966
}
992967
};
993968

0 commit comments

Comments
 (0)