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

Commit cbba028

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

File tree

279 files changed

+20239
-30808
lines changed

Some content is hidden

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

279 files changed

+20239
-30808
lines changed

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

Lines changed: 63 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -53,81 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5353
return this.unknownFields;
5454
}
5555

56-
private AcceleratorConfig(
57-
com.google.protobuf.CodedInputStream input,
58-
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
59-
throws com.google.protobuf.InvalidProtocolBufferException {
60-
this();
61-
if (extensionRegistry == null) {
62-
throw new java.lang.NullPointerException();
63-
}
64-
int mutable_bitField0_ = 0;
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 8:
76-
{
77-
acceleratorCount_ = input.readInt64();
78-
break;
79-
}
80-
case 18:
81-
{
82-
java.lang.String s = input.readStringRequireUtf8();
83-
84-
acceleratorType_ = s;
85-
break;
86-
}
87-
case 26:
88-
{
89-
java.lang.String s = input.readStringRequireUtf8();
90-
91-
gpuPartitionSize_ = s;
92-
break;
93-
}
94-
case 42:
95-
{
96-
com.google.container.v1.GPUSharingConfig.Builder subBuilder = null;
97-
if (((bitField0_ & 0x00000001) != 0)) {
98-
subBuilder = gpuSharingConfig_.toBuilder();
99-
}
100-
gpuSharingConfig_ =
101-
input.readMessage(
102-
com.google.container.v1.GPUSharingConfig.parser(), extensionRegistry);
103-
if (subBuilder != null) {
104-
subBuilder.mergeFrom(gpuSharingConfig_);
105-
gpuSharingConfig_ = subBuilder.buildPartial();
106-
}
107-
bitField0_ |= 0x00000001;
108-
break;
109-
}
110-
default:
111-
{
112-
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
113-
done = true;
114-
}
115-
break;
116-
}
117-
}
118-
}
119-
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
120-
throw e.setUnfinishedMessage(this);
121-
} catch (com.google.protobuf.UninitializedMessageException e) {
122-
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
123-
} catch (java.io.IOException e) {
124-
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
125-
} finally {
126-
this.unknownFields = unknownFields.build();
127-
makeExtensionsImmutable();
128-
}
129-
}
130-
13156
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
13257
return com.google.container.v1.ClusterServiceProto
13358
.internal_static_google_container_v1_AcceleratorConfig_descriptor;
@@ -342,7 +267,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
342267
if (((bitField0_ & 0x00000001) != 0)) {
343268
output.writeMessage(5, getGpuSharingConfig());
344269
}
345-
unknownFields.writeTo(output);
270+
getUnknownFields().writeTo(output);
346271
}
347272

348273
@java.lang.Override
@@ -363,7 +288,7 @@ public int getSerializedSize() {
363288
if (((bitField0_ & 0x00000001) != 0)) {
364289
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getGpuSharingConfig());
365290
}
366-
size += unknownFields.getSerializedSize();
291+
size += getUnknownFields().getSerializedSize();
367292
memoizedSize = size;
368293
return size;
369294
}
@@ -386,7 +311,7 @@ public boolean equals(final java.lang.Object obj) {
386311
if (hasGpuSharingConfig()) {
387312
if (!getGpuSharingConfig().equals(other.getGpuSharingConfig())) return false;
388313
}
389-
if (!unknownFields.equals(other.unknownFields)) return false;
314+
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
390315
return true;
391316
}
392317

@@ -407,7 +332,7 @@ public int hashCode() {
407332
hash = (37 * hash) + GPU_SHARING_CONFIG_FIELD_NUMBER;
408333
hash = (53 * hash) + getGpuSharingConfig().hashCode();
409334
}
410-
hash = (29 * hash) + unknownFields.hashCode();
335+
hash = (29 * hash) + getUnknownFields().hashCode();
411336
memoizedHashCode = hash;
412337
return hash;
413338
}
@@ -670,7 +595,7 @@ public Builder mergeFrom(com.google.container.v1.AcceleratorConfig other) {
670595
if (other.hasGpuSharingConfig()) {
671596
mergeGpuSharingConfig(other.getGpuSharingConfig());
672597
}
673-
this.mergeUnknownFields(other.unknownFields);
598+
this.mergeUnknownFields(other.getUnknownFields());
674599
onChanged();
675600
return this;
676601
}
@@ -685,17 +610,56 @@ public Builder mergeFrom(
685610
com.google.protobuf.CodedInputStream input,
686611
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
687612
throws java.io.IOException {
688-
com.google.container.v1.AcceleratorConfig parsedMessage = null;
613+
if (extensionRegistry == null) {
614+
throw new java.lang.NullPointerException();
615+
}
689616
try {
690-
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
617+
boolean done = false;
618+
while (!done) {
619+
int tag = input.readTag();
620+
switch (tag) {
621+
case 0:
622+
done = true;
623+
break;
624+
case 8:
625+
{
626+
acceleratorCount_ = input.readInt64();
627+
628+
break;
629+
} // case 8
630+
case 18:
631+
{
632+
acceleratorType_ = input.readStringRequireUtf8();
633+
634+
break;
635+
} // case 18
636+
case 26:
637+
{
638+
gpuPartitionSize_ = input.readStringRequireUtf8();
639+
640+
break;
641+
} // case 26
642+
case 42:
643+
{
644+
input.readMessage(
645+
getGpuSharingConfigFieldBuilder().getBuilder(), extensionRegistry);
646+
bitField0_ |= 0x00000001;
647+
break;
648+
} // case 42
649+
default:
650+
{
651+
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
652+
done = true; // was an endgroup tag
653+
}
654+
break;
655+
} // default:
656+
} // switch (tag)
657+
} // while (!done)
691658
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
692-
parsedMessage = (com.google.container.v1.AcceleratorConfig) e.getUnfinishedMessage();
693659
throw e.unwrapIOException();
694660
} finally {
695-
if (parsedMessage != null) {
696-
mergeFrom(parsedMessage);
697-
}
698-
}
661+
onChanged();
662+
} // finally
699663
return this;
700664
}
701665

@@ -1199,7 +1163,18 @@ public AcceleratorConfig parsePartialFrom(
11991163
com.google.protobuf.CodedInputStream input,
12001164
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
12011165
throws com.google.protobuf.InvalidProtocolBufferException {
1202-
return new AcceleratorConfig(input, extensionRegistry);
1166+
Builder builder = newBuilder();
1167+
try {
1168+
builder.mergeFrom(input, extensionRegistry);
1169+
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
1170+
throw e.setUnfinishedMessage(builder.buildPartial());
1171+
} catch (com.google.protobuf.UninitializedMessageException e) {
1172+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1173+
} catch (java.io.IOException e) {
1174+
throw new com.google.protobuf.InvalidProtocolBufferException(e)
1175+
.setUnfinishedMessage(builder.buildPartial());
1176+
}
1177+
return builder.buildPartial();
12031178
}
12041179
};
12051180

0 commit comments

Comments
 (0)