@@ -57,80 +57,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
57
57
return this .unknownFields ;
58
58
}
59
59
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
-
134
60
public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
135
61
return com .google .appengine .v1 .AppYamlProto
136
62
.internal_static_google_appengine_v1_ApiConfigHandler_descriptor ;
@@ -386,7 +312,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
386
312
if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (url_ )) {
387
313
com .google .protobuf .GeneratedMessageV3 .writeString (output , 5 , url_ );
388
314
}
389
- unknownFields .writeTo (output );
315
+ getUnknownFields () .writeTo (output );
390
316
}
391
317
392
318
@ java .lang .Override
@@ -411,7 +337,7 @@ public int getSerializedSize() {
411
337
if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (url_ )) {
412
338
size += com .google .protobuf .GeneratedMessageV3 .computeStringSize (5 , url_ );
413
339
}
414
- size += unknownFields .getSerializedSize ();
340
+ size += getUnknownFields () .getSerializedSize ();
415
341
memoizedSize = size ;
416
342
return size ;
417
343
}
@@ -431,7 +357,7 @@ public boolean equals(final java.lang.Object obj) {
431
357
if (!getScript ().equals (other .getScript ())) return false ;
432
358
if (securityLevel_ != other .securityLevel_ ) return false ;
433
359
if (!getUrl ().equals (other .getUrl ())) return false ;
434
- if (!unknownFields .equals (other .unknownFields )) return false ;
360
+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
435
361
return true ;
436
362
}
437
363
@@ -452,7 +378,7 @@ public int hashCode() {
452
378
hash = (53 * hash ) + securityLevel_ ;
453
379
hash = (37 * hash ) + URL_FIELD_NUMBER ;
454
380
hash = (53 * hash ) + getUrl ().hashCode ();
455
- hash = (29 * hash ) + unknownFields .hashCode ();
381
+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
456
382
memoizedHashCode = hash ;
457
383
return hash ;
458
384
}
@@ -582,17 +508,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
582
508
}
583
509
584
510
// Construct using com.google.appengine.v1.ApiConfigHandler.newBuilder()
585
- private Builder () {
586
- maybeForceBuilderInitialization ();
587
- }
511
+ private Builder () {}
588
512
589
513
private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
590
514
super (parent );
591
- maybeForceBuilderInitialization ();
592
- }
593
-
594
- private void maybeForceBuilderInitialization () {
595
- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
596
515
}
597
516
598
517
@ java .lang .Override
@@ -706,7 +625,7 @@ public Builder mergeFrom(com.google.appengine.v1.ApiConfigHandler other) {
706
625
url_ = other .url_ ;
707
626
onChanged ();
708
627
}
709
- this .mergeUnknownFields (other .unknownFields );
628
+ this .mergeUnknownFields (other .getUnknownFields () );
710
629
onChanged ();
711
630
return this ;
712
631
}
@@ -721,17 +640,61 @@ public Builder mergeFrom(
721
640
com .google .protobuf .CodedInputStream input ,
722
641
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
723
642
throws java .io .IOException {
724
- com .google .appengine .v1 .ApiConfigHandler parsedMessage = null ;
643
+ if (extensionRegistry == null ) {
644
+ throw new java .lang .NullPointerException ();
645
+ }
725
646
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)
727
693
} catch (com .google .protobuf .InvalidProtocolBufferException e ) {
728
- parsedMessage = (com .google .appengine .v1 .ApiConfigHandler ) e .getUnfinishedMessage ();
729
694
throw e .unwrapIOException ();
730
695
} finally {
731
- if (parsedMessage != null ) {
732
- mergeFrom (parsedMessage );
733
- }
734
- }
696
+ onChanged ();
697
+ } // finally
735
698
return this ;
736
699
}
737
700
@@ -1262,7 +1225,18 @@ public ApiConfigHandler parsePartialFrom(
1262
1225
com .google .protobuf .CodedInputStream input ,
1263
1226
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
1264
1227
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 ();
1266
1240
}
1267
1241
};
1268
1242
0 commit comments