@@ -54,93 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5454 return this .unknownFields ;
5555 }
5656
57- private ComputeContactsRequest (
58- com .google .protobuf .CodedInputStream input ,
59- com .google .protobuf .ExtensionRegistryLite extensionRegistry )
60- throws com .google .protobuf .InvalidProtocolBufferException {
61- this ();
62- if (extensionRegistry == null ) {
63- throw new java .lang .NullPointerException ();
64- }
65- int mutable_bitField0_ = 0 ;
66- com .google .protobuf .UnknownFieldSet .Builder unknownFields =
67- com .google .protobuf .UnknownFieldSet .newBuilder ();
68- try {
69- boolean done = false ;
70- while (!done ) {
71- int tag = input .readTag ();
72- switch (tag ) {
73- case 0 :
74- done = true ;
75- break ;
76- case 10 :
77- {
78- java .lang .String s = input .readStringRequireUtf8 ();
79-
80- parent_ = s ;
81- break ;
82- }
83- case 24 :
84- {
85- pageSize_ = input .readInt32 ();
86- break ;
87- }
88- case 34 :
89- {
90- java .lang .String s = input .readStringRequireUtf8 ();
91-
92- pageToken_ = s ;
93- break ;
94- }
95- case 48 :
96- {
97- int rawValue = input .readEnum ();
98- if (!((mutable_bitField0_ & 0x00000001 ) != 0 )) {
99- notificationCategories_ = new java .util .ArrayList <java .lang .Integer >();
100- mutable_bitField0_ |= 0x00000001 ;
101- }
102- notificationCategories_ .add (rawValue );
103- break ;
104- }
105- case 50 :
106- {
107- int length = input .readRawVarint32 ();
108- int oldLimit = input .pushLimit (length );
109- while (input .getBytesUntilLimit () > 0 ) {
110- int rawValue = input .readEnum ();
111- if (!((mutable_bitField0_ & 0x00000001 ) != 0 )) {
112- notificationCategories_ = new java .util .ArrayList <java .lang .Integer >();
113- mutable_bitField0_ |= 0x00000001 ;
114- }
115- notificationCategories_ .add (rawValue );
116- }
117- input .popLimit (oldLimit );
118- break ;
119- }
120- default :
121- {
122- if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
123- done = true ;
124- }
125- break ;
126- }
127- }
128- }
129- } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
130- throw e .setUnfinishedMessage (this );
131- } catch (com .google .protobuf .UninitializedMessageException e ) {
132- throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (this );
133- } catch (java .io .IOException e ) {
134- throw new com .google .protobuf .InvalidProtocolBufferException (e ).setUnfinishedMessage (this );
135- } finally {
136- if (((mutable_bitField0_ & 0x00000001 ) != 0 )) {
137- notificationCategories_ = java .util .Collections .unmodifiableList (notificationCategories_ );
138- }
139- this .unknownFields = unknownFields .build ();
140- makeExtensionsImmutable ();
141- }
142- }
143-
14457 public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
14558 return com .google .cloud .essentialcontacts .v1 .Service
14659 .internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_descriptor ;
@@ -441,7 +354,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
441354 for (int i = 0 ; i < notificationCategories_ .size (); i ++) {
442355 output .writeEnumNoTag (notificationCategories_ .get (i ));
443356 }
444- unknownFields .writeTo (output );
357+ getUnknownFields () .writeTo (output );
445358 }
446359
447360 @ java .lang .Override
@@ -473,7 +386,7 @@ public int getSerializedSize() {
473386 }
474387 notificationCategoriesMemoizedSerializedSize = dataSize ;
475388 }
476- size += unknownFields .getSerializedSize ();
389+ size += getUnknownFields () .getSerializedSize ();
477390 memoizedSize = size ;
478391 return size ;
479392 }
@@ -493,7 +406,7 @@ public boolean equals(final java.lang.Object obj) {
493406 if (!notificationCategories_ .equals (other .notificationCategories_ )) return false ;
494407 if (getPageSize () != other .getPageSize ()) return false ;
495408 if (!getPageToken ().equals (other .getPageToken ())) return false ;
496- if (!unknownFields .equals (other .unknownFields )) return false ;
409+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
497410 return true ;
498411 }
499412
@@ -514,7 +427,7 @@ public int hashCode() {
514427 hash = (53 * hash ) + getPageSize ();
515428 hash = (37 * hash ) + PAGE_TOKEN_FIELD_NUMBER ;
516429 hash = (53 * hash ) + getPageToken ().hashCode ();
517- hash = (29 * hash ) + unknownFields .hashCode ();
430+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
518431 memoizedHashCode = hash ;
519432 return hash ;
520433 }
@@ -644,17 +557,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
644557 }
645558
646559 // Construct using com.google.cloud.essentialcontacts.v1.ComputeContactsRequest.newBuilder()
647- private Builder () {
648- maybeForceBuilderInitialization ();
649- }
560+ private Builder () {}
650561
651562 private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
652563 super (parent );
653- maybeForceBuilderInitialization ();
654- }
655-
656- private void maybeForceBuilderInitialization () {
657- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
658564 }
659565
660566 @ java .lang .Override
@@ -777,7 +683,7 @@ public Builder mergeFrom(com.google.cloud.essentialcontacts.v1.ComputeContactsRe
777683 pageToken_ = other .pageToken_ ;
778684 onChanged ();
779685 }
780- this .mergeUnknownFields (other .unknownFields );
686+ this .mergeUnknownFields (other .getUnknownFields () );
781687 onChanged ();
782688 return this ;
783689 }
@@ -792,18 +698,68 @@ public Builder mergeFrom(
792698 com .google .protobuf .CodedInputStream input ,
793699 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
794700 throws java .io .IOException {
795- com .google .cloud .essentialcontacts .v1 .ComputeContactsRequest parsedMessage = null ;
701+ if (extensionRegistry == null ) {
702+ throw new java .lang .NullPointerException ();
703+ }
796704 try {
797- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
705+ boolean done = false ;
706+ while (!done ) {
707+ int tag = input .readTag ();
708+ switch (tag ) {
709+ case 0 :
710+ done = true ;
711+ break ;
712+ case 10 :
713+ {
714+ parent_ = input .readStringRequireUtf8 ();
715+
716+ break ;
717+ } // case 10
718+ case 24 :
719+ {
720+ pageSize_ = input .readInt32 ();
721+
722+ break ;
723+ } // case 24
724+ case 34 :
725+ {
726+ pageToken_ = input .readStringRequireUtf8 ();
727+
728+ break ;
729+ } // case 34
730+ case 48 :
731+ {
732+ int tmpRaw = input .readEnum ();
733+ ensureNotificationCategoriesIsMutable ();
734+ notificationCategories_ .add (tmpRaw );
735+ break ;
736+ } // case 48
737+ case 50 :
738+ {
739+ int length = input .readRawVarint32 ();
740+ int oldLimit = input .pushLimit (length );
741+ while (input .getBytesUntilLimit () > 0 ) {
742+ int tmpRaw = input .readEnum ();
743+ ensureNotificationCategoriesIsMutable ();
744+ notificationCategories_ .add (tmpRaw );
745+ }
746+ input .popLimit (oldLimit );
747+ break ;
748+ } // case 50
749+ default :
750+ {
751+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
752+ done = true ; // was an endgroup tag
753+ }
754+ break ;
755+ } // default:
756+ } // switch (tag)
757+ } // while (!done)
798758 } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
799- parsedMessage =
800- (com .google .cloud .essentialcontacts .v1 .ComputeContactsRequest ) e .getUnfinishedMessage ();
801759 throw e .unwrapIOException ();
802760 } finally {
803- if (parsedMessage != null ) {
804- mergeFrom (parsedMessage );
805- }
806- }
761+ onChanged ();
762+ } // finally
807763 return this ;
808764 }
809765
@@ -1426,7 +1382,18 @@ public ComputeContactsRequest parsePartialFrom(
14261382 com .google .protobuf .CodedInputStream input ,
14271383 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
14281384 throws com .google .protobuf .InvalidProtocolBufferException {
1429- return new ComputeContactsRequest (input , extensionRegistry );
1385+ Builder builder = newBuilder ();
1386+ try {
1387+ builder .mergeFrom (input , extensionRegistry );
1388+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
1389+ throw e .setUnfinishedMessage (builder .buildPartial ());
1390+ } catch (com .google .protobuf .UninitializedMessageException e ) {
1391+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
1392+ } catch (java .io .IOException e ) {
1393+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
1394+ .setUnfinishedMessage (builder .buildPartial ());
1395+ }
1396+ return builder .buildPartial ();
14301397 }
14311398 };
14321399
0 commit comments