@@ -53,50 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5353 return this .unknownFields ;
5454 }
5555
56- private Advice (
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 18 :
75- {
76- java .lang .String s = input .readStringRequireUtf8 ();
77-
78- description_ = s ;
79- break ;
80- }
81- default :
82- {
83- if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
84- done = true ;
85- }
86- break ;
87- }
88- }
89- }
90- } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
91- throw e .setUnfinishedMessage (this );
92- } catch (java .io .IOException e ) {
93- throw new com .google .protobuf .InvalidProtocolBufferException (e ).setUnfinishedMessage (this );
94- } finally {
95- this .unknownFields = unknownFields .build ();
96- makeExtensionsImmutable ();
97- }
98- }
99-
10056 public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
10157 return com .google .api .ConfigChangeProto .internal_static_google_api_Advice_descriptor ;
10258 }
@@ -177,7 +133,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
177133 if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (description_ )) {
178134 com .google .protobuf .GeneratedMessageV3 .writeString (output , 2 , description_ );
179135 }
180- unknownFields .writeTo (output );
136+ getUnknownFields () .writeTo (output );
181137 }
182138
183139 @ java .lang .Override
@@ -189,7 +145,7 @@ public int getSerializedSize() {
189145 if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (description_ )) {
190146 size += com .google .protobuf .GeneratedMessageV3 .computeStringSize (2 , description_ );
191147 }
192- size += unknownFields .getSerializedSize ();
148+ size += getUnknownFields () .getSerializedSize ();
193149 memoizedSize = size ;
194150 return size ;
195151 }
@@ -205,7 +161,7 @@ public boolean equals(final java.lang.Object obj) {
205161 com .google .api .Advice other = (com .google .api .Advice ) obj ;
206162
207163 if (!getDescription ().equals (other .getDescription ())) return false ;
208- if (!unknownFields .equals (other .unknownFields )) return false ;
164+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
209165 return true ;
210166 }
211167
@@ -218,7 +174,7 @@ public int hashCode() {
218174 hash = (19 * hash ) + getDescriptor ().hashCode ();
219175 hash = (37 * hash ) + DESCRIPTION_FIELD_NUMBER ;
220176 hash = (53 * hash ) + getDescription ().hashCode ();
221- hash = (29 * hash ) + unknownFields .hashCode ();
177+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
222178 memoizedHashCode = hash ;
223179 return hash ;
224180 }
@@ -344,17 +300,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
344300 }
345301
346302 // Construct using com.google.api.Advice.newBuilder()
347- private Builder () {
348- maybeForceBuilderInitialization ();
349- }
303+ private Builder () {}
350304
351305 private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
352306 super (parent );
353- maybeForceBuilderInitialization ();
354- }
355-
356- private void maybeForceBuilderInitialization () {
357- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
358307 }
359308
360309 @ java .lang .Override
@@ -441,7 +390,7 @@ public Builder mergeFrom(com.google.api.Advice other) {
441390 description_ = other .description_ ;
442391 onChanged ();
443392 }
444- this .mergeUnknownFields (other .unknownFields );
393+ this .mergeUnknownFields (other .getUnknownFields () );
445394 onChanged ();
446395 return this ;
447396 }
@@ -456,17 +405,37 @@ public Builder mergeFrom(
456405 com .google .protobuf .CodedInputStream input ,
457406 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
458407 throws java .io .IOException {
459- com .google .api .Advice parsedMessage = null ;
408+ if (extensionRegistry == null ) {
409+ throw new java .lang .NullPointerException ();
410+ }
460411 try {
461- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
412+ boolean done = false ;
413+ while (!done ) {
414+ int tag = input .readTag ();
415+ switch (tag ) {
416+ case 0 :
417+ done = true ;
418+ break ;
419+ case 18 :
420+ {
421+ description_ = input .readStringRequireUtf8 ();
422+
423+ break ;
424+ } // case 18
425+ default :
426+ {
427+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
428+ done = true ; // was an endgroup tag
429+ }
430+ break ;
431+ } // default:
432+ } // switch (tag)
433+ } // while (!done)
462434 } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
463- parsedMessage = (com .google .api .Advice ) e .getUnfinishedMessage ();
464435 throw e .unwrapIOException ();
465436 } finally {
466- if (parsedMessage != null ) {
467- mergeFrom (parsedMessage );
468- }
469- }
437+ onChanged ();
438+ } // finally
470439 return this ;
471440 }
472441
@@ -613,7 +582,18 @@ public Advice parsePartialFrom(
613582 com .google .protobuf .CodedInputStream input ,
614583 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
615584 throws com .google .protobuf .InvalidProtocolBufferException {
616- return new Advice (input , extensionRegistry );
585+ Builder builder = newBuilder ();
586+ try {
587+ builder .mergeFrom (input , extensionRegistry );
588+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
589+ throw e .setUnfinishedMessage (builder .buildPartial ());
590+ } catch (com .google .protobuf .UninitializedMessageException e ) {
591+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
592+ } catch (java .io .IOException e ) {
593+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
594+ .setUnfinishedMessage (builder .buildPartial ());
595+ }
596+ return builder .buildPartial ();
617597 }
618598 };
619599
0 commit comments