Skip to content

Commit d533d1c

Browse files
chore(bazel): update protobuf to v3.21.7 (#951)
- [ ] 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 17de243 commit d533d1c

File tree

115 files changed

+8166
-12595
lines changed

Some content is hidden

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

115 files changed

+8166
-12595
lines changed

java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfig.java

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

57-
private AcceleratorConfig(
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 10:
76-
{
77-
java.lang.String s = input.readStringRequireUtf8();
78-
79-
acceleratorTypeUri_ = s;
80-
break;
81-
}
82-
case 16:
83-
{
84-
acceleratorCount_ = input.readInt32();
85-
break;
86-
}
87-
default:
88-
{
89-
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
90-
done = true;
91-
}
92-
break;
93-
}
94-
}
95-
}
96-
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
97-
throw e.setUnfinishedMessage(this);
98-
} catch (com.google.protobuf.UninitializedMessageException e) {
99-
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
100-
} catch (java.io.IOException e) {
101-
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
102-
} finally {
103-
this.unknownFields = unknownFields.build();
104-
makeExtensionsImmutable();
105-
}
106-
}
107-
10857
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
10958
return com.google.cloud.dataproc.v1.ClustersProto
11059
.internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor;
@@ -231,7 +180,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
231180
if (acceleratorCount_ != 0) {
232181
output.writeInt32(2, acceleratorCount_);
233182
}
234-
unknownFields.writeTo(output);
183+
getUnknownFields().writeTo(output);
235184
}
236185

237186
@java.lang.Override
@@ -246,7 +195,7 @@ public int getSerializedSize() {
246195
if (acceleratorCount_ != 0) {
247196
size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, acceleratorCount_);
248197
}
249-
size += unknownFields.getSerializedSize();
198+
size += getUnknownFields().getSerializedSize();
250199
memoizedSize = size;
251200
return size;
252201
}
@@ -264,7 +213,7 @@ public boolean equals(final java.lang.Object obj) {
264213

265214
if (!getAcceleratorTypeUri().equals(other.getAcceleratorTypeUri())) return false;
266215
if (getAcceleratorCount() != other.getAcceleratorCount()) return false;
267-
if (!unknownFields.equals(other.unknownFields)) return false;
216+
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
268217
return true;
269218
}
270219

@@ -279,7 +228,7 @@ public int hashCode() {
279228
hash = (53 * hash) + getAcceleratorTypeUri().hashCode();
280229
hash = (37 * hash) + ACCELERATOR_COUNT_FIELD_NUMBER;
281230
hash = (53 * hash) + getAcceleratorCount();
282-
hash = (29 * hash) + unknownFields.hashCode();
231+
hash = (29 * hash) + getUnknownFields().hashCode();
283232
memoizedHashCode = hash;
284233
return hash;
285234
}
@@ -410,17 +359,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
410359
}
411360

412361
// Construct using com.google.cloud.dataproc.v1.AcceleratorConfig.newBuilder()
413-
private Builder() {
414-
maybeForceBuilderInitialization();
415-
}
362+
private Builder() {}
416363

417364
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
418365
super(parent);
419-
maybeForceBuilderInitialization();
420-
}
421-
422-
private void maybeForceBuilderInitialization() {
423-
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
424366
}
425367

426368
@java.lang.Override
@@ -515,7 +457,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.AcceleratorConfig other) {
515457
if (other.getAcceleratorCount() != 0) {
516458
setAcceleratorCount(other.getAcceleratorCount());
517459
}
518-
this.mergeUnknownFields(other.unknownFields);
460+
this.mergeUnknownFields(other.getUnknownFields());
519461
onChanged();
520462
return this;
521463
}
@@ -530,17 +472,43 @@ public Builder mergeFrom(
530472
com.google.protobuf.CodedInputStream input,
531473
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
532474
throws java.io.IOException {
533-
com.google.cloud.dataproc.v1.AcceleratorConfig parsedMessage = null;
475+
if (extensionRegistry == null) {
476+
throw new java.lang.NullPointerException();
477+
}
534478
try {
535-
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
479+
boolean done = false;
480+
while (!done) {
481+
int tag = input.readTag();
482+
switch (tag) {
483+
case 0:
484+
done = true;
485+
break;
486+
case 10:
487+
{
488+
acceleratorTypeUri_ = input.readStringRequireUtf8();
489+
490+
break;
491+
} // case 10
492+
case 16:
493+
{
494+
acceleratorCount_ = input.readInt32();
495+
496+
break;
497+
} // case 16
498+
default:
499+
{
500+
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
501+
done = true; // was an endgroup tag
502+
}
503+
break;
504+
} // default:
505+
} // switch (tag)
506+
} // while (!done)
536507
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
537-
parsedMessage = (com.google.cloud.dataproc.v1.AcceleratorConfig) e.getUnfinishedMessage();
538508
throw e.unwrapIOException();
539509
} finally {
540-
if (parsedMessage != null) {
541-
mergeFrom(parsedMessage);
542-
}
543-
}
510+
onChanged();
511+
} // finally
544512
return this;
545513
}
546514

@@ -794,7 +762,18 @@ public AcceleratorConfig parsePartialFrom(
794762
com.google.protobuf.CodedInputStream input,
795763
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
796764
throws com.google.protobuf.InvalidProtocolBufferException {
797-
return new AcceleratorConfig(input, extensionRegistry);
765+
Builder builder = newBuilder();
766+
try {
767+
builder.mergeFrom(input, extensionRegistry);
768+
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
769+
throw e.setUnfinishedMessage(builder.buildPartial());
770+
} catch (com.google.protobuf.UninitializedMessageException e) {
771+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
772+
} catch (java.io.IOException e) {
773+
throw new com.google.protobuf.InvalidProtocolBufferException(e)
774+
.setUnfinishedMessage(builder.buildPartial());
775+
}
776+
return builder.buildPartial();
798777
}
799778
};
800779

