Skip to content

Commit 33eaa39

Browse files
chore(bazel): update protobuf to v3.21.7 (#966)
- [ ] 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 8cc43a2 commit 33eaa39

File tree

3 files changed

+175
-251
lines changed

3 files changed

+175
-251
lines changed

java-containeranalysis/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-containeranalysis'
5656
If you are using Gradle without BOM, add this to your dependencies:
5757

5858
```Groovy
59-
implementation 'com.google.cloud:google-cloud-containeranalysis:2.4.7'
59+
implementation 'com.google.cloud:google-cloud-containeranalysis:2.4.8'
6060
```
6161

6262
If you are using SBT, add this to your dependencies:
6363

6464
```Scala
65-
libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "2.4.7"
65+
libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "2.4.8"
6666
```
6767

6868
## Authentication

java-containeranalysis/proto-google-cloud-containeranalysis-v1/src/main/java/com/google/containeranalysis/v1/GetVulnerabilityOccurrencesSummaryRequest.java

Lines changed: 52 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -56,59 +56,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5656
return this.unknownFields;
5757
}
5858

59-
private GetVulnerabilityOccurrencesSummaryRequest(
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-
parent_ = s;
82-
break;
83-
}
84-
case 18:
85-
{
86-
java.lang.String s = input.readStringRequireUtf8();
87-
88-
filter_ = s;
89-
break;
90-
}
91-
default:
92-
{
93-
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
94-
done = true;
95-
}
96-
break;
97-
}
98-
}
99-
}
100-
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
101-
throw e.setUnfinishedMessage(this);
102-
} catch (com.google.protobuf.UninitializedMessageException e) {
103-
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
104-
} catch (java.io.IOException e) {
105-
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
106-
} finally {
107-
this.unknownFields = unknownFields.build();
108-
makeExtensionsImmutable();
109-
}
110-
}
111-
11259
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
11360
return com.google.containeranalysis.v1.Containeranalysis
11461
.internal_static_google_devtools_containeranalysis_v1_GetVulnerabilityOccurrencesSummaryRequest_descriptor;
@@ -249,7 +196,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
249196
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
250197
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_);
251198
}
252-
unknownFields.writeTo(output);
199+
getUnknownFields().writeTo(output);
253200
}
254201

255202
@java.lang.Override
@@ -264,7 +211,7 @@ public int getSerializedSize() {
264211
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
265212
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_);
266213
}
267-
size += unknownFields.getSerializedSize();
214+
size += getUnknownFields().getSerializedSize();
268215
memoizedSize = size;
269216
return size;
270217
}
@@ -283,7 +230,7 @@ public boolean equals(final java.lang.Object obj) {
283230

284231
if (!getParent().equals(other.getParent())) return false;
285232
if (!getFilter().equals(other.getFilter())) return false;
286-
if (!unknownFields.equals(other.unknownFields)) return false;
233+
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
287234
return true;
288235
}
289236

@@ -298,7 +245,7 @@ public int hashCode() {
298245
hash = (53 * hash) + getParent().hashCode();
299246
hash = (37 * hash) + FILTER_FIELD_NUMBER;
300247
hash = (53 * hash) + getFilter().hashCode();
301-
hash = (29 * hash) + unknownFields.hashCode();
248+
hash = (29 * hash) + getUnknownFields().hashCode();
302249
memoizedHashCode = hash;
303250
return hash;
304251
}
@@ -432,17 +379,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
432379

433380
// Construct using
434381
// com.google.containeranalysis.v1.GetVulnerabilityOccurrencesSummaryRequest.newBuilder()
435-
private Builder() {
436-
maybeForceBuilderInitialization();
437-
}
382+
private Builder() {}
438383

439384
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
440385
super(parent);
441-
maybeForceBuilderInitialization();
442-
}
443-
444-
private void maybeForceBuilderInitialization() {
445-
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
446386
}
447387

448388
@java.lang.Override
@@ -547,7 +487,7 @@ public Builder mergeFrom(
547487
filter_ = other.filter_;
548488
onChanged();
549489
}
550-
this.mergeUnknownFields(other.unknownFields);
490+
this.mergeUnknownFields(other.getUnknownFields());
551491
onChanged();
552492
return this;
553493
}
@@ -562,20 +502,43 @@ public Builder mergeFrom(
562502
com.google.protobuf.CodedInputStream input,
563503
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
564504
throws java.io.IOException {
565-
com.google.containeranalysis.v1.GetVulnerabilityOccurrencesSummaryRequest parsedMessage =
566-
null;
505+
if (extensionRegistry == null) {
506+
throw new java.lang.NullPointerException();
507+
}
567508
try {
568-
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
509+
boolean done = false;
510+
while (!done) {
511+
int tag = input.readTag();
512+
switch (tag) {
513+
case 0:
514+
done = true;
515+
break;
516+
case 10:
517+
{
518+
parent_ = input.readStringRequireUtf8();
519+
520+
break;
521+
} // case 10
522+
case 18:
523+
{
524+
filter_ = input.readStringRequireUtf8();
525+
526+
break;
527+
} // case 18
528+
default:
529+
{
530+
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
531+
done = true; // was an endgroup tag
532+
}
533+
break;
534+
} // default:
535+
} // switch (tag)
536+
} // while (!done)
569537
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
570-
parsedMessage =
571-
(com.google.containeranalysis.v1.GetVulnerabilityOccurrencesSummaryRequest)
572-
e.getUnfinishedMessage();
573538
throw e.unwrapIOException();
574539
} finally {
575-
if (parsedMessage != null) {
576-
mergeFrom(parsedMessage);
577-
}
578-
}
540+
onChanged();
541+
} // finally
579542
return this;
580543
}
581544

@@ -842,7 +805,19 @@ public GetVulnerabilityOccurrencesSummaryRequest parsePartialFrom(
842805
com.google.protobuf.CodedInputStream input,
843806
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
844807
throws com.google.protobuf.InvalidProtocolBufferException {
845-
return new GetVulnerabilityOccurrencesSummaryRequest(input, extensionRegistry);
808+
Builder builder = newBuilder();
809+
try {
810+
builder.mergeFrom(input, extensionRegistry);
811+
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
812+
throw e.setUnfinishedMessage(builder.buildPartial());
813+
} catch (com.google.protobuf.UninitializedMessageException e) {
814+
throw e.asInvalidProtocolBufferException()
815+
.setUnfinishedMessage(builder.buildPartial());
816+
} catch (java.io.IOException e) {
817+
throw new com.google.protobuf.InvalidProtocolBufferException(e)
818+
.setUnfinishedMessage(builder.buildPartial());
819+
}
820+
return builder.buildPartial();
846821
}
847822
};
848823

0 commit comments

Comments
 (0)