@@ -54,93 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
54
54
return this .unknownFields ;
55
55
}
56
56
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
-
144
57
public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
145
58
return com .google .cloud .essentialcontacts .v1 .Service
146
59
.internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_descriptor ;
@@ -441,7 +354,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
441
354
for (int i = 0 ; i < notificationCategories_ .size (); i ++) {
442
355
output .writeEnumNoTag (notificationCategories_ .get (i ));
443
356
}
444
- unknownFields .writeTo (output );
357
+ getUnknownFields () .writeTo (output );
445
358
}
446
359
447
360
@ java .lang .Override
@@ -473,7 +386,7 @@ public int getSerializedSize() {
473
386
}
474
387
notificationCategoriesMemoizedSerializedSize = dataSize ;
475
388
}
476
- size += unknownFields .getSerializedSize ();
389
+ size += getUnknownFields () .getSerializedSize ();
477
390
memoizedSize = size ;
478
391
return size ;
479
392
}
@@ -493,7 +406,7 @@ public boolean equals(final java.lang.Object obj) {
493
406
if (!notificationCategories_ .equals (other .notificationCategories_ )) return false ;
494
407
if (getPageSize () != other .getPageSize ()) return false ;
495
408
if (!getPageToken ().equals (other .getPageToken ())) return false ;
496
- if (!unknownFields .equals (other .unknownFields )) return false ;
409
+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
497
410
return true ;
498
411
}
499
412
@@ -514,7 +427,7 @@ public int hashCode() {
514
427
hash = (53 * hash ) + getPageSize ();
515
428
hash = (37 * hash ) + PAGE_TOKEN_FIELD_NUMBER ;
516
429
hash = (53 * hash ) + getPageToken ().hashCode ();
517
- hash = (29 * hash ) + unknownFields .hashCode ();
430
+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
518
431
memoizedHashCode = hash ;
519
432
return hash ;
520
433
}
@@ -644,17 +557,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
644
557
}
645
558
646
559
// Construct using com.google.cloud.essentialcontacts.v1.ComputeContactsRequest.newBuilder()
647
- private Builder () {
648
- maybeForceBuilderInitialization ();
649
- }
560
+ private Builder () {}
650
561
651
562
private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
652
563
super (parent );
653
- maybeForceBuilderInitialization ();
654
- }
655
-
656
- private void maybeForceBuilderInitialization () {
657
- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
658
564
}
659
565
660
566
@ java .lang .Override
@@ -777,7 +683,7 @@ public Builder mergeFrom(com.google.cloud.essentialcontacts.v1.ComputeContactsRe
777
683
pageToken_ = other .pageToken_ ;
778
684
onChanged ();
779
685
}
780
- this .mergeUnknownFields (other .unknownFields );
686
+ this .mergeUnknownFields (other .getUnknownFields () );
781
687
onChanged ();
782
688
return this ;
783
689
}
@@ -792,18 +698,68 @@ public Builder mergeFrom(
792
698
com .google .protobuf .CodedInputStream input ,
793
699
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
794
700
throws java .io .IOException {
795
- com .google .cloud .essentialcontacts .v1 .ComputeContactsRequest parsedMessage = null ;
701
+ if (extensionRegistry == null ) {
702
+ throw new java .lang .NullPointerException ();
703
+ }
796
704
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)
798
758
} catch (com .google .protobuf .InvalidProtocolBufferException e ) {
799
- parsedMessage =
800
- (com .google .cloud .essentialcontacts .v1 .ComputeContactsRequest ) e .getUnfinishedMessage ();
801
759
throw e .unwrapIOException ();
802
760
} finally {
803
- if (parsedMessage != null ) {
804
- mergeFrom (parsedMessage );
805
- }
806
- }
761
+ onChanged ();
762
+ } // finally
807
763
return this ;
808
764
}
809
765
@@ -1426,7 +1382,18 @@ public ComputeContactsRequest parsePartialFrom(
1426
1382
com .google .protobuf .CodedInputStream input ,
1427
1383
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
1428
1384
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 ();
1430
1397
}
1431
1398
};
1432
1399
0 commit comments