@@ -53,60 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
53
53
return this .unknownFields ;
54
54
}
55
55
56
- private AnalyzeIamPolicyLongrunningMetadata (
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
- com .google .protobuf .Timestamp .Builder subBuilder = null ;
77
- if (createTime_ != null ) {
78
- subBuilder = createTime_ .toBuilder ();
79
- }
80
- createTime_ =
81
- input .readMessage (com .google .protobuf .Timestamp .parser (), extensionRegistry );
82
- if (subBuilder != null ) {
83
- subBuilder .mergeFrom (createTime_ );
84
- createTime_ = subBuilder .buildPartial ();
85
- }
86
-
87
- break ;
88
- }
89
- default :
90
- {
91
- if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
92
- done = true ;
93
- }
94
- break ;
95
- }
96
- }
97
- }
98
- } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
99
- throw e .setUnfinishedMessage (this );
100
- } catch (com .google .protobuf .UninitializedMessageException e ) {
101
- throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (this );
102
- } catch (java .io .IOException e ) {
103
- throw new com .google .protobuf .InvalidProtocolBufferException (e ).setUnfinishedMessage (this );
104
- } finally {
105
- this .unknownFields = unknownFields .build ();
106
- makeExtensionsImmutable ();
107
- }
108
- }
109
-
110
56
public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
111
57
return com .google .cloud .asset .v1 .AssetServiceProto
112
58
.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningMetadata_descriptor ;
@@ -188,7 +134,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
188
134
if (createTime_ != null ) {
189
135
output .writeMessage (1 , getCreateTime ());
190
136
}
191
- unknownFields .writeTo (output );
137
+ getUnknownFields () .writeTo (output );
192
138
}
193
139
194
140
@ java .lang .Override
@@ -200,7 +146,7 @@ public int getSerializedSize() {
200
146
if (createTime_ != null ) {
201
147
size += com .google .protobuf .CodedOutputStream .computeMessageSize (1 , getCreateTime ());
202
148
}
203
- size += unknownFields .getSerializedSize ();
149
+ size += getUnknownFields () .getSerializedSize ();
204
150
memoizedSize = size ;
205
151
return size ;
206
152
}
@@ -220,7 +166,7 @@ public boolean equals(final java.lang.Object obj) {
220
166
if (hasCreateTime ()) {
221
167
if (!getCreateTime ().equals (other .getCreateTime ())) return false ;
222
168
}
223
- if (!unknownFields .equals (other .unknownFields )) return false ;
169
+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
224
170
return true ;
225
171
}
226
172
@@ -235,7 +181,7 @@ public int hashCode() {
235
181
hash = (37 * hash ) + CREATE_TIME_FIELD_NUMBER ;
236
182
hash = (53 * hash ) + getCreateTime ().hashCode ();
237
183
}
238
- hash = (29 * hash ) + unknownFields .hashCode ();
184
+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
239
185
memoizedHashCode = hash ;
240
186
return hash ;
241
187
}
@@ -366,17 +312,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
366
312
}
367
313
368
314
// Construct using com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata.newBuilder()
369
- private Builder () {
370
- maybeForceBuilderInitialization ();
371
- }
315
+ private Builder () {}
372
316
373
317
private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
374
318
super (parent );
375
- maybeForceBuilderInitialization ();
376
- }
377
-
378
- private void maybeForceBuilderInitialization () {
379
- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
380
319
}
381
320
382
321
@ java .lang .Override
@@ -475,7 +414,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMe
475
414
if (other .hasCreateTime ()) {
476
415
mergeCreateTime (other .getCreateTime ());
477
416
}
478
- this .mergeUnknownFields (other .unknownFields );
417
+ this .mergeUnknownFields (other .getUnknownFields () );
479
418
onChanged ();
480
419
return this ;
481
420
}
@@ -490,19 +429,37 @@ public Builder mergeFrom(
490
429
com .google .protobuf .CodedInputStream input ,
491
430
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
492
431
throws java .io .IOException {
493
- com .google .cloud .asset .v1 .AnalyzeIamPolicyLongrunningMetadata parsedMessage = null ;
432
+ if (extensionRegistry == null ) {
433
+ throw new java .lang .NullPointerException ();
434
+ }
494
435
try {
495
- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
436
+ boolean done = false ;
437
+ while (!done ) {
438
+ int tag = input .readTag ();
439
+ switch (tag ) {
440
+ case 0 :
441
+ done = true ;
442
+ break ;
443
+ case 10 :
444
+ {
445
+ input .readMessage (getCreateTimeFieldBuilder ().getBuilder (), extensionRegistry );
446
+
447
+ break ;
448
+ } // case 10
449
+ default :
450
+ {
451
+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
452
+ done = true ; // was an endgroup tag
453
+ }
454
+ break ;
455
+ } // default:
456
+ } // switch (tag)
457
+ } // while (!done)
496
458
} catch (com .google .protobuf .InvalidProtocolBufferException e ) {
497
- parsedMessage =
498
- (com .google .cloud .asset .v1 .AnalyzeIamPolicyLongrunningMetadata )
499
- e .getUnfinishedMessage ();
500
459
throw e .unwrapIOException ();
501
460
} finally {
502
- if (parsedMessage != null ) {
503
- mergeFrom (parsedMessage );
504
- }
505
- }
461
+ onChanged ();
462
+ } // finally
506
463
return this ;
507
464
}
508
465
@@ -740,7 +697,18 @@ public AnalyzeIamPolicyLongrunningMetadata parsePartialFrom(
740
697
com .google .protobuf .CodedInputStream input ,
741
698
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
742
699
throws com .google .protobuf .InvalidProtocolBufferException {
743
- return new AnalyzeIamPolicyLongrunningMetadata (input , extensionRegistry );
700
+ Builder builder = newBuilder ();
701
+ try {
702
+ builder .mergeFrom (input , extensionRegistry );
703
+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
704
+ throw e .setUnfinishedMessage (builder .buildPartial ());
705
+ } catch (com .google .protobuf .UninitializedMessageException e ) {
706
+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
707
+ } catch (java .io .IOException e ) {
708
+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
709
+ .setUnfinishedMessage (builder .buildPartial ());
710
+ }
711
+ return builder .buildPartial ();
744
712
}
745
713
};
746
714
0 commit comments