@@ -55,82 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
55
55
return this .unknownFields ;
56
56
}
57
57
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
-
134
58
public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
135
59
return com .google .cloud .clouddms .v1 .ClouddmsResourcesProto
136
60
.internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_descriptor ;
@@ -373,7 +297,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
373
297
if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (publicIp_ )) {
374
298
com .google .protobuf .GeneratedMessageV3 .writeString (output , 4 , publicIp_ );
375
299
}
376
- unknownFields .writeTo (output );
300
+ getUnknownFields () .writeTo (output );
377
301
}
378
302
379
303
@ java .lang .Override
@@ -394,7 +318,7 @@ public int getSerializedSize() {
394
318
if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (publicIp_ )) {
395
319
size += com .google .protobuf .GeneratedMessageV3 .computeStringSize (4 , publicIp_ );
396
320
}
397
- size += unknownFields .getSerializedSize ();
321
+ size += getUnknownFields () .getSerializedSize ();
398
322
memoizedSize = size ;
399
323
return size ;
400
324
}
@@ -417,7 +341,7 @@ public boolean equals(final java.lang.Object obj) {
417
341
}
418
342
if (!getPrivateIp ().equals (other .getPrivateIp ())) return false ;
419
343
if (!getPublicIp ().equals (other .getPublicIp ())) return false ;
420
- if (!unknownFields .equals (other .unknownFields )) return false ;
344
+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
421
345
return true ;
422
346
}
423
347
@@ -438,7 +362,7 @@ public int hashCode() {
438
362
hash = (53 * hash ) + getPrivateIp ().hashCode ();
439
363
hash = (37 * hash ) + PUBLIC_IP_FIELD_NUMBER ;
440
364
hash = (53 * hash ) + getPublicIp ().hashCode ();
441
- hash = (29 * hash ) + unknownFields .hashCode ();
365
+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
442
366
memoizedHashCode = hash ;
443
367
return hash ;
444
368
}
@@ -569,17 +493,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
569
493
}
570
494
571
495
// Construct using com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.newBuilder()
572
- private Builder () {
573
- maybeForceBuilderInitialization ();
574
- }
496
+ private Builder () {}
575
497
576
498
private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
577
499
super (parent );
578
- maybeForceBuilderInitialization ();
579
- }
580
-
581
- private void maybeForceBuilderInitialization () {
582
- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
583
500
}
584
501
585
502
@ java .lang .Override
@@ -697,7 +614,7 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.CloudSqlConnectionProfile
697
614
publicIp_ = other .publicIp_ ;
698
615
onChanged ();
699
616
}
700
- this .mergeUnknownFields (other .unknownFields );
617
+ this .mergeUnknownFields (other .getUnknownFields () );
701
618
onChanged ();
702
619
return this ;
703
620
}
@@ -712,18 +629,55 @@ public Builder mergeFrom(
712
629
com .google .protobuf .CodedInputStream input ,
713
630
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
714
631
throws java .io .IOException {
715
- com .google .cloud .clouddms .v1 .CloudSqlConnectionProfile parsedMessage = null ;
632
+ if (extensionRegistry == null ) {
633
+ throw new java .lang .NullPointerException ();
634
+ }
716
635
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)
718
676
} catch (com .google .protobuf .InvalidProtocolBufferException e ) {
719
- parsedMessage =
720
- (com .google .cloud .clouddms .v1 .CloudSqlConnectionProfile ) e .getUnfinishedMessage ();
721
677
throw e .unwrapIOException ();
722
678
} finally {
723
- if (parsedMessage != null ) {
724
- mergeFrom (parsedMessage );
725
- }
726
- }
679
+ onChanged ();
680
+ } // finally
727
681
return this ;
728
682
}
729
683
@@ -1281,7 +1235,18 @@ public CloudSqlConnectionProfile parsePartialFrom(
1281
1235
com .google .protobuf .CodedInputStream input ,
1282
1236
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
1283
1237
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 ();
1285
1250
}
1286
1251
};
1287
1252
0 commit comments