@@ -53,71 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5353 return this .unknownFields ;
5454 }
5555
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-
12156 public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
12257 return com .google .cloud .memcache .v1 .CloudMemcacheProto
12358 .internal_static_google_cloud_memcache_v1_ApplyParametersRequest_descriptor ;
@@ -292,7 +227,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
292227 if (applyAll_ != false ) {
293228 output .writeBool (3 , applyAll_ );
294229 }
295- unknownFields .writeTo (output );
230+ getUnknownFields () .writeTo (output );
296231 }
297232
298233 @ java .lang .Override
@@ -315,7 +250,7 @@ public int getSerializedSize() {
315250 if (applyAll_ != false ) {
316251 size += com .google .protobuf .CodedOutputStream .computeBoolSize (3 , applyAll_ );
317252 }
318- size += unknownFields .getSerializedSize ();
253+ size += getUnknownFields () .getSerializedSize ();
319254 memoizedSize = size ;
320255 return size ;
321256 }
@@ -334,7 +269,7 @@ public boolean equals(final java.lang.Object obj) {
334269 if (!getName ().equals (other .getName ())) return false ;
335270 if (!getNodeIdsList ().equals (other .getNodeIdsList ())) return false ;
336271 if (getApplyAll () != other .getApplyAll ()) return false ;
337- if (!unknownFields .equals (other .unknownFields )) return false ;
272+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
338273 return true ;
339274 }
340275
@@ -353,7 +288,7 @@ public int hashCode() {
353288 }
354289 hash = (37 * hash ) + APPLY_ALL_FIELD_NUMBER ;
355290 hash = (53 * hash ) + com .google .protobuf .Internal .hashBoolean (getApplyAll ());
356- hash = (29 * hash ) + unknownFields .hashCode ();
291+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
357292 memoizedHashCode = hash ;
358293 return hash ;
359294 }
@@ -482,17 +417,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
482417 }
483418
484419 // Construct using com.google.cloud.memcache.v1.ApplyParametersRequest.newBuilder()
485- private Builder () {
486- maybeForceBuilderInitialization ();
487- }
420+ private Builder () {}
488421
489422 private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
490423 super (parent );
491- maybeForceBuilderInitialization ();
492- }
493-
494- private void maybeForceBuilderInitialization () {
495- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
496424 }
497425
498426 @ java .lang .Override
@@ -606,7 +534,7 @@ public Builder mergeFrom(com.google.cloud.memcache.v1.ApplyParametersRequest oth
606534 if (other .getApplyAll () != false ) {
607535 setApplyAll (other .getApplyAll ());
608536 }
609- this .mergeUnknownFields (other .unknownFields );
537+ this .mergeUnknownFields (other .getUnknownFields () );
610538 onChanged ();
611539 return this ;
612540 }
@@ -621,18 +549,50 @@ public Builder mergeFrom(
621549 com .google .protobuf .CodedInputStream input ,
622550 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
623551 throws java .io .IOException {
624- com .google .cloud .memcache .v1 .ApplyParametersRequest parsedMessage = null ;
552+ if (extensionRegistry == null ) {
553+ throw new java .lang .NullPointerException ();
554+ }
625555 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)
627591 } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
628- parsedMessage =
629- (com .google .cloud .memcache .v1 .ApplyParametersRequest ) e .getUnfinishedMessage ();
630592 throw e .unwrapIOException ();
631593 } finally {
632- if (parsedMessage != null ) {
633- mergeFrom (parsedMessage );
634- }
635- }
594+ onChanged ();
595+ } // finally
636596 return this ;
637597 }
638598
@@ -1017,7 +977,18 @@ public ApplyParametersRequest parsePartialFrom(
1017977 com .google .protobuf .CodedInputStream input ,
1018978 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
1019979 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 ();
1021992 }
1022993 };
1023994
0 commit comments