Skip to content

Commit 5eebac5

Browse files
chore(bazel): update protobuf to v3.21.7 (googleapis#253)
* chore(bazel): update protobuf to v3.21.7 PiperOrigin-RevId: 477955264 Source-Link: googleapis/googleapis@a724450 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4abcbcaec855e74a0b22a4988cf9e0eb61a83094 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGFiY2JjYWVjODU1ZTc0YTBiMjJhNDk4OGNmOWUwZWI2MWE4MzA5NCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 08b1165 commit 5eebac5

28 files changed

Lines changed: 1883 additions & 2838 deletions

java-life-sciences/proto-google-cloud-life-sciences-v2beta/src/main/java/com/google/cloud/lifesciences/v2beta/Accelerator.java

Lines changed: 51 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -52,57 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5252
return this.unknownFields;
5353
}
5454

55-
private Accelerator(
56-
com.google.protobuf.CodedInputStream input,
57-
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
58-
throws com.google.protobuf.InvalidProtocolBufferException {
59-
this();
60-
if (extensionRegistry == null) {
61-
throw new java.lang.NullPointerException();
62-
}
63-
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
64-
com.google.protobuf.UnknownFieldSet.newBuilder();
65-
try {
66-
boolean done = false;
67-
while (!done) {
68-
int tag = input.readTag();
69-
switch (tag) {
70-
case 0:
71-
done = true;
72-
break;
73-
case 10:
74-
{
75-
java.lang.String s = input.readStringRequireUtf8();
76-
77-
type_ = s;
78-
break;
79-
}
80-
case 16:
81-
{
82-
count_ = input.readInt64();
83-
break;
84-
}
85-
default:
86-
{
87-
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
88-
done = true;
89-
}
90-
break;
91-
}
92-
}
93-
}
94-
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
95-
throw e.setUnfinishedMessage(this);
96-
} catch (com.google.protobuf.UninitializedMessageException e) {
97-
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
98-
} catch (java.io.IOException e) {
99-
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
100-
} finally {
101-
this.unknownFields = unknownFields.build();
102-
makeExtensionsImmutable();
103-
}
104-
}
105-
10655
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
10756
return com.google.cloud.lifesciences.v2beta.WorkflowsProto
10857
.internal_static_google_cloud_lifesciences_v2beta_Accelerator_descriptor;
@@ -217,7 +166,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
217166
if (count_ != 0L) {
218167
output.writeInt64(2, count_);
219168
}
220-
unknownFields.writeTo(output);
169+
getUnknownFields().writeTo(output);
221170
}
222171

223172
@java.lang.Override
@@ -232,7 +181,7 @@ public int getSerializedSize() {
232181
if (count_ != 0L) {
233182
size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, count_);
234183
}
235-
size += unknownFields.getSerializedSize();
184+
size += getUnknownFields().getSerializedSize();
236185
memoizedSize = size;
237186
return size;
238187
}
@@ -250,7 +199,7 @@ public boolean equals(final java.lang.Object obj) {
250199

251200
if (!getType().equals(other.getType())) return false;
252201
if (getCount() != other.getCount()) return false;
253-
if (!unknownFields.equals(other.unknownFields)) return false;
202+
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
254203
return true;
255204
}
256205

@@ -265,7 +214,7 @@ public int hashCode() {
265214
hash = (53 * hash) + getType().hashCode();
266215
hash = (37 * hash) + COUNT_FIELD_NUMBER;
267216
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCount());
268-
hash = (29 * hash) + unknownFields.hashCode();
217+
hash = (29 * hash) + getUnknownFields().hashCode();
269218
memoizedHashCode = hash;
270219
return hash;
271220
}
@@ -394,17 +343,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
394343
}
395344

396345
// Construct using com.google.cloud.lifesciences.v2beta.Accelerator.newBuilder()
397-
private Builder() {
398-
maybeForceBuilderInitialization();
399-
}
346+
private Builder() {}
400347

401348
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
402349
super(parent);
403-
maybeForceBuilderInitialization();
404-
}
405-
406-
private void maybeForceBuilderInitialization() {
407-
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
408350
}
409351

410352
@java.lang.Override
@@ -500,7 +442,7 @@ public Builder mergeFrom(com.google.cloud.lifesciences.v2beta.Accelerator other)
500442
if (other.getCount() != 0L) {
501443
setCount(other.getCount());
502444
}
503-
this.mergeUnknownFields(other.unknownFields);
445+
this.mergeUnknownFields(other.getUnknownFields());
504446
onChanged();
505447
return this;
506448
}
@@ -515,17 +457,43 @@ public Builder mergeFrom(
515457
com.google.protobuf.CodedInputStream input,
516458
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
517459
throws java.io.IOException {
518-
com.google.cloud.lifesciences.v2beta.Accelerator parsedMessage = null;
460+
if (extensionRegistry == null) {
461+
throw new java.lang.NullPointerException();
462+
}
519463
try {
520-
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
464+
boolean done = false;
465+
while (!done) {
466+
int tag = input.readTag();
467+
switch (tag) {
468+
case 0:
469+
done = true;
470+
break;
471+
case 10:
472+
{
473+
type_ = input.readStringRequireUtf8();
474+
475+
break;
476+
} // case 10
477+
case 16:
478+
{
479+
count_ = input.readInt64();
480+
481+
break;
482+
} // case 16
483+
default:
484+
{
485+
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
486+
done = true; // was an endgroup tag
487+
}
488+
break;
489+
} // default:
490+
} // switch (tag)
491+
} // while (!done)
521492
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
522-
parsedMessage = (com.google.cloud.lifesciences.v2beta.Accelerator) e.getUnfinishedMessage();
523493
throw e.unwrapIOException();
524494
} finally {
525-
if (parsedMessage != null) {
526-
mergeFrom(parsedMessage);
527-
}
528-
}
495+
onChanged();
496+
} // finally
529497
return this;
530498
}
531499

@@ -749,7 +717,18 @@ public Accelerator parsePartialFrom(
749717
com.google.protobuf.CodedInputStream input,
750718
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
751719
throws com.google.protobuf.InvalidProtocolBufferException {
752-
return new Accelerator(input, extensionRegistry);
720+
Builder builder = newBuilder();
721+
try {
722+
builder.mergeFrom(input, extensionRegistry);
723+
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
724+
throw e.setUnfinishedMessage(builder.buildPartial());
725+
} catch (com.google.protobuf.UninitializedMessageException e) {
726+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
727+
} catch (java.io.IOException e) {
728+
throw new com.google.protobuf.InvalidProtocolBufferException(e)
729+
.setUnfinishedMessage(builder.buildPartial());
730+
}
731+
return builder.buildPartial();
753732
}
754733
};
755734

0 commit comments

Comments
 (0)