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

Commit

Permalink
chore(bazel): update protobuf to v3.21.7 (#551)
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 fd8b15b commit e8e2da5
Show file tree
Hide file tree
Showing 62 changed files with 16,804 additions and 26,192 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,116 +60,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}

private CVSSv3(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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 13:
{
baseScore_ = input.readFloat();
break;
}
case 21:
{
exploitabilityScore_ = input.readFloat();
break;
}
case 29:
{
impactScore_ = input.readFloat();
break;
}
case 40:
{
int rawValue = input.readEnum();

attackVector_ = rawValue;
break;
}
case 48:
{
int rawValue = input.readEnum();

attackComplexity_ = rawValue;
break;
}
case 56:
{
int rawValue = input.readEnum();

privilegesRequired_ = rawValue;
break;
}
case 64:
{
int rawValue = input.readEnum();

userInteraction_ = rawValue;
break;
}
case 72:
{
int rawValue = input.readEnum();

scope_ = rawValue;
break;
}
case 80:
{
int rawValue = input.readEnum();

confidentialityImpact_ = rawValue;
break;
}
case 88:
{
int rawValue = input.readEnum();

integrityImpact_ = rawValue;
break;
}
case 96:
{
int rawValue = input.readEnum();

availabilityImpact_ = rawValue;
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.osconfig.v1.VulnerabilityProto
.internal_static_google_cloud_osconfig_v1_CVSSv3_descriptor;
Expand Down Expand Up @@ -1700,7 +1590,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
!= com.google.cloud.osconfig.v1.CVSSv3.Impact.IMPACT_UNSPECIFIED.getNumber()) {
output.writeEnum(12, availabilityImpact_);
}
unknownFields.writeTo(output);
getUnknownFields().writeTo(output);
}

@java.lang.Override
Expand Down Expand Up @@ -1752,7 +1642,7 @@ public int getSerializedSize() {
!= com.google.cloud.osconfig.v1.CVSSv3.Impact.IMPACT_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, availabilityImpact_);
}
size += unknownFields.getSerializedSize();
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
Expand Down Expand Up @@ -1781,7 +1671,7 @@ public boolean equals(final java.lang.Object obj) {
if (confidentialityImpact_ != other.confidentialityImpact_) return false;
if (integrityImpact_ != other.integrityImpact_) return false;
if (availabilityImpact_ != other.availabilityImpact_) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}

Expand Down Expand Up @@ -1814,7 +1704,7 @@ public int hashCode() {
hash = (53 * hash) + integrityImpact_;
hash = (37 * hash) + AVAILABILITY_IMPACT_FIELD_NUMBER;
hash = (53 * hash) + availabilityImpact_;
hash = (29 * hash) + unknownFields.hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
Expand Down Expand Up @@ -1943,17 +1833,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}

// Construct using com.google.cloud.osconfig.v1.CVSSv3.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 @@ -2100,7 +1983,7 @@ public Builder mergeFrom(com.google.cloud.osconfig.v1.CVSSv3 other) {
if (other.availabilityImpact_ != 0) {
setAvailabilityImpactValue(other.getAvailabilityImpactValue());
}
this.mergeUnknownFields(other.unknownFields);
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
Expand All @@ -2115,17 +1998,97 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.cloud.osconfig.v1.CVSSv3 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 13:
{
baseScore_ = input.readFloat();

break;
} // case 13
case 21:
{
exploitabilityScore_ = input.readFloat();

break;
} // case 21
case 29:
{
impactScore_ = input.readFloat();

break;
} // case 29
case 40:
{
attackVector_ = input.readEnum();

break;
} // case 40
case 48:
{
attackComplexity_ = input.readEnum();

break;
} // case 48
case 56:
{
privilegesRequired_ = input.readEnum();

break;
} // case 56
case 64:
{
userInteraction_ = input.readEnum();

break;
} // case 64
case 72:
{
scope_ = input.readEnum();

break;
} // case 72
case 80:
{
confidentialityImpact_ = input.readEnum();

break;
} // case 80
case 88:
{
integrityImpact_ = input.readEnum();

break;
} // case 88
case 96:
{
availabilityImpact_ = input.readEnum();

break;
} // case 96
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.osconfig.v1.CVSSv3) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
onChanged();
} // finally
return this;
}

Expand Down Expand Up @@ -3113,7 +3076,18 @@ public CVSSv3 parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CVSSv3(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 e8e2da5

Please sign in to comment.