@@ -53,60 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5353 return this .unknownFields ;
5454 }
5555
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-
11056 public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
11157 return com .google .cloud .asset .v1 .AssetServiceProto
11258 .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningMetadata_descriptor ;
@@ -188,7 +134,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
188134 if (createTime_ != null ) {
189135 output .writeMessage (1 , getCreateTime ());
190136 }
191- unknownFields .writeTo (output );
137+ getUnknownFields () .writeTo (output );
192138 }
193139
194140 @ java .lang .Override
@@ -200,7 +146,7 @@ public int getSerializedSize() {
200146 if (createTime_ != null ) {
201147 size += com .google .protobuf .CodedOutputStream .computeMessageSize (1 , getCreateTime ());
202148 }
203- size += unknownFields .getSerializedSize ();
149+ size += getUnknownFields () .getSerializedSize ();
204150 memoizedSize = size ;
205151 return size ;
206152 }
@@ -220,7 +166,7 @@ public boolean equals(final java.lang.Object obj) {
220166 if (hasCreateTime ()) {
221167 if (!getCreateTime ().equals (other .getCreateTime ())) return false ;
222168 }
223- if (!unknownFields .equals (other .unknownFields )) return false ;
169+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
224170 return true ;
225171 }
226172
@@ -235,7 +181,7 @@ public int hashCode() {
235181 hash = (37 * hash ) + CREATE_TIME_FIELD_NUMBER ;
236182 hash = (53 * hash ) + getCreateTime ().hashCode ();
237183 }
238- hash = (29 * hash ) + unknownFields .hashCode ();
184+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
239185 memoizedHashCode = hash ;
240186 return hash ;
241187 }
@@ -366,17 +312,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
366312 }
367313
368314 // Construct using com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata.newBuilder()
369- private Builder () {
370- maybeForceBuilderInitialization ();
371- }
315+ private Builder () {}
372316
373317 private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
374318 super (parent );
375- maybeForceBuilderInitialization ();
376- }
377-
378- private void maybeForceBuilderInitialization () {
379- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
380319 }
381320
382321 @ java .lang .Override
@@ -475,7 +414,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMe
475414 if (other .hasCreateTime ()) {
476415 mergeCreateTime (other .getCreateTime ());
477416 }
478- this .mergeUnknownFields (other .unknownFields );
417+ this .mergeUnknownFields (other .getUnknownFields () );
479418 onChanged ();
480419 return this ;
481420 }
@@ -490,19 +429,37 @@ public Builder mergeFrom(
490429 com .google .protobuf .CodedInputStream input ,
491430 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
492431 throws java .io .IOException {
493- com .google .cloud .asset .v1 .AnalyzeIamPolicyLongrunningMetadata parsedMessage = null ;
432+ if (extensionRegistry == null ) {
433+ throw new java .lang .NullPointerException ();
434+ }
494435 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)
496458 } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
497- parsedMessage =
498- (com .google .cloud .asset .v1 .AnalyzeIamPolicyLongrunningMetadata )
499- e .getUnfinishedMessage ();
500459 throw e .unwrapIOException ();
501460 } finally {
502- if (parsedMessage != null ) {
503- mergeFrom (parsedMessage );
504- }
505- }
461+ onChanged ();
462+ } // finally
506463 return this ;
507464 }
508465
@@ -740,7 +697,18 @@ public AnalyzeIamPolicyLongrunningMetadata parsePartialFrom(
740697 com .google .protobuf .CodedInputStream input ,
741698 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
742699 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 ();
744712 }
745713 };
746714
0 commit comments