@@ -46,81 +46,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
46
46
return this .unknownFields ;
47
47
}
48
48
49
- private CreateEndpointRequest (
50
- com .google .protobuf .CodedInputStream input ,
51
- com .google .protobuf .ExtensionRegistryLite extensionRegistry )
52
- throws com .google .protobuf .InvalidProtocolBufferException {
53
- this ();
54
- if (extensionRegistry == null ) {
55
- throw new java .lang .NullPointerException ();
56
- }
57
- com .google .protobuf .UnknownFieldSet .Builder unknownFields =
58
- com .google .protobuf .UnknownFieldSet .newBuilder ();
59
- try {
60
- boolean done = false ;
61
- while (!done ) {
62
- int tag = input .readTag ();
63
- switch (tag ) {
64
- case 0 :
65
- done = true ;
66
- break ;
67
- case 10 :
68
- {
69
- java .lang .String s = input .readStringRequireUtf8 ();
70
-
71
- parent_ = s ;
72
- break ;
73
- }
74
- case 18 :
75
- {
76
- java .lang .String s = input .readStringRequireUtf8 ();
77
-
78
- endpointId_ = s ;
79
- break ;
80
- }
81
- case 26 :
82
- {
83
- com .google .cloud .ids .v1 .Endpoint .Builder subBuilder = null ;
84
- if (endpoint_ != null ) {
85
- subBuilder = endpoint_ .toBuilder ();
86
- }
87
- endpoint_ =
88
- input .readMessage (com .google .cloud .ids .v1 .Endpoint .parser (), extensionRegistry );
89
- if (subBuilder != null ) {
90
- subBuilder .mergeFrom (endpoint_ );
91
- endpoint_ = subBuilder .buildPartial ();
92
- }
93
-
94
- break ;
95
- }
96
- case 34 :
97
- {
98
- java .lang .String s = input .readStringRequireUtf8 ();
99
-
100
- requestId_ = s ;
101
- break ;
102
- }
103
- default :
104
- {
105
- if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
106
- done = true ;
107
- }
108
- break ;
109
- }
110
- }
111
- }
112
- } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
113
- throw e .setUnfinishedMessage (this );
114
- } catch (com .google .protobuf .UninitializedMessageException e ) {
115
- throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (this );
116
- } catch (java .io .IOException e ) {
117
- throw new com .google .protobuf .InvalidProtocolBufferException (e ).setUnfinishedMessage (this );
118
- } finally {
119
- this .unknownFields = unknownFields .build ();
120
- makeExtensionsImmutable ();
121
- }
122
- }
123
-
124
49
public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
125
50
return com .google .cloud .ids .v1 .IdsProto
126
51
.internal_static_google_cloud_ids_v1_CreateEndpointRequest_descriptor ;
@@ -392,7 +317,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
392
317
if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (requestId_ )) {
393
318
com .google .protobuf .GeneratedMessageV3 .writeString (output , 4 , requestId_ );
394
319
}
395
- unknownFields .writeTo (output );
320
+ getUnknownFields () .writeTo (output );
396
321
}
397
322
398
323
@ java .lang .Override
@@ -413,7 +338,7 @@ public int getSerializedSize() {
413
338
if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (requestId_ )) {
414
339
size += com .google .protobuf .GeneratedMessageV3 .computeStringSize (4 , requestId_ );
415
340
}
416
- size += unknownFields .getSerializedSize ();
341
+ size += getUnknownFields () .getSerializedSize ();
417
342
memoizedSize = size ;
418
343
return size ;
419
344
}
@@ -436,7 +361,7 @@ public boolean equals(final java.lang.Object obj) {
436
361
if (!getEndpoint ().equals (other .getEndpoint ())) return false ;
437
362
}
438
363
if (!getRequestId ().equals (other .getRequestId ())) return false ;
439
- if (!unknownFields .equals (other .unknownFields )) return false ;
364
+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
440
365
return true ;
441
366
}
442
367
@@ -457,7 +382,7 @@ public int hashCode() {
457
382
}
458
383
hash = (37 * hash ) + REQUEST_ID_FIELD_NUMBER ;
459
384
hash = (53 * hash ) + getRequestId ().hashCode ();
460
- hash = (29 * hash ) + unknownFields .hashCode ();
385
+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
461
386
memoizedHashCode = hash ;
462
387
return hash ;
463
388
}
@@ -578,17 +503,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
578
503
}
579
504
580
505
// Construct using com.google.cloud.ids.v1.CreateEndpointRequest.newBuilder()
581
- private Builder () {
582
- maybeForceBuilderInitialization ();
583
- }
506
+ private Builder () {}
584
507
585
508
private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
586
509
super (parent );
587
- maybeForceBuilderInitialization ();
588
- }
589
-
590
- private void maybeForceBuilderInitialization () {
591
- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
592
510
}
593
511
594
512
@ java .lang .Override
@@ -705,7 +623,7 @@ public Builder mergeFrom(com.google.cloud.ids.v1.CreateEndpointRequest other) {
705
623
requestId_ = other .requestId_ ;
706
624
onChanged ();
707
625
}
708
- this .mergeUnknownFields (other .unknownFields );
626
+ this .mergeUnknownFields (other .getUnknownFields () );
709
627
onChanged ();
710
628
return this ;
711
629
}
@@ -720,17 +638,55 @@ public Builder mergeFrom(
720
638
com .google .protobuf .CodedInputStream input ,
721
639
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
722
640
throws java .io .IOException {
723
- com .google .cloud .ids .v1 .CreateEndpointRequest parsedMessage = null ;
641
+ if (extensionRegistry == null ) {
642
+ throw new java .lang .NullPointerException ();
643
+ }
724
644
try {
725
- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
645
+ boolean done = false ;
646
+ while (!done ) {
647
+ int tag = input .readTag ();
648
+ switch (tag ) {
649
+ case 0 :
650
+ done = true ;
651
+ break ;
652
+ case 10 :
653
+ {
654
+ parent_ = input .readStringRequireUtf8 ();
655
+
656
+ break ;
657
+ } // case 10
658
+ case 18 :
659
+ {
660
+ endpointId_ = input .readStringRequireUtf8 ();
661
+
662
+ break ;
663
+ } // case 18
664
+ case 26 :
665
+ {
666
+ input .readMessage (getEndpointFieldBuilder ().getBuilder (), extensionRegistry );
667
+
668
+ break ;
669
+ } // case 26
670
+ case 34 :
671
+ {
672
+ requestId_ = input .readStringRequireUtf8 ();
673
+
674
+ break ;
675
+ } // case 34
676
+ default :
677
+ {
678
+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
679
+ done = true ; // was an endgroup tag
680
+ }
681
+ break ;
682
+ } // default:
683
+ } // switch (tag)
684
+ } // while (!done)
726
685
} catch (com .google .protobuf .InvalidProtocolBufferException e ) {
727
- parsedMessage = (com .google .cloud .ids .v1 .CreateEndpointRequest ) e .getUnfinishedMessage ();
728
686
throw e .unwrapIOException ();
729
687
} finally {
730
- if (parsedMessage != null ) {
731
- mergeFrom (parsedMessage );
732
- }
733
- }
688
+ onChanged ();
689
+ } // finally
734
690
return this ;
735
691
}
736
692
@@ -1363,7 +1319,18 @@ public CreateEndpointRequest parsePartialFrom(
1363
1319
com .google .protobuf .CodedInputStream input ,
1364
1320
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
1365
1321
throws com .google .protobuf .InvalidProtocolBufferException {
1366
- return new CreateEndpointRequest (input , extensionRegistry );
1322
+ Builder builder = newBuilder ();
1323
+ try {
1324
+ builder .mergeFrom (input , extensionRegistry );
1325
+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
1326
+ throw e .setUnfinishedMessage (builder .buildPartial ());
1327
+ } catch (com .google .protobuf .UninitializedMessageException e ) {
1328
+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
1329
+ } catch (java .io .IOException e ) {
1330
+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
1331
+ .setUnfinishedMessage (builder .buildPartial ());
1332
+ }
1333
+ return builder .buildPartial ();
1367
1334
}
1368
1335
};
1369
1336
0 commit comments