@@ -53,59 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
53
53
return this .unknownFields ;
54
54
}
55
55
56
- private DetachLunRequest (
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
- instance_ = s ;
79
- break ;
80
- }
81
- case 18 :
82
- {
83
- java .lang .String s = input .readStringRequireUtf8 ();
84
-
85
- lun_ = 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
-
109
56
public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
110
57
return com .google .cloud .baremetalsolution .v2 .InstanceProto
111
58
.internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor ;
@@ -247,7 +194,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
247
194
if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (lun_ )) {
248
195
com .google .protobuf .GeneratedMessageV3 .writeString (output , 2 , lun_ );
249
196
}
250
- unknownFields .writeTo (output );
197
+ getUnknownFields () .writeTo (output );
251
198
}
252
199
253
200
@ java .lang .Override
@@ -262,7 +209,7 @@ public int getSerializedSize() {
262
209
if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (lun_ )) {
263
210
size += com .google .protobuf .GeneratedMessageV3 .computeStringSize (2 , lun_ );
264
211
}
265
- size += unknownFields .getSerializedSize ();
212
+ size += getUnknownFields () .getSerializedSize ();
266
213
memoizedSize = size ;
267
214
return size ;
268
215
}
@@ -280,7 +227,7 @@ public boolean equals(final java.lang.Object obj) {
280
227
281
228
if (!getInstance ().equals (other .getInstance ())) return false ;
282
229
if (!getLun ().equals (other .getLun ())) return false ;
283
- if (!unknownFields .equals (other .unknownFields )) return false ;
230
+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
284
231
return true ;
285
232
}
286
233
@@ -295,7 +242,7 @@ public int hashCode() {
295
242
hash = (53 * hash ) + getInstance ().hashCode ();
296
243
hash = (37 * hash ) + LUN_FIELD_NUMBER ;
297
244
hash = (53 * hash ) + getLun ().hashCode ();
298
- hash = (29 * hash ) + unknownFields .hashCode ();
245
+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
299
246
memoizedHashCode = hash ;
300
247
return hash ;
301
248
}
@@ -425,17 +372,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
425
372
}
426
373
427
374
// Construct using com.google.cloud.baremetalsolution.v2.DetachLunRequest.newBuilder()
428
- private Builder () {
429
- maybeForceBuilderInitialization ();
430
- }
375
+ private Builder () {}
431
376
432
377
private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
433
378
super (parent );
434
- maybeForceBuilderInitialization ();
435
- }
436
-
437
- private void maybeForceBuilderInitialization () {
438
- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
439
379
}
440
380
441
381
@ java .lang .Override
@@ -532,7 +472,7 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.DetachLunRequest
532
472
lun_ = other .lun_ ;
533
473
onChanged ();
534
474
}
535
- this .mergeUnknownFields (other .unknownFields );
475
+ this .mergeUnknownFields (other .getUnknownFields () );
536
476
onChanged ();
537
477
return this ;
538
478
}
@@ -547,18 +487,43 @@ public Builder mergeFrom(
547
487
com .google .protobuf .CodedInputStream input ,
548
488
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
549
489
throws java .io .IOException {
550
- com .google .cloud .baremetalsolution .v2 .DetachLunRequest parsedMessage = null ;
490
+ if (extensionRegistry == null ) {
491
+ throw new java .lang .NullPointerException ();
492
+ }
551
493
try {
552
- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
494
+ boolean done = false ;
495
+ while (!done ) {
496
+ int tag = input .readTag ();
497
+ switch (tag ) {
498
+ case 0 :
499
+ done = true ;
500
+ break ;
501
+ case 10 :
502
+ {
503
+ instance_ = input .readStringRequireUtf8 ();
504
+
505
+ break ;
506
+ } // case 10
507
+ case 18 :
508
+ {
509
+ lun_ = input .readStringRequireUtf8 ();
510
+
511
+ break ;
512
+ } // case 18
513
+ default :
514
+ {
515
+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
516
+ done = true ; // was an endgroup tag
517
+ }
518
+ break ;
519
+ } // default:
520
+ } // switch (tag)
521
+ } // while (!done)
553
522
} catch (com .google .protobuf .InvalidProtocolBufferException e ) {
554
- parsedMessage =
555
- (com .google .cloud .baremetalsolution .v2 .DetachLunRequest ) e .getUnfinishedMessage ();
556
523
throw e .unwrapIOException ();
557
524
} finally {
558
- if (parsedMessage != null ) {
559
- mergeFrom (parsedMessage );
560
- }
561
- }
525
+ onChanged ();
526
+ } // finally
562
527
return this ;
563
528
}
564
529
@@ -826,7 +791,18 @@ public DetachLunRequest parsePartialFrom(
826
791
com .google .protobuf .CodedInputStream input ,
827
792
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
828
793
throws com .google .protobuf .InvalidProtocolBufferException {
829
- return new DetachLunRequest (input , extensionRegistry );
794
+ Builder builder = newBuilder ();
795
+ try {
796
+ builder .mergeFrom (input , extensionRegistry );
797
+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
798
+ throw e .setUnfinishedMessage (builder .buildPartial ());
799
+ } catch (com .google .protobuf .UninitializedMessageException e ) {
800
+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
801
+ } catch (java .io .IOException e ) {
802
+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
803
+ .setUnfinishedMessage (builder .buildPartial ());
804
+ }
805
+ return builder .buildPartial ();
830
806
}
831
807
};
832
808
0 commit comments