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

Commit d88f516

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

File tree

94 files changed

+5437
-8336
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

+5437
-8336
lines changed

proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/AptArtifact.java

Lines changed: 75 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -59,85 +59,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5959
return this.unknownFields;
6060
}
6161

62-
private AptArtifact(
63-
com.google.protobuf.CodedInputStream input,
64-
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
65-
throws com.google.protobuf.InvalidProtocolBufferException {
66-
this();
67-
if (extensionRegistry == null) {
68-
throw new java.lang.NullPointerException();
69-
}
70-
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
71-
com.google.protobuf.UnknownFieldSet.newBuilder();
72-
try {
73-
boolean done = false;
74-
while (!done) {
75-
int tag = input.readTag();
76-
switch (tag) {
77-
case 0:
78-
done = true;
79-
break;
80-
case 10:
81-
{
82-
java.lang.String s = input.readStringRequireUtf8();
83-
84-
name_ = s;
85-
break;
86-
}
87-
case 18:
88-
{
89-
java.lang.String s = input.readStringRequireUtf8();
90-
91-
packageName_ = s;
92-
break;
93-
}
94-
case 24:
95-
{
96-
int rawValue = input.readEnum();
97-
98-
packageType_ = rawValue;
99-
break;
100-
}
101-
case 34:
102-
{
103-
java.lang.String s = input.readStringRequireUtf8();
104-
105-
architecture_ = s;
106-
break;
107-
}
108-
case 42:
109-
{
110-
java.lang.String s = input.readStringRequireUtf8();
111-
112-
component_ = s;
113-
break;
114-
}
115-
case 50:
116-
{
117-
controlFile_ = input.readBytes();
118-
break;
119-
}
120-
default:
121-
{
122-
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
123-
done = true;
124-
}
125-
break;
126-
}
127-
}
128-
}
129-
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
130-
throw e.setUnfinishedMessage(this);
131-
} catch (com.google.protobuf.UninitializedMessageException e) {
132-
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
133-
} catch (java.io.IOException e) {
134-
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
135-
} finally {
136-
this.unknownFields = unknownFields.build();
137-
makeExtensionsImmutable();
138-
}
139-
}
140-
14162
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
14263
return com.google.devtools.artifactregistry.v1.AptArtifactProto
14364
.internal_static_google_devtools_artifactregistry_v1_AptArtifact_descriptor;
@@ -602,7 +523,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
602523
if (!controlFile_.isEmpty()) {
603524
output.writeBytes(6, controlFile_);
604525
}
605-
unknownFields.writeTo(output);
526+
getUnknownFields().writeTo(output);
606527
}
607528

608529
@java.lang.Override
@@ -631,7 +552,7 @@ public int getSerializedSize() {
631552
if (!controlFile_.isEmpty()) {
632553
size += com.google.protobuf.CodedOutputStream.computeBytesSize(6, controlFile_);
633554
}
634-
size += unknownFields.getSerializedSize();
555+
size += getUnknownFields().getSerializedSize();
635556
memoizedSize = size;
636557
return size;
637558
}
@@ -653,7 +574,7 @@ public boolean equals(final java.lang.Object obj) {
653574
if (!getArchitecture().equals(other.getArchitecture())) return false;
654575
if (!getComponent().equals(other.getComponent())) return false;
655576
if (!getControlFile().equals(other.getControlFile())) return false;
656-
if (!unknownFields.equals(other.unknownFields)) return false;
577+
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
657578
return true;
658579
}
659580

@@ -676,7 +597,7 @@ public int hashCode() {
676597
hash = (53 * hash) + getComponent().hashCode();
677598
hash = (37 * hash) + CONTROL_FILE_FIELD_NUMBER;
678599
hash = (53 * hash) + getControlFile().hashCode();
679-
hash = (29 * hash) + unknownFields.hashCode();
600+
hash = (29 * hash) + getUnknownFields().hashCode();
680601
memoizedHashCode = hash;
681602
return hash;
682603
}
@@ -807,17 +728,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
807728
}
808729

