@@ -55,82 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5555 return this .unknownFields ;
5656 }
5757
58- private CloudSqlConnectionProfile (
59- com .google .protobuf .CodedInputStream input ,
60- com .google .protobuf .ExtensionRegistryLite extensionRegistry )
61- throws com .google .protobuf .InvalidProtocolBufferException {
62- this ();
63- if (extensionRegistry == null ) {
64- throw new java .lang .NullPointerException ();
65- }
66- com .google .protobuf .UnknownFieldSet .Builder unknownFields =
67- com .google .protobuf .UnknownFieldSet .newBuilder ();
68- try {
69- boolean done = false ;
70- while (!done ) {
71- int tag = input .readTag ();
72- switch (tag ) {
73- case 0 :
74- done = true ;
75- break ;
76- case 10 :
77- {
78- java .lang .String s = input .readStringRequireUtf8 ();
79-
80- cloudSqlId_ = s ;
81- break ;
82- }
83- case 18 :
84- {
85- com .google .cloud .clouddms .v1 .CloudSqlSettings .Builder subBuilder = null ;
86- if (settings_ != null ) {
87- subBuilder = settings_ .toBuilder ();
88- }
89- settings_ =
90- input .readMessage (
91- com .google .cloud .clouddms .v1 .CloudSqlSettings .parser (), extensionRegistry );
92- if (subBuilder != null ) {
93- subBuilder .mergeFrom (settings_ );
94- settings_ = subBuilder .buildPartial ();
95- }
96-
97- break ;
98- }
99- case 26 :
100- {
101- java .lang .String s = input .readStringRequireUtf8 ();
102-
103- privateIp_ = s ;
104- break ;
105- }
106- case 34 :
107- {
108- java .lang .String s = input .readStringRequireUtf8 ();
109-
110- publicIp_ = 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-
13458 public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
13559 return com .google .cloud .clouddms .v1 .ClouddmsResourcesProto
13660 .internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_descriptor ;
@@ -373,7 +297,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
373297 if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (publicIp_ )) {
374298 com .google .protobuf .GeneratedMessageV3 .writeString (output , 4 , publicIp_ );
375299 }
376- unknownFields .writeTo (output );
300+ getUnknownFields () .writeTo (output );
377301 }
378302
379303 @ java .lang .Override
@@ -394,7 +318,7 @@ public int getSerializedSize() {
394318 if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (publicIp_ )) {
395319 size += com .google .protobuf .GeneratedMessageV3 .computeStringSize (4 , publicIp_ );
396320 }
397- size += unknownFields .getSerializedSize ();
321+ size += getUnknownFields () .getSerializedSize ();
398322 memoizedSize = size ;
399323 return size ;
400324 }
@@ -417,7 +341,7 @@ public boolean equals(final java.lang.Object obj) {
417341 }
418342 if (!getPrivateIp ().equals (other .getPrivateIp ())) return false ;
419343 if (!getPublicIp ().equals (other .getPublicIp ())) return false ;
420- if (!unknownFields .equals (other .unknownFields )) return false ;
344+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
421345 return true ;
422346 }
423347
@@ -438,7 +362,7 @@ public int hashCode() {
438362 hash = (53 * hash ) + getPrivateIp ().hashCode ();
439363 hash = (37 * hash ) + PUBLIC_IP_FIELD_NUMBER ;
440364 hash = (53 * hash ) + getPublicIp ().hashCode ();
441- hash = (29 * hash ) + unknownFields .hashCode ();
365+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
442366 memoizedHashCode = hash ;
443367 return hash ;
444368 }
@@ -569,17 +493,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
569493 }
570494
571495 // Construct using com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.newBuilder()
572- private Builder () {
573- maybeForceBuilderInitialization ();
574- }
496+ private Builder () {}
575497
576498 private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
577499 super (parent );
578- maybeForceBuilderInitialization ();
579- }
580-
581- private void maybeForceBuilderInitialization () {
582- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
583500 }
584501
585502 @ java .lang .Override
@@ -697,7 +614,7 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.CloudSqlConnectionProfile
697614 publicIp_ = other .publicIp_ ;
698615 onChanged ();
699616 }
700- this .mergeUnknownFields (other .unknownFields );
617+ this .mergeUnknownFields (other .getUnknownFields () );
701618 onChanged ();
702619 return this ;
703620 }
@@ -712,18 +629,55 @@ public Builder mergeFrom(
712629 com .google .protobuf .CodedInputStream input ,
713630 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
714631 throws java .io .IOException {
715- com .google .cloud .clouddms .v1 .CloudSqlConnectionProfile parsedMessage = null ;
632+ if (extensionRegistry == null ) {
633+ throw new java .lang .NullPointerException ();
634+ }
716635 try {
717- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
636+ boolean done = false ;
637+ while (!done ) {
638+ int tag = input .readTag ();
639+ switch (tag ) {
640+ case 0 :
641+ done = true ;
642+ break ;
643+ case 10 :
644+ {
645+ cloudSqlId_ = input .readStringRequireUtf8 ();
646+
647+ break ;
648+ } // case 10
649+ case 18 :
650+ {
651+ input .readMessage (getSettingsFieldBuilder ().getBuilder (), extensionRegistry );
652+
653+ break ;
654+ } // case 18
655+ case 26 :
656+ {
657+ privateIp_ = input .readStringRequireUtf8 ();
658+
659+ break ;
660+ } // case 26
661+ case 34 :
662+ {
663+ publicIp_ = input .readStringRequireUtf8 ();
664+
665+ break ;
666+ } // case 34
667+ default :
668+ {
669+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
670+ done = true ; // was an endgroup tag
671+ }
672+ break ;
673+ } // default:
674+ } // switch (tag)
675+ } // while (!done)
718676 } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
719- parsedMessage =
720- (com .google .cloud .clouddms .v1 .CloudSqlConnectionProfile ) e .getUnfinishedMessage ();
721677 throw e .unwrapIOException ();
722678 } finally {
723- if (parsedMessage != null ) {
724- mergeFrom (parsedMessage );
725- }
726- }
679+ onChanged ();
680+ } // finally
727681 return this ;
728682 }
729683
@@ -1281,7 +1235,18 @@ public CloudSqlConnectionProfile parsePartialFrom(
12811235 com .google .protobuf .CodedInputStream input ,
12821236 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
12831237 throws com .google .protobuf .InvalidProtocolBufferException {
1284- return new CloudSqlConnectionProfile (input , extensionRegistry );
1238+ Builder builder = newBuilder ();
1239+ try {
1240+ builder .mergeFrom (input , extensionRegistry );
1241+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
1242+ throw e .setUnfinishedMessage (builder .buildPartial ());
1243+ } catch (com .google .protobuf .UninitializedMessageException e ) {
1244+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
1245+ } catch (java .io .IOException e ) {
1246+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
1247+ .setUnfinishedMessage (builder .buildPartial ());
1248+ }
1249+ return builder .buildPartial ();
12851250 }
12861251 };
12871252
0 commit comments