@@ -53,71 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
53
53
return this .unknownFields ;
54
54
}
55
55
56
- private ApplyParametersRequest (
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
- int mutable_bitField0_ = 0 ;
65
- com .google .protobuf .UnknownFieldSet .Builder unknownFields =
66
- com .google .protobuf .UnknownFieldSet .newBuilder ();
67
- try {
68
- boolean done = false ;
69
- while (!done ) {
70
- int tag = input .readTag ();
71
- switch (tag ) {
72
- case 0 :
73
- done = true ;
74
- break ;
75
- case 10 :
76
- {
77
- java .lang .String s = input .readStringRequireUtf8 ();
78
-
79
- name_ = s ;
80
- break ;
81
- }
82
- case 18 :
83
- {
84
- java .lang .String s = input .readStringRequireUtf8 ();
85
- if (!((mutable_bitField0_ & 0x00000001 ) != 0 )) {
86
- nodeIds_ = new com .google .protobuf .LazyStringArrayList ();
87
- mutable_bitField0_ |= 0x00000001 ;
88
- }
89
- nodeIds_ .add (s );
90
- break ;
91
- }
92
- case 24 :
93
- {
94
- applyAll_ = input .readBool ();
95
- break ;
96
- }
97
- default :
98
- {
99
- if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
100
- done = true ;
101
- }
102
- break ;
103
- }
104
- }
105
- }
106
- } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
107
- throw e .setUnfinishedMessage (this );
108
- } catch (com .google .protobuf .UninitializedMessageException e ) {
109
- throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (this );
110
- } catch (java .io .IOException e ) {
111
- throw new com .google .protobuf .InvalidProtocolBufferException (e ).setUnfinishedMessage (this );
112
- } finally {
113
- if (((mutable_bitField0_ & 0x00000001 ) != 0 )) {
114
- nodeIds_ = nodeIds_ .getUnmodifiableView ();
115
- }
116
- this .unknownFields = unknownFields .build ();
117
- makeExtensionsImmutable ();
118
- }
119
- }
120
-
121
56
public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
122
57
return com .google .cloud .memcache .v1 .CloudMemcacheProto
123
58
.internal_static_google_cloud_memcache_v1_ApplyParametersRequest_descriptor ;
@@ -292,7 +227,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
292
227
if (applyAll_ != false ) {
293
228
output .writeBool (3 , applyAll_ );
294
229
}
295
- unknownFields .writeTo (output );
230
+ getUnknownFields () .writeTo (output );
296
231
}
297
232
298
233
@ java .lang .Override
@@ -315,7 +250,7 @@ public int getSerializedSize() {
315
250
if (applyAll_ != false ) {
316
251
size += com .google .protobuf .CodedOutputStream .computeBoolSize (3 , applyAll_ );
317
252
}
318
- size += unknownFields .getSerializedSize ();
253
+ size += getUnknownFields () .getSerializedSize ();
319
254
memoizedSize = size ;
320
255
return size ;
321
256
}
@@ -334,7 +269,7 @@ public boolean equals(final java.lang.Object obj) {
334
269
if (!getName ().equals (other .getName ())) return false ;
335
270
if (!getNodeIdsList ().equals (other .getNodeIdsList ())) return false ;
336
271
if (getApplyAll () != other .getApplyAll ()) return false ;
337
- if (!unknownFields .equals (other .unknownFields )) return false ;
272
+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
338
273
return true ;
339
274
}
340
275
@@ -353,7 +288,7 @@ public int hashCode() {
353
288
}
354
289
hash = (37 * hash ) + APPLY_ALL_FIELD_NUMBER ;
355
290
hash = (53 * hash ) + com .google .protobuf .Internal .hashBoolean (getApplyAll ());
356
- hash = (29 * hash ) + unknownFields .hashCode ();
291
+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
357
292
memoizedHashCode = hash ;
358
293
return hash ;
359
294
}
@@ -482,17 +417,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
482
417
}
483
418
484
419
// Construct using com.google.cloud.memcache.v1.ApplyParametersRequest.newBuilder()
485
- private Builder () {
486
- maybeForceBuilderInitialization ();
487
- }
420
+ private Builder () {}
488
421
489
422
private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
490
423
super (parent );
491
- maybeForceBuilderInitialization ();
492
- }
493
-
494
- private void maybeForceBuilderInitialization () {
495
- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
496
424
}
497
425
498
426
@ java .lang .Override
@@ -606,7 +534,7 @@ public Builder mergeFrom(com.google.cloud.memcache.v1.ApplyParametersRequest oth
606
534
if (other .getApplyAll () != false ) {
607
535
setApplyAll (other .getApplyAll ());
608
536
}
609
- this .mergeUnknownFields (other .unknownFields );
537
+ this .mergeUnknownFields (other .getUnknownFields () );
610
538
onChanged ();
611
539
return this ;
612
540
}
@@ -621,18 +549,50 @@ public Builder mergeFrom(
621
549
com .google .protobuf .CodedInputStream input ,
622
550
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
623
551
throws java .io .IOException {
624
- com .google .cloud .memcache .v1 .ApplyParametersRequest parsedMessage = null ;
552
+ if (extensionRegistry == null ) {
553
+ throw new java .lang .NullPointerException ();
554
+ }
625
555
try {
626
- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
556
+ boolean done = false ;
557
+ while (!done ) {
558
+ int tag = input .readTag ();
559
+ switch (tag ) {
560
+ case 0 :
561
+ done = true ;
562
+ break ;
563
+ case 10 :
564
+ {
565
+ name_ = input .readStringRequireUtf8 ();
566
+
567
+ break ;
568
+ } // case 10
569
+ case 18 :
570
+ {
571
+ java .lang .String s = input .readStringRequireUtf8 ();
572
+ ensureNodeIdsIsMutable ();
573
+ nodeIds_ .add (s );
574
+ break ;
575
+ } // case 18
576
+ case 24 :
577
+ {
578
+ applyAll_ = input .readBool ();
579
+
580
+ break ;
581
+ } // case 24
582
+ default :
583
+ {
584
+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
585
+ done = true ; // was an endgroup tag
586
+ }
587
+ break ;
588
+ } // default:
589
+ } // switch (tag)
590
+ } // while (!done)
627
591
} catch (com .google .protobuf .InvalidProtocolBufferException e ) {
628
- parsedMessage =
629
- (com .google .cloud .memcache .v1 .ApplyParametersRequest ) e .getUnfinishedMessage ();
630
592
throw e .unwrapIOException ();
631
593
} finally {
632
- if (parsedMessage != null ) {
633
- mergeFrom (parsedMessage );
634
- }
635
- }
594
+ onChanged ();
595
+ } // finally
636
596
return this ;
637
597
}
638
598
@@ -1017,7 +977,18 @@ public ApplyParametersRequest parsePartialFrom(
1017
977
com .google .protobuf .CodedInputStream input ,
1018
978
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
1019
979
throws com .google .protobuf .InvalidProtocolBufferException {
1020
- return new ApplyParametersRequest (input , extensionRegistry );
980
+ Builder builder = newBuilder ();
981
+ try {
982
+ builder .mergeFrom (input , extensionRegistry );
983
+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
984
+ throw e .setUnfinishedMessage (builder .buildPartial ());
985
+ } catch (com .google .protobuf .UninitializedMessageException e ) {
986
+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
987
+ } catch (java .io .IOException e ) {
988
+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
989
+ .setUnfinishedMessage (builder .buildPartial ());
990
+ }
991
+ return builder .buildPartial ();
1021
992
}
1022
993
};
1023
994
0 commit comments