@@ -53,59 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5353 return this .unknownFields ;
5454 }
5555
56- private AndroidApplication (
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- java .lang .String s = input .readStringRequireUtf8 ();
77-
78- sha1Fingerprint_ = s ;
79- break ;
80- }
81- case 18 :
82- {
83- java .lang .String s = input .readStringRequireUtf8 ();
84-
85- packageName_ = s ;
86- break ;
87- }
88- default :
89- {
90- if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
91- done = true ;
92- }
93- break ;
94- }
95- }
96- }
97- } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
98- throw e .setUnfinishedMessage (this );
99- } catch (com .google .protobuf .UninitializedMessageException e ) {
100- throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (this );
101- } catch (java .io .IOException e ) {
102- throw new com .google .protobuf .InvalidProtocolBufferException (e ).setUnfinishedMessage (this );
103- } finally {
104- this .unknownFields = unknownFields .build ();
105- makeExtensionsImmutable ();
106- }
107- }
108-
10956 public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
11057 return com .google .api .apikeys .v2 .ResourcesProto
11158 .internal_static_google_api_apikeys_v2_AndroidApplication_descriptor ;
@@ -245,7 +192,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
245192 if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (packageName_ )) {
246193 com .google .protobuf .GeneratedMessageV3 .writeString (output , 2 , packageName_ );
247194 }
248- unknownFields .writeTo (output );
195+ getUnknownFields () .writeTo (output );
249196 }
250197
251198 @ java .lang .Override
@@ -260,7 +207,7 @@ public int getSerializedSize() {
260207 if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (packageName_ )) {
261208 size += com .google .protobuf .GeneratedMessageV3 .computeStringSize (2 , packageName_ );
262209 }
263- size += unknownFields .getSerializedSize ();
210+ size += getUnknownFields () .getSerializedSize ();
264211 memoizedSize = size ;
265212 return size ;
266213 }
@@ -278,7 +225,7 @@ public boolean equals(final java.lang.Object obj) {
278225
279226 if (!getSha1Fingerprint ().equals (other .getSha1Fingerprint ())) return false ;
280227 if (!getPackageName ().equals (other .getPackageName ())) return false ;
281- if (!unknownFields .equals (other .unknownFields )) return false ;
228+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
282229 return true ;
283230 }
284231
@@ -293,7 +240,7 @@ public int hashCode() {
293240 hash = (53 * hash ) + getSha1Fingerprint ().hashCode ();
294241 hash = (37 * hash ) + PACKAGE_NAME_FIELD_NUMBER ;
295242 hash = (53 * hash ) + getPackageName ().hashCode ();
296- hash = (29 * hash ) + unknownFields .hashCode ();
243+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
297244 memoizedHashCode = hash ;
298245 return hash ;
299246 }
@@ -422,17 +369,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
422369 }
423370
424371 // Construct using com.google.api.apikeys.v2.AndroidApplication.newBuilder()
425- private Builder () {
426- maybeForceBuilderInitialization ();
427- }
372+ private Builder () {}
428373
429374 private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
430375 super (parent );
431- maybeForceBuilderInitialization ();
432- }
433-
434- private void maybeForceBuilderInitialization () {
435- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
436376 }
437377
438378 @ java .lang .Override
@@ -528,7 +468,7 @@ public Builder mergeFrom(com.google.api.apikeys.v2.AndroidApplication other) {
528468 packageName_ = other .packageName_ ;
529469 onChanged ();
530470 }
531- this .mergeUnknownFields (other .unknownFields );
471+ this .mergeUnknownFields (other .getUnknownFields () );
532472 onChanged ();
533473 return this ;
534474 }
@@ -543,17 +483,43 @@ public Builder mergeFrom(
543483 com .google .protobuf .CodedInputStream input ,
544484 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
545485 throws java .io .IOException {
546- com .google .api .apikeys .v2 .AndroidApplication parsedMessage = null ;
486+ if (extensionRegistry == null ) {
487+ throw new java .lang .NullPointerException ();
488+ }
547489 try {
548- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
490+ boolean done = false ;
491+ while (!done ) {
492+ int tag = input .readTag ();
493+ switch (tag ) {
494+ case 0 :
495+ done = true ;
496+ break ;
497+ case 10 :
498+ {
499+ sha1Fingerprint_ = input .readStringRequireUtf8 ();
500+
501+ break ;
502+ } // case 10
503+ case 18 :
504+ {
505+ packageName_ = input .readStringRequireUtf8 ();
506+
507+ break ;
508+ } // case 18
509+ default :
510+ {
511+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
512+ done = true ; // was an endgroup tag
513+ }
514+ break ;
515+ } // default:
516+ } // switch (tag)
517+ } // while (!done)
549518 } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
550- parsedMessage = (com .google .api .apikeys .v2 .AndroidApplication ) e .getUnfinishedMessage ();
551519 throw e .unwrapIOException ();
552520 } finally {
553- if (parsedMessage != null ) {
554- mergeFrom (parsedMessage );
555- }
556- }
521+ onChanged ();
522+ } // finally
557523 return this ;
558524 }
559525
@@ -816,7 +782,18 @@ public AndroidApplication parsePartialFrom(
816782 com .google .protobuf .CodedInputStream input ,
817783 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
818784 throws com .google .protobuf .InvalidProtocolBufferException {
819- return new AndroidApplication (input , extensionRegistry );
785+ Builder builder = newBuilder ();
786+ try {
787+ builder .mergeFrom (input , extensionRegistry );
788+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
789+ throw e .setUnfinishedMessage (builder .buildPartial ());
790+ } catch (com .google .protobuf .UninitializedMessageException e ) {
791+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
792+ } catch (java .io .IOException e ) {
793+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
794+ .setUnfinishedMessage (builder .buildPartial ());
795+ }
796+ return builder .buildPartial ();
820797 }
821798 };
822799
0 commit comments