java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfig.java

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

55-
private AutoscalingConfig(
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-
policyUri_ = s;
78-
break;
79-
}
80-
default:
81-
{
82-
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
83-
done = true;
84-
}
85-
break;
86-
}
87-
}
88-
}
89-
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
90-
throw e.setUnfinishedMessage(this);
91-
} catch (com.google.protobuf.UninitializedMessageException e) {
92-
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
93-
} catch (java.io.IOException e) {
94-
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
95-
} finally {
96-
this.unknownFields = unknownFields.build();
97-
makeExtensionsImmutable();
98-
}
99-
}
100-
10155
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
10256
return com.google.cloud.dataproc.v1.ClustersProto
10357
.internal_static_google_cloud_dataproc_v1_AutoscalingConfig_descriptor;
@@ -189,7 +143,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
189143
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyUri_)) {
190144
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, policyUri_);
191145
}
192-
unknownFields.writeTo(output);
146+
getUnknownFields().writeTo(output);
193147
}
194148

195149
@java.lang.Override
@@ -201,7 +155,7 @@ public int getSerializedSize() {
201155
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyUri_)) {
202156
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, policyUri_);
203157
}
204-
size += unknownFields.getSerializedSize();
158+
size += getUnknownFields().getSerializedSize();
205159
memoizedSize = size;
206160
return size;
207161
}
@@ -218,7 +172,7 @@ public boolean equals(final java.lang.Object obj) {
218172
(com.google.cloud.dataproc.v1.AutoscalingConfig) obj;
219173

220174
if (!getPolicyUri().equals(other.getPolicyUri())) return false;
221-
if (!unknownFields.equals(other.unknownFields)) return false;
175+
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
222176
return true;
223177
}
224178

@@ -231,7 +185,7 @@ public int hashCode() {
231185
hash = (19 * hash) + getDescriptor().hashCode();
232186
hash = (37 * hash) + POLICY_URI_FIELD_NUMBER;
233187
hash = (53 * hash) + getPolicyUri().hashCode();
234-
hash = (29 * hash) + unknownFields.hashCode();
188+
hash = (29 * hash) + getUnknownFields().hashCode();
235189
memoizedHashCode = hash;
236190
return hash;
237191
}
@@ -360,17 +314,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
360314
}
361315

362316
// Construct using com.google.cloud.dataproc.v1.AutoscalingConfig.newBuilder()
363-
private Builder() {
364-
maybeForceBuilderInitialization();
365-
}
317+
private Builder() {}
366318

367319
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
368320
super(parent);
369-
maybeForceBuilderInitialization();
370-
}
371-
372-
private void maybeForceBuilderInitialization() {
373-
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
374321
}
375322

376323
@java.lang.Override
@@ -459,7 +406,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.AutoscalingConfig other) {
459406
policyUri_ = other.policyUri_;
460407
onChanged();
461408
}
462-
this.mergeUnknownFields(other.unknownFields);
409+
this.mergeUnknownFields(other.getUnknownFields());
463410
onChanged();
464411
return this;
465412
}
@@ -474,17 +421,37 @@ public Builder mergeFrom(
474421
com.google.protobuf.CodedInputStream input,
475422
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
476423
throws java.io.IOException {
477-
com.google.cloud.dataproc.v1.AutoscalingConfig parsedMessage = null;
424+
if (extensionRegistry == null) {
425+
throw new java.lang.NullPointerException();
426+
}
478427
try {
479-
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
428+
boolean done = false;
429+
while (!done) {
430+
int tag = input.readTag();
431+
switch (tag) {
432+
case 0:
433+
done = true;
434+
break;
435+
case 10:
436+
{
437+
policyUri_ = input.readStringRequireUtf8();
438+
439+
break;
440+
} // case 10
441+
default:
442+
{
443+
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
444+
done = true; // was an endgroup tag
445+
}
446+
break;
447+
} // default:
448+
} // switch (tag)
449+
} // while (!done)
480450
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
481-
parsedMessage = (com.google.cloud.dataproc.v1.AutoscalingConfig) e.getUnfinishedMessage();
482451
throw e.unwrapIOException();
483452
} finally {
484-
if (parsedMessage != null) {
485-
mergeFrom(parsedMessage);
486-
}
487-
}
453+
onChanged();
454+
} // finally
488455
return this;
489456
}
490457

@@ -651,7 +618,18 @@ public AutoscalingConfig parsePartialFrom(
651618
com.google.protobuf.CodedInputStream input,
652619
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
653620
throws com.google.protobuf.InvalidProtocolBufferException {
654-
return new AutoscalingConfig(input, extensionRegistry);
621+
Builder builder = newBuilder();
622+
try {
623+
builder.mergeFrom(input, extensionRegistry);
624+
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
625+
throw e.setUnfinishedMessage(builder.buildPartial());
626+
} catch (com.google.protobuf.UninitializedMessageException e) {
627+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
628+
} catch (java.io.IOException e) {
629+
throw new com.google.protobuf.InvalidProtocolBufferException(e)
630+
.setUnfinishedMessage(builder.buildPartial());
631+
}
632+
return builder.buildPartial();
655633
}
656634
};
657635

0 commit comments

Comments
 (0)