@@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
52
52
return this .unknownFields ;
53
53
}
54
54
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
-
101
55
public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
102
56
return com .google .cloud .oslogin .v1 .OsLoginProto
103
57
.internal_static_google_cloud_oslogin_v1_DeletePosixAccountRequest_descriptor ;
@@ -187,7 +141,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
187
141
if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (name_ )) {
188
142
com .google .protobuf .GeneratedMessageV3 .writeString (output , 1 , name_ );
189
143
}
190
- unknownFields .writeTo (output );
144
+ getUnknownFields () .writeTo (output );
191
145
}
192
146
193
147
@ java .lang .Override
@@ -199,7 +153,7 @@ public int getSerializedSize() {
199
153
if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (name_ )) {
200
154
size += com .google .protobuf .GeneratedMessageV3 .computeStringSize (1 , name_ );
201
155
}
202
- size += unknownFields .getSerializedSize ();
156
+ size += getUnknownFields () .getSerializedSize ();
203
157
memoizedSize = size ;
204
158
return size ;
205
159
}
@@ -216,7 +170,7 @@ public boolean equals(final java.lang.Object obj) {
216
170
(com .google .cloud .oslogin .v1 .DeletePosixAccountRequest ) obj ;
217
171
218
172
if (!getName ().equals (other .getName ())) return false ;
219
- if (!unknownFields .equals (other .unknownFields )) return false ;
173
+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
220
174
return true ;
221
175
}
222
176
@@ -229,7 +183,7 @@ public int hashCode() {
229
183
hash = (19 * hash ) + getDescriptor ().hashCode ();
230
184
hash = (37 * hash ) + NAME_FIELD_NUMBER ;
231
185
hash = (53 * hash ) + getName ().hashCode ();
232
- hash = (29 * hash ) + unknownFields .hashCode ();
186
+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
233
187
memoizedHashCode = hash ;
234
188
return hash ;
235
189
}
@@ -359,17 +313,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
359
313
}
360
314
361
315
// Construct using com.google.cloud.oslogin.v1.DeletePosixAccountRequest.newBuilder()
362
- private Builder () {
363
- maybeForceBuilderInitialization ();
364
- }
316
+ private Builder () {}
365
317
366
318
private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
367
319
super (parent );
368
- maybeForceBuilderInitialization ();
369
- }
370
-
371
- private void maybeForceBuilderInitialization () {
372
- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
373
320
}
374
321
375
322
@ java .lang .Override
@@ -459,7 +406,7 @@ public Builder mergeFrom(com.google.cloud.oslogin.v1.DeletePosixAccountRequest o
459
406
name_ = other .name_ ;
460
407
onChanged ();
461
408
}
462
- this .mergeUnknownFields (other .unknownFields );
409
+ this .mergeUnknownFields (other .getUnknownFields () );
463
410
onChanged ();
464
411
return this ;
465
412
}
@@ -474,18 +421,37 @@ public Builder mergeFrom(
474
421
com .google .protobuf .CodedInputStream input ,
475
422
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
476
423
throws java .io .IOException {
477
- com .google .cloud .oslogin .v1 .DeletePosixAccountRequest parsedMessage = null ;
424
+ if (extensionRegistry == null ) {
425
+ throw new java .lang .NullPointerException ();
426
+ }
478
427
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)
480
450
} catch (com .google .protobuf .InvalidProtocolBufferException e ) {
481
- parsedMessage =
482
- (com .google .cloud .oslogin .v1 .DeletePosixAccountRequest ) e .getUnfinishedMessage ();
483
451
throw e .unwrapIOException ();
484
452
} finally {
485
- if (parsedMessage != null ) {
486
- mergeFrom (parsedMessage );
487
- }
488
- }
453
+ onChanged ();
454
+ } // finally
489
455
return this ;
490
456
}
491
457
@@ -647,7 +613,18 @@ public DeletePosixAccountRequest parsePartialFrom(
647
613
com .google .protobuf .CodedInputStream input ,
648
614
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
649
615
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 ();
651
628
}
652
629
};
653
630
0 commit comments