Skip to content

Commit 9770a84

Browse files
chore(bazel): update protobuf to v3.21.7 (#559)
- [ ] 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 feat: add new analysis status and cvss version fields PiperOrigin-RevId: 477815955 Source-Link: https://togithub.com/googleapis/googleapis/commit/57e38f0271093ee5731a728e154b337dbe67108c Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/3a587e147521ff94c68a79163aa16855db9a7a8c Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiM2E1ODdlMTQ3NTIxZmY5NGM2OGE3OTE2M2FhMTY4NTVkYjlhN2E4YyJ9
1 parent 3d8b237 commit 9770a84

File tree

92 files changed

+9129
-10469
lines changed

Some content is hidden

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

92 files changed

+9129
-10469
lines changed

java-grafeas/src/main/java/io/grafeas/v1/AliasContext.java

Lines changed: 51 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -54,59 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5454
return this.unknownFields;
5555
}
5656

57-
private AliasContext(
58-
com.google.protobuf.CodedInputStream input,
59-
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
60-
throws com.google.protobuf.InvalidProtocolBufferException {
61-
this();
62-
if (extensionRegistry == null) {
63-
throw new java.lang.NullPointerException();
64-
}
65-
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
66-
com.google.protobuf.UnknownFieldSet.newBuilder();
67-
try {
68-
boolean done = false;
69-
while (!done) {
70-
int tag = input.readTag();
71-
switch (tag) {
72-
case 0:
73-
done = true;
74-
break;
75-
case 8:
76-
{
77-
int rawValue = input.readEnum();
78-
79-
kind_ = rawValue;
80-
break;
81-
}
82-
case 18:
83-
{
84-
java.lang.String s = input.readStringRequireUtf8();
85-
86-
name_ = s;
87-
break;
88-
}
89-
default:
90-
{
91-
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
92-
done = true;
93-
}
94-
break;
95-
}
96-
}
97-
}
98-
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
99-
throw e.setUnfinishedMessage(this);
100-
} catch (com.google.protobuf.UninitializedMessageException e) {
101-
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
102-
} catch (java.io.IOException e) {
103-
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
104-
} finally {
105-
this.unknownFields = unknownFields.build();
106-
makeExtensionsImmutable();
107-
}
108-
}
109-
11057
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
11158
return io.grafeas.v1.Provenance.internal_static_grafeas_v1_AliasContext_descriptor;
11259
}
@@ -404,7 +351,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
404351
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
405352
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
406353
}
407-
unknownFields.writeTo(output);
354+
getUnknownFields().writeTo(output);
408355
}
409356

410357
@java.lang.Override
@@ -419,7 +366,7 @@ public int getSerializedSize() {
419366
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
420367
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
421368
}
422-
size += unknownFields.getSerializedSize();
369+
size += getUnknownFields().getSerializedSize();
423370
memoizedSize = size;
424371
return size;
425372
}
@@ -436,7 +383,7 @@ public boolean equals(final java.lang.Object obj) {
436383

437384
if (kind_ != other.kind_) return false;
438385
if (!getName().equals(other.getName())) return false;
439-
if (!unknownFields.equals(other.unknownFields)) return false;
386+
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
440387
return true;
441388
}
442389

@@ -451,7 +398,7 @@ public int hashCode() {
451398
hash = (53 * hash) + kind_;
452399
hash = (37 * hash) + NAME_FIELD_NUMBER;
453400
hash = (53 * hash) + getName().hashCode();
454-
hash = (29 * hash) + unknownFields.hashCode();
401+
hash = (29 * hash) + getUnknownFields().hashCode();
455402
memoizedHashCode = hash;
456403
return hash;
457404
}
@@ -576,17 +523,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
576523
}
577524

578525
// Construct using io.grafeas.v1.AliasContext.newBuilder()
579-
private Builder() {
580-
maybeForceBuilderInitialization();
581-
}
526+
private Builder() {}
582527

583528
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
584529
super(parent);
585-
maybeForceBuilderInitialization();
586-
}
587-
588-
private void maybeForceBuilderInitialization() {
589-
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
590530
}
591531

592532
@java.lang.Override
@@ -679,7 +619,7 @@ public Builder mergeFrom(io.grafeas.v1.AliasContext other) {
679619
name_ = other.name_;
680620
onChanged();
681621
}
682-
this.mergeUnknownFields(other.unknownFields);
622+
this.mergeUnknownFields(other.getUnknownFields());
683623
onChanged();
684624
return this;
685625
}
@@ -694,17 +634,43 @@ public Builder mergeFrom(
694634
com.google.protobuf.CodedInputStream input,
695635
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
696636
throws java.io.IOException {
697-
io.grafeas.v1.AliasContext parsedMessage = null;
637+
if (extensionRegistry == null) {
638+
throw new java.lang.NullPointerException();
639+
}
698640
try {
699-
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
641+
boolean done = false;
642+
while (!done) {
643+
int tag = input.readTag();
644+
switch (tag) {
645+
case 0:
646+
done = true;
647+
break;
648+
case 8:
649+
{
650+
kind_ = input.readEnum();
651+
652+
break;
653+
} // case 8
654+
case 18:
655+
{
656+
name_ = input.readStringRequireUtf8();
657+
658+
break;
659+
} // case 18
660+
default:
661+
{
662+
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
663+
done = true; // was an endgroup tag
664+
}
665+
break;
666+
} // default:
667+
} // switch (tag)
668+
} // while (!done)
700669
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
701-
parsedMessage = (io.grafeas.v1.AliasContext) e.getUnfinishedMessage();
702670
throw e.unwrapIOException();
703671
} finally {
704-
if (parsedMessage != null) {
705-
mergeFrom(parsedMessage);
706-
}
707-
}
672+
onChanged();
673+
} // finally
708674
return this;
709675
}
710676

@@ -936,7 +902,18 @@ public AliasContext parsePartialFrom(
936902
com.google.protobuf.CodedInputStream input,
937903
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
938904
throws com.google.protobuf.InvalidProtocolBufferException {
939-
return new AliasContext(input, extensionRegistry);
905+
Builder builder = newBuilder();
906+
try {
907+
builder.mergeFrom(input, extensionRegistry);
908+
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
909+
throw e.setUnfinishedMessage(builder.buildPartial());
910+
} catch (com.google.protobuf.UninitializedMessageException e) {
911+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
912+
} catch (java.io.IOException e) {
913+
throw new com.google.protobuf.InvalidProtocolBufferException(e)
914+
.setUnfinishedMessage(builder.buildPartial());
915+
}
916+
return builder.buildPartial();
940917
}
941918
};
942919

0 commit comments

Comments
 (0)