@@ -53,59 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
53
53
return this .unknownFields ;
54
54
}
55
55
56
- private CreateFolderMetadata (
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
- com .google .protobuf .UnknownFieldSet .Builder unknownFields =
65
- com .google .protobuf .UnknownFieldSet .newBuilder ();
66
- try {
67
- boolean done = false ;
68
- while (!done ) {
69
- int tag = input .readTag ();
70
- switch (tag ) {
71
- case 0 :
72
- done = true ;
73
- break ;
74
- case 10 :
75
- {
76
- java .lang .String s = input .readStringRequireUtf8 ();
77
-
78
- displayName_ = s ;
79
- break ;
80
- }
81
- case 18 :
82
- {
83
- java .lang .String s = input .readStringRequireUtf8 ();
84
-
85
- parent_ = s ;
86
- break ;
87
- }
88
- default :
89
- {
90
- if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
91
- done = true ;
92
- }
93
- break ;
94
- }
95
- }
96
- }
97
- } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
98
- throw e .setUnfinishedMessage (this );
99
- } catch (com .google .protobuf .UninitializedMessageException e ) {
100
- throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (this );
101
- } catch (java .io .IOException e ) {
102
- throw new com .google .protobuf .InvalidProtocolBufferException (e ).setUnfinishedMessage (this );
103
- } finally {
104
- this .unknownFields = unknownFields .build ();
105
- makeExtensionsImmutable ();
106
- }
107
- }
108
-
109
56
public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
110
57
return com .google .cloud .resourcemanager .v3 .FoldersProto
111
58
.internal_static_google_cloud_resourcemanager_v3_CreateFolderMetadata_descriptor ;
@@ -241,7 +188,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
241
188
if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (parent_ )) {
242
189
com .google .protobuf .GeneratedMessageV3 .writeString (output , 2 , parent_ );
243
190
}
244
- unknownFields .writeTo (output );
191
+ getUnknownFields () .writeTo (output );
245
192
}
246
193
247
194
@ java .lang .Override
@@ -256,7 +203,7 @@ public int getSerializedSize() {
256
203
if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (parent_ )) {
257
204
size += com .google .protobuf .GeneratedMessageV3 .computeStringSize (2 , parent_ );
258
205
}
259
- size += unknownFields .getSerializedSize ();
206
+ size += getUnknownFields () .getSerializedSize ();
260
207
memoizedSize = size ;
261
208
return size ;
262
209
}
@@ -274,7 +221,7 @@ public boolean equals(final java.lang.Object obj) {
274
221
275
222
if (!getDisplayName ().equals (other .getDisplayName ())) return false ;
276
223
if (!getParent ().equals (other .getParent ())) return false ;
277
- if (!unknownFields .equals (other .unknownFields )) return false ;
224
+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
278
225
return true ;
279
226
}
280
227
@@ -289,7 +236,7 @@ public int hashCode() {
289
236
hash = (53 * hash ) + getDisplayName ().hashCode ();
290
237
hash = (37 * hash ) + PARENT_FIELD_NUMBER ;
291
238
hash = (53 * hash ) + getParent ().hashCode ();
292
- hash = (29 * hash ) + unknownFields .hashCode ();
239
+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
293
240
memoizedHashCode = hash ;
294
241
return hash ;
295
242
}
@@ -419,17 +366,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
419
366
}
420
367
421
368
// Construct using com.google.cloud.resourcemanager.v3.CreateFolderMetadata.newBuilder()
422
- private Builder () {
423
- maybeForceBuilderInitialization ();
424
- }
369
+ private Builder () {}
425
370
426
371
private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
427
372
super (parent );
428
- maybeForceBuilderInitialization ();
429
- }
430
-
431
- private void maybeForceBuilderInitialization () {
432
- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
433
373
}
434
374
435
375
@ java .lang .Override
@@ -526,7 +466,7 @@ public Builder mergeFrom(com.google.cloud.resourcemanager.v3.CreateFolderMetadat
526
466
parent_ = other .parent_ ;
527
467
onChanged ();
528
468
}
529
- this .mergeUnknownFields (other .unknownFields );
469
+ this .mergeUnknownFields (other .getUnknownFields () );
530
470
onChanged ();
531
471
return this ;
532
472
}
@@ -541,18 +481,43 @@ public Builder mergeFrom(
541
481
com .google .protobuf .CodedInputStream input ,
542
482
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
543
483
throws java .io .IOException {
544
- com .google .cloud .resourcemanager .v3 .CreateFolderMetadata parsedMessage = null ;
484
+ if (extensionRegistry == null ) {
485
+ throw new java .lang .NullPointerException ();
486
+ }
545
487
try {
546
- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
488
+ boolean done = false ;
489
+ while (!done ) {
490
+ int tag = input .readTag ();
491
+ switch (tag ) {
492
+ case 0 :
493
+ done = true ;
494
+ break ;
495
+ case 10 :
496
+ {
497
+ displayName_ = input .readStringRequireUtf8 ();
498
+
499
+ break ;
500
+ } // case 10
501
+ case 18 :
502
+ {
503
+ parent_ = input .readStringRequireUtf8 ();
504
+
505
+ break ;
506
+ } // case 18
507
+ default :
508
+ {
509
+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
510
+ done = true ; // was an endgroup tag
511
+ }
512
+ break ;
513
+ } // default:
514
+ } // switch (tag)
515
+ } // while (!done)
547
516
} catch (com .google .protobuf .InvalidProtocolBufferException e ) {
548
- parsedMessage =
549
- (com .google .cloud .resourcemanager .v3 .CreateFolderMetadata ) e .getUnfinishedMessage ();
550
517
throw e .unwrapIOException ();
551
518
} finally {
552
- if (parsedMessage != null ) {
553
- mergeFrom (parsedMessage );
554
- }
555
- }
519
+ onChanged ();
520
+ } // finally
556
521
return this ;
557
522
}
558
523
@@ -805,7 +770,18 @@ public CreateFolderMetadata parsePartialFrom(
805
770
com .google .protobuf .CodedInputStream input ,
806
771
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
807
772
throws com .google .protobuf .InvalidProtocolBufferException {
808
- return new CreateFolderMetadata (input , extensionRegistry );
773
+ Builder builder = newBuilder ();
774
+ try {
775
+ builder .mergeFrom (input , extensionRegistry );
776
+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
777
+ throw e .setUnfinishedMessage (builder .buildPartial ());
778
+ } catch (com .google .protobuf .UninitializedMessageException e ) {
779
+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
780
+ } catch (java .io .IOException e ) {
781
+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
782
+ .setUnfinishedMessage (builder .buildPartial ());
783
+ }
784
+ return builder .buildPartial ();
809
785
}
810
786
};
811
787
0 commit comments