@@ -54,6 +54,52 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5454 return this .unknownFields ;
5555 }
5656
57+ private Advice (
58+ com .google .protobuf .CodedInputStream input ,
59+ com .google .protobuf .ExtensionRegistryLite extensionRegistry )
60+ throws com .google .protobuf .InvalidProtocolBufferException {
61+ this ();
62+ if (extensionRegistry == null ) {
63+ throw new java .lang .NullPointerException ();
64+ }
65+ com .google .protobuf .UnknownFieldSet .Builder unknownFields =
66+ com .google .protobuf .UnknownFieldSet .newBuilder ();
67+ try {
68+ boolean done = false ;
69+ while (!done ) {
70+ int tag = input .readTag ();
71+ switch (tag ) {
72+ case 0 :
73+ done = true ;
74+ break ;
75+ case 18 :
76+ {
77+ java .lang .String s = input .readStringRequireUtf8 ();
78+
79+ description_ = s ;
80+ break ;
81+ }
82+ default :
83+ {
84+ if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
85+ done = true ;
86+ }
87+ break ;
88+ }
89+ }
90+ }
91+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
92+ throw e .setUnfinishedMessage (this );
93+ } catch (com .google .protobuf .UninitializedMessageException e ) {
94+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (this );
95+ } catch (java .io .IOException e ) {
96+ throw new com .google .protobuf .InvalidProtocolBufferException (e ).setUnfinishedMessage (this );
97+ } finally {
98+ this .unknownFields = unknownFields .build ();
99+ makeExtensionsImmutable ();
100+ }
101+ }
102+
57103 public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
58104 return com .google .api .ConfigChangeProto .internal_static_google_api_Advice_descriptor ;
59105 }
@@ -136,7 +182,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
136182 if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (description_ )) {
137183 com .google .protobuf .GeneratedMessageV3 .writeString (output , 2 , description_ );
138184 }
139- getUnknownFields () .writeTo (output );
185+ unknownFields .writeTo (output );
140186 }
141187
142188 @ java .lang .Override
@@ -148,7 +194,7 @@ public int getSerializedSize() {
148194 if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (description_ )) {
149195 size += com .google .protobuf .GeneratedMessageV3 .computeStringSize (2 , description_ );
150196 }
151- size += getUnknownFields () .getSerializedSize ();
197+ size += unknownFields .getSerializedSize ();
152198 memoizedSize = size ;
153199 return size ;
154200 }
@@ -164,7 +210,7 @@ public boolean equals(final java.lang.Object obj) {
164210 com .google .api .Advice other = (com .google .api .Advice ) obj ;
165211
166212 if (!getDescription ().equals (other .getDescription ())) return false ;
167- if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
213+ if (!unknownFields .equals (other .unknownFields )) return false ;
168214 return true ;
169215 }
170216
@@ -177,7 +223,7 @@ public int hashCode() {
177223 hash = (19 * hash ) + getDescriptor ().hashCode ();
178224 hash = (37 * hash ) + DESCRIPTION_FIELD_NUMBER ;
179225 hash = (53 * hash ) + getDescription ().hashCode ();
180- hash = (29 * hash ) + getUnknownFields () .hashCode ();
226+ hash = (29 * hash ) + unknownFields .hashCode ();
181227 memoizedHashCode = hash ;
182228 return hash ;
183229 }
@@ -304,10 +350,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
304350 }
305351
306352 // Construct using com.google.api.Advice.newBuilder()
307- private Builder () {}
353+ private Builder () {
354+ maybeForceBuilderInitialization ();
355+ }
308356
309357 private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
310358 super (parent );
359+ maybeForceBuilderInitialization ();
360+ }
361+
362+ private void maybeForceBuilderInitialization () {
363+ if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
311364 }
312365
313366 @ java .lang .Override
@@ -394,7 +447,7 @@ public Builder mergeFrom(com.google.api.Advice other) {
394447 description_ = other .description_ ;
395448 onChanged ();
396449 }
397- this .mergeUnknownFields (other .getUnknownFields () );
450+ this .mergeUnknownFields (other .unknownFields );
398451 onChanged ();
399452 return this ;
400453 }
@@ -409,37 +462,17 @@ public Builder mergeFrom(
409462 com .google .protobuf .CodedInputStream input ,
410463 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
411464 throws java .io .IOException {
412- if (extensionRegistry == null ) {
413- throw new java .lang .NullPointerException ();
414- }
465+ com .google .api .Advice parsedMessage = null ;
415466 try {
416- boolean done = false ;
417- while (!done ) {
418- int tag = input .readTag ();
419- switch (tag ) {
420- case 0 :
421- done = true ;
422- break ;
423- case 18 :
424- {
425- description_ = input .readStringRequireUtf8 ();
426-
427- break ;
428- } // case 18
429- default :
430- {
431- if (!super .parseUnknownField (input , extensionRegistry , tag )) {
432- done = true ; // was an endgroup tag
433- }
434- break ;
435- } // default:
436- } // switch (tag)
437- } // while (!done)
467+ parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
438468 } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
469+ parsedMessage = (com .google .api .Advice ) e .getUnfinishedMessage ();
439470 throw e .unwrapIOException ();
440471 } finally {
441- onChanged ();
442- } // finally
472+ if (parsedMessage != null ) {
473+ mergeFrom (parsedMessage );
474+ }
475+ }
443476 return this ;
444477 }
445478
@@ -591,18 +624,7 @@ public Advice parsePartialFrom(
591624 com .google .protobuf .CodedInputStream input ,
592625 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
593626 throws com .google .protobuf .InvalidProtocolBufferException {
594- Builder builder = newBuilder ();
595- try {
596- builder .mergeFrom (input , extensionRegistry );
597- } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
598- throw e .setUnfinishedMessage (builder .buildPartial ());
599- } catch (com .google .protobuf .UninitializedMessageException e ) {
600- throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
601- } catch (java .io .IOException e ) {
602- throw new com .google .protobuf .InvalidProtocolBufferException (e )
603- .setUnfinishedMessage (builder .buildPartial ());
604- }
605- return builder .buildPartial ();
627+ return new Advice (input , extensionRegistry );
606628 }
607629 };
608630
0 commit comments