@@ -57,80 +57,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5757 return this .unknownFields ;
5858 }
5959
60- private ApiConfigHandler (
61- com .google .protobuf .CodedInputStream input ,
62- com .google .protobuf .ExtensionRegistryLite extensionRegistry )
63- throws com .google .protobuf .InvalidProtocolBufferException {
64- this ();
65- if (extensionRegistry == null ) {
66- throw new java .lang .NullPointerException ();
67- }
68- com .google .protobuf .UnknownFieldSet .Builder unknownFields =
69- com .google .protobuf .UnknownFieldSet .newBuilder ();
70- try {
71- boolean done = false ;
72- while (!done ) {
73- int tag = input .readTag ();
74- switch (tag ) {
75- case 0 :
76- done = true ;
77- break ;
78- case 8 :
79- {
80- int rawValue = input .readEnum ();
81-
82- authFailAction_ = rawValue ;
83- break ;
84- }
85- case 16 :
86- {
87- int rawValue = input .readEnum ();
88-
89- login_ = rawValue ;
90- break ;
91- }
92- case 26 :
93- {
94- java .lang .String s = input .readStringRequireUtf8 ();
95-
96- script_ = s ;
97- break ;
98- }
99- case 32 :
100- {
101- int rawValue = input .readEnum ();
102-
103- securityLevel_ = rawValue ;
104- break ;
105- }
106- case 42 :
107- {
108- java .lang .String s = input .readStringRequireUtf8 ();
109-
110- url_ = s ;
111- break ;
112- }
113- default :
114- {
115- if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
116- done = true ;
117- }
118- break ;
119- }
120- }
121- }
122- } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
123- throw e .setUnfinishedMessage (this );
124- } catch (com .google .protobuf .UninitializedMessageException e ) {
125- throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (this );
126- } catch (java .io .IOException e ) {
127- throw new com .google .protobuf .InvalidProtocolBufferException (e ).setUnfinishedMessage (this );
128- } finally {
129- this .unknownFields = unknownFields .build ();
130- makeExtensionsImmutable ();
131- }
132- }
133-
13460 public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
13561 return com .google .appengine .v1 .AppYamlProto
13662 .internal_static_google_appengine_v1_ApiConfigHandler_descriptor ;
@@ -386,7 +312,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
386312 if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (url_ )) {
387313 com .google .protobuf .GeneratedMessageV3 .writeString (output , 5 , url_ );
388314 }
389- unknownFields .writeTo (output );
315+ getUnknownFields () .writeTo (output );
390316 }
391317
392318 @ java .lang .Override
@@ -411,7 +337,7 @@ public int getSerializedSize() {
411337 if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (url_ )) {
412338 size += com .google .protobuf .GeneratedMessageV3 .computeStringSize (5 , url_ );
413339 }
414- size += unknownFields .getSerializedSize ();
340+ size += getUnknownFields () .getSerializedSize ();
415341 memoizedSize = size ;
416342 return size ;
417343 }
@@ -431,7 +357,7 @@ public boolean equals(final java.lang.Object obj) {
431357 if (!getScript ().equals (other .getScript ())) return false ;
432358 if (securityLevel_ != other .securityLevel_ ) return false ;
433359 if (!getUrl ().equals (other .getUrl ())) return false ;
434- if (!unknownFields .equals (other .unknownFields )) return false ;
360+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
435361 return true ;
436362 }
437363
@@ -452,7 +378,7 @@ public int hashCode() {
452378 hash = (53 * hash ) + securityLevel_ ;
453379 hash = (37 * hash ) + URL_FIELD_NUMBER ;
454380 hash = (53 * hash ) + getUrl ().hashCode ();
455- hash = (29 * hash ) + unknownFields .hashCode ();
381+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
456382 memoizedHashCode = hash ;
457383 return hash ;
458384 }
@@ -582,17 +508,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
582508 }
583509
584510 // Construct using com.google.appengine.v1.ApiConfigHandler.newBuilder()
585- private Builder () {
586- maybeForceBuilderInitialization ();
587- }
511+ private Builder () {}
588512
589513 private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
590514 super (parent );
591- maybeForceBuilderInitialization ();
592- }
593-
594- private void maybeForceBuilderInitialization () {
595- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
596515 }
597516
598517 @ java .lang .Override
@@ -706,7 +625,7 @@ public Builder mergeFrom(com.google.appengine.v1.ApiConfigHandler other) {
706625 url_ = other .url_ ;
707626 onChanged ();
708627 }
709- this .mergeUnknownFields (other .unknownFields );
628+ this .mergeUnknownFields (other .getUnknownFields () );
710629 onChanged ();
711630 return this ;
712631 }
@@ -721,17 +640,61 @@ public Builder mergeFrom(
721640 com .google .protobuf .CodedInputStream input ,
722641 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
723642 throws java .io .IOException {
724- com .google .appengine .v1 .ApiConfigHandler parsedMessage = null ;
643+ if (extensionRegistry == null ) {
644+ throw new java .lang .NullPointerException ();
645+ }
725646 try {
726- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
647+ boolean done = false ;
648+ while (!done ) {
649+ int tag = input .readTag ();
650+ switch (tag ) {
651+ case 0 :
652+ done = true ;
653+ break ;
654+ case 8 :
655+ {
656+ authFailAction_ = input .readEnum ();
657+
658+ break ;
659+ } // case 8
660+ case 16 :
661+ {
662+ login_ = input .readEnum ();
663+
664+ break ;
665+ } // case 16
666+ case 26 :
667+ {
668+ script_ = input .readStringRequireUtf8 ();
669+
670+ break ;
671+ } // case 26
672+ case 32 :
673+ {
674+ securityLevel_ = input .readEnum ();
675+
676+ break ;
677+ } // case 32
678+ case 42 :
679+ {
680+ url_ = input .readStringRequireUtf8 ();
681+
682+ break ;
683+ } // case 42
684+ default :
685+ {
686+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
687+ done = true ; // was an endgroup tag
688+ }
689+ break ;
690+ } // default:
691+ } // switch (tag)
692+ } // while (!done)
727693 } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
728- parsedMessage = (com .google .appengine .v1 .ApiConfigHandler ) e .getUnfinishedMessage ();
729694 throw e .unwrapIOException ();
730695 } finally {
731- if (parsedMessage != null ) {
732- mergeFrom (parsedMessage );
733- }
734- }
696+ onChanged ();
697+ } // finally
735698 return this ;
736699 }
737700
@@ -1262,7 +1225,18 @@ public ApiConfigHandler parsePartialFrom(
12621225 com .google .protobuf .CodedInputStream input ,
12631226 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
12641227 throws com .google .protobuf .InvalidProtocolBufferException {
1265- return new ApiConfigHandler (input , extensionRegistry );
1228+ Builder builder = newBuilder ();
1229+ try {
1230+ builder .mergeFrom (input , extensionRegistry );
1231+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
1232+ throw e .setUnfinishedMessage (builder .buildPartial ());
1233+ } catch (com .google .protobuf .UninitializedMessageException e ) {
1234+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
1235+ } catch (java .io .IOException e ) {
1236+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
1237+ .setUnfinishedMessage (builder .buildPartial ());
1238+ }
1239+ return builder .buildPartial ();
12661240 }
12671241 };
12681242
0 commit comments