@@ -53,66 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5353 return this .unknownFields ;
5454 }
5555
56- private AcknowledgeRequest (
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- subscription_ = s ;
80- break ;
81- }
82- case 18 :
83- {
84- java .lang .String s = input .readStringRequireUtf8 ();
85- if (!((mutable_bitField0_ & 0x00000001 ) != 0 )) {
86- ackIds_ = new com .google .protobuf .LazyStringArrayList ();
87- mutable_bitField0_ |= 0x00000001 ;
88- }
89- ackIds_ .add (s );
90- break ;
91- }
92- default :
93- {
94- if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
95- done = true ;
96- }
97- break ;
98- }
99- }
100- }
101- } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
102- throw e .setUnfinishedMessage (this );
103- } catch (com .google .protobuf .UninitializedMessageException e ) {
104- throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (this );
105- } catch (java .io .IOException e ) {
106- throw new com .google .protobuf .InvalidProtocolBufferException (e ).setUnfinishedMessage (this );
107- } finally {
108- if (((mutable_bitField0_ & 0x00000001 ) != 0 )) {
109- ackIds_ = ackIds_ .getUnmodifiableView ();
110- }
111- this .unknownFields = unknownFields .build ();
112- makeExtensionsImmutable ();
113- }
114- }
115-
11656 public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
11757 return com .google .pubsub .v1 .PubsubProto
11858 .internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor ;
@@ -272,7 +212,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
272212 for (int i = 0 ; i < ackIds_ .size (); i ++) {
273213 com .google .protobuf .GeneratedMessageV3 .writeString (output , 2 , ackIds_ .getRaw (i ));
274214 }
275- unknownFields .writeTo (output );
215+ getUnknownFields () .writeTo (output );
276216 }
277217
278218 @ java .lang .Override
@@ -292,7 +232,7 @@ public int getSerializedSize() {
292232 size += dataSize ;
293233 size += 1 * getAckIdsList ().size ();
294234 }
295- size += unknownFields .getSerializedSize ();
235+ size += getUnknownFields () .getSerializedSize ();
296236 memoizedSize = size ;
297237 return size ;
298238 }
@@ -309,7 +249,7 @@ public boolean equals(final java.lang.Object obj) {
309249
310250 if (!getSubscription ().equals (other .getSubscription ())) return false ;
311251 if (!getAckIdsList ().equals (other .getAckIdsList ())) return false ;
312- if (!unknownFields .equals (other .unknownFields )) return false ;
252+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
313253 return true ;
314254 }
315255
@@ -326,7 +266,7 @@ public int hashCode() {
326266 hash = (37 * hash ) + ACK_IDS_FIELD_NUMBER ;
327267 hash = (53 * hash ) + getAckIdsList ().hashCode ();
328268 }
329- hash = (29 * hash ) + unknownFields .hashCode ();
269+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
330270 memoizedHashCode = hash ;
331271 return hash ;
332272 }
@@ -455,17 +395,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
455395 }
456396
457397 // Construct using com.google.pubsub.v1.AcknowledgeRequest.newBuilder()
458- private Builder () {
459- maybeForceBuilderInitialization ();
460- }
398+ private Builder () {}
461399
462400 private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
463401 super (parent );
464- maybeForceBuilderInitialization ();
465- }
466-
467- private void maybeForceBuilderInitialization () {
468- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
469402 }
470403
471404 @ java .lang .Override
@@ -572,7 +505,7 @@ public Builder mergeFrom(com.google.pubsub.v1.AcknowledgeRequest other) {
572505 }
573506 onChanged ();
574507 }
575- this .mergeUnknownFields (other .unknownFields );
508+ this .mergeUnknownFields (other .getUnknownFields () );
576509 onChanged ();
577510 return this ;
578511 }
@@ -587,17 +520,44 @@ public Builder mergeFrom(
587520 com .google .protobuf .CodedInputStream input ,
588521 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
589522 throws java .io .IOException {
590- com .google .pubsub .v1 .AcknowledgeRequest parsedMessage = null ;
523+ if (extensionRegistry == null ) {
524+ throw new java .lang .NullPointerException ();
525+ }
591526 try {
592- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
527+ boolean done = false ;
528+ while (!done ) {
529+ int tag = input .readTag ();
530+ switch (tag ) {
531+ case 0 :
532+ done = true ;
533+ break ;
534+ case 10 :
535+ {
536+ subscription_ = input .readStringRequireUtf8 ();
537+
538+ break ;
539+ } // case 10
540+ case 18 :
541+ {
542+ java .lang .String s = input .readStringRequireUtf8 ();
543+ ensureAckIdsIsMutable ();
544+ ackIds_ .add (s );
545+ break ;
546+ } // case 18
547+ default :
548+ {
549+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
550+ done = true ; // was an endgroup tag
551+ }
552+ break ;
553+ } // default:
554+ } // switch (tag)
555+ } // while (!done)
593556 } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
594- parsedMessage = (com .google .pubsub .v1 .AcknowledgeRequest ) e .getUnfinishedMessage ();
595557 throw e .unwrapIOException ();
596558 } finally {
597- if (parsedMessage != null ) {
598- mergeFrom (parsedMessage );
599- }
600- }
559+ onChanged ();
560+ } // finally
601561 return this ;
602562 }
603563
@@ -942,7 +902,18 @@ public AcknowledgeRequest parsePartialFrom(
942902 com .google .protobuf .CodedInputStream input ,
943903 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
944904 throws com .google .protobuf .InvalidProtocolBufferException {
945- return new AcknowledgeRequest (input , extensionRegistry );
905+ Builder builder = newBuilder ();
906+ try {
907+ builder .mergeFrom (input , extensionRegistry );
908+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
909+ throw e .setUnfinishedMessage (builder .buildPartial ());
910+ } catch (com .google .protobuf .UninitializedMessageException e ) {
911+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
912+ } catch (java .io .IOException e ) {
913+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
914+ .setUnfinishedMessage (builder .buildPartial ());
915+ }
916+ return builder .buildPartial ();
946917 }
947918 };
948919
0 commit comments