809730
// Construct using com.google.devtools.artifactregistry.v1.AptArtifact.newBuilder()
810-
private Builder() {
811-
maybeForceBuilderInitialization();
812-
}
731+
private Builder() {}
813732

814733
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
815734
super(parent);
816-
maybeForceBuilderInitialization();
817-
}
818-
819-
private void maybeForceBuilderInitialization() {
820-
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
821735
}
822736

823737
@java.lang.Override
@@ -940,7 +854,7 @@ public Builder mergeFrom(com.google.devtools.artifactregistry.v1.AptArtifact oth
940854
if (other.getControlFile() != com.google.protobuf.ByteString.EMPTY) {
941855
setControlFile(other.getControlFile());
942856
}
943-
this.mergeUnknownFields(other.unknownFields);
857+
this.mergeUnknownFields(other.getUnknownFields());
944858
onChanged();
945859
return this;
946860
}
@@ -955,18 +869,67 @@ public Builder mergeFrom(
955869
com.google.protobuf.CodedInputStream input,
956870
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
957871
throws java.io.IOException {
958-
com.google.devtools.artifactregistry.v1.AptArtifact parsedMessage = null;
872+
if (extensionRegistry == null) {
873+
throw new java.lang.NullPointerException();
874+
}
959875
try {
960-
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
876+
boolean done = false;
877+
while (!done) {
878+
int tag = input.readTag();
879+
switch (tag) {
880+
case 0:
881+
done = true;
882+
break;
883+
case 10:
884+
{
885+
name_ = input.readStringRequireUtf8();
886+
887+
break;
888+
} // case 10
889+
case 18:
890+
{
891+
packageName_ = input.readStringRequireUtf8();
892+
893+
break;
894+
} // case 18
895+
case 24:
896+
{
897+
packageType_ = input.readEnum();
898+
899+
break;
900+
} // case 24
901+
case 34:
902+
{
903+
architecture_ = input.readStringRequireUtf8();
904+
905+
break;
906+
} // case 34
907+
case 42:
908+
{
909+
component_ = input.readStringRequireUtf8();
910+
911+
break;
912+
} // case 42
913+
case 50:
914+
{
915+
controlFile_ = input.readBytes();
916+
917+
break;
918+
} // case 50
919+
default:
920+
{
921+
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
922+
done = true; // was an endgroup tag
923+
}
924+
break;
925+
} // default:
926+
} // switch (tag)
927+
} // while (!done)
961928
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
962-
parsedMessage =
963-
(com.google.devtools.artifactregistry.v1.AptArtifact) e.getUnfinishedMessage();
964929
throw e.unwrapIOException();
965930
} finally {
966-
if (parsedMessage != null) {
967-
mergeFrom(parsedMessage);
968-
}
969-
}
931+
onChanged();
932+
} // finally
970933
return this;
971934
}
972935

@@ -1585,7 +1548,18 @@ public AptArtifact parsePartialFrom(
15851548
com.google.protobuf.CodedInputStream input,
15861549
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
15871550
throws com.google.protobuf.InvalidProtocolBufferException {
1588-
return new AptArtifact(input, extensionRegistry);
1551+
Builder builder = newBuilder();
1552+
try {
1553+
builder.mergeFrom(input, extensionRegistry);
1554+
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
1555+
throw e.setUnfinishedMessage(builder.buildPartial());
1556+
} catch (com.google.protobuf.UninitializedMessageException e) {
1557+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1558+
} catch (java.io.IOException e) {
1559+
throw new com.google.protobuf.InvalidProtocolBufferException(e)
1560+
.setUnfinishedMessage(builder.buildPartial());
1561+
}
1562+
return builder.buildPartial();
15891563
}
15901564
};
15911565

0 commit comments

Comments
 (0)