Skip to content

Commit 18d422b

Browse files
chore(bazel): update protobuf to v3.21.7 (googleapis#761)
- [ ] 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 d7a1eb6 commit 18d422b

File tree

9 files changed

+595
-881
lines changed

9 files changed

+595
-881
lines changed

java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/OsLoginProto.java

Lines changed: 170 additions & 219 deletions
Large diffs are not rendered by default.

java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/DeletePosixAccountRequest.java

Lines changed: 45 additions & 68 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 DeletePosixAccountRequest(
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-
name_ = 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.oslogin.v1.OsLoginProto
10357
.internal_static_google_cloud_oslogin_v1_DeletePosixAccountRequest_descriptor;
@@ -187,7 +141,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
187141
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
188142
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
189143
}
190-
unknownFields.writeTo(output);
144+
getUnknownFields().writeTo(output);
191145
}
192146

193147
@java.lang.Override
@@ -199,7 +153,7 @@ public int getSerializedSize() {
199153
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
200154
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
201155
}
202-
size += unknownFields.getSerializedSize();
156+
size += getUnknownFields().getSerializedSize();
203157
memoizedSize = size;
204158
return size;
205159
}
@@ -216,7 +170,7 @@ public boolean equals(final java.lang.Object obj) {
216170
(com.google.cloud.oslogin.v1.DeletePosixAccountRequest) obj;
217171

218172
if (!getName().equals(other.getName())) return false;
219-
if (!unknownFields.equals(other.unknownFields)) return false;
173+
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
220174
return true;
221175
}
222176

@@ -229,7 +183,7 @@ public int hashCode() {
229183
hash = (19 * hash) + getDescriptor().hashCode();
230184
hash = (37 * hash) + NAME_FIELD_NUMBER;
231185
hash = (53 * hash) + getName().hashCode();
232-
hash = (29 * hash) + unknownFields.hashCode();
186+
hash = (29 * hash) + getUnknownFields().hashCode();
233187
memoizedHashCode = hash;
234188
return hash;
235189
}
@@ -359,17 +313,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
359313
}
360314

361315
// Construct using com.google.cloud.oslogin.v1.DeletePosixAccountRequest.newBuilder()
362-
private Builder() {
363-
maybeForceBuilderInitialization();
364-
}
316+
private Builder() {}
365317

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

375322
@java.lang.Override
@@ -459,7 +406,7 @@ public Builder mergeFrom(com.google.cloud.oslogin.v1.DeletePosixAccountRequest o
459406
name_ = other.name_;
460407
onChanged();
461408
}
462-
this.mergeUnknownFields(other.unknownFields);
409+
this.mergeUnknownFields(other.getUnknownFields());
463410
onChanged();
464411
return this;
465412
}
@@ -474,18 +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.oslogin.v1.DeletePosixAccountRequest 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+
name_ = 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 =
482-
(com.google.cloud.oslogin.v1.DeletePosixAccountRequest) e.getUnfinishedMessage();
483451
throw e.unwrapIOException();
484452
} finally {
485-
if (parsedMessage != null) {
486-
mergeFrom(parsedMessage);
487-
}
488-
}
453+
onChanged();
454+
} // finally
489455
return this;
490456
}
491457

@@ -647,7 +613,18 @@ public DeletePosixAccountRequest parsePartialFrom(
647613
com.google.protobuf.CodedInputStream input,
648614
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
649615
throws com.google.protobuf.InvalidProtocolBufferException {
650-
return new DeletePosixAccountRequest(input, extensionRegistry);
616+
Builder builder = newBuilder();
617+
try {
618+
builder.mergeFrom(input, extensionRegistry);
619+
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
620+
throw e.setUnfinishedMessage(builder.buildPartial());
621+
} catch (com.google.protobuf.UninitializedMessageException e) {
622+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
623+
} catch (java.io.IOException e) {
624+
throw new com.google.protobuf.InvalidProtocolBufferException(e)
625+
.setUnfinishedMessage(builder.buildPartial());
626+
}
627+
return builder.buildPartial();
651628
}
652629
};
653630

java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/DeleteSshPublicKeyRequest.java

Lines changed: 45 additions & 68 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 DeleteSshPublicKeyRequest(
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-
name_ = 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.oslogin.v1.OsLoginProto
10357
.internal_static_google_cloud_oslogin_v1_DeleteSshPublicKeyRequest_descriptor;
@@ -187,7 +141,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
187141
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
188142
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
189143
}
190-
unknownFields.writeTo(output);
144+
getUnknownFields().writeTo(output);
191145
}
192146

193147
@java.lang.Override
@@ -199,7 +153,7 @@ public int getSerializedSize() {
199153
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
200154
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
201155
}
202-
size += unknownFields.getSerializedSize();
156+
size += getUnknownFields().getSerializedSize();
203157
memoizedSize = size;
204158
return size;
205159
}
@@ -216,7 +170,7 @@ public boolean equals(final java.lang.Object obj) {
216170
(com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest) obj;
217171

218172
if (!getName().equals(other.getName())) return false;
219-
if (!unknownFields.equals(other.unknownFields)) return false;
173+
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
220174
return true;
221175
}
222176

@@ -229,7 +183,7 @@ public int hashCode() {
229183
hash = (19 * hash) + getDescriptor().hashCode();
230184
hash = (37 * hash) + NAME_FIELD_NUMBER;
231185
hash = (53 * hash) + getName().hashCode();
232-
hash = (29 * hash) + unknownFields.hashCode();
186+
hash = (29 * hash) + getUnknownFields().hashCode();
233187
memoizedHashCode = hash;
234188
return hash;
235189
}
@@ -359,17 +313,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
359313
}
360314

361315
// Construct using com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest.newBuilder()
362-
private Builder() {
363-
maybeForceBuilderInitialization();
364-
}
316+
private Builder() {}
365317

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

375322
@java.lang.Override
@@ -459,7 +406,7 @@ public Builder mergeFrom(com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest o
459406
name_ = other.name_;
460407
onChanged();
461408
}
462-
this.mergeUnknownFields(other.unknownFields);
409+
this.mergeUnknownFields(other.getUnknownFields());
463410
onChanged();
464411
return this;
465412
}
@@ -474,18 +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.oslogin.v1.DeleteSshPublicKeyRequest 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+
name_ = 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 =
482-
(com.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest) e.getUnfinishedMessage();
483451
throw e.unwrapIOException();
484452
} finally {
485-
if (parsedMessage != null) {
486-
mergeFrom(parsedMessage);
487-
}
488-
}
453+
onChanged();
454+
} // finally
489455
return this;
490456
}
491457

@@ -647,7 +613,18 @@ public DeleteSshPublicKeyRequest parsePartialFrom(
647613
com.google.protobuf.CodedInputStream input,
648614
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
649615
throws com.google.protobuf.InvalidProtocolBufferException {
650-
return new DeleteSshPublicKeyRequest(input, extensionRegistry);
616+
Builder builder = newBuilder();
617+
try {
618+
builder.mergeFrom(input, extensionRegistry);
619+
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
620+
throw e.setUnfinishedMessage(builder.buildPartial());
621+
} catch (com.google.protobuf.UninitializedMessageException e) {
622+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
623+
} catch (java.io.IOException e) {
624+
throw new com.google.protobuf.InvalidProtocolBufferException(e)
625+
.setUnfinishedMessage(builder.buildPartial());
626+
}
627+
return builder.buildPartial();
651628
}
652629
};
653630

0 commit comments

Comments
 (0)