@@ -53,66 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
53
53
return this .unknownFields ;
54
54
}
55
55
56
- private BatchEnableServicesRequest (
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
- parent_ = s ;
80
- break ;
81
- }
82
- case 18 :
83
- {
84
- java .lang .String s = input .readStringRequireUtf8 ();
85
- if (!((mutable_bitField0_ & 0x00000001 ) != 0 )) {
86
- serviceIds_ = new com .google .protobuf .LazyStringArrayList ();
87
- mutable_bitField0_ |= 0x00000001 ;
88
- }
89
- serviceIds_ .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
- serviceIds_ = serviceIds_ .getUnmodifiableView ();
110
- }
111
- this .unknownFields = unknownFields .build ();
112
- makeExtensionsImmutable ();
113
- }
114
- }
115
-
116
56
public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
117
57
return com .google .api .serviceusage .v1 .ServiceUsageProto
118
58
.internal_static_google_api_serviceusage_v1_BatchEnableServicesRequest_descriptor ;
@@ -292,7 +232,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
292
232
for (int i = 0 ; i < serviceIds_ .size (); i ++) {
293
233
com .google .protobuf .GeneratedMessageV3 .writeString (output , 2 , serviceIds_ .getRaw (i ));
294
234
}
295
- unknownFields .writeTo (output );
235
+ getUnknownFields () .writeTo (output );
296
236
}
297
237
298
238
@ java .lang .Override
@@ -312,7 +252,7 @@ public int getSerializedSize() {
312
252
size += dataSize ;
313
253
size += 1 * getServiceIdsList ().size ();
314
254
}
315
- size += unknownFields .getSerializedSize ();
255
+ size += getUnknownFields () .getSerializedSize ();
316
256
memoizedSize = size ;
317
257
return size ;
318
258
}
@@ -330,7 +270,7 @@ public boolean equals(final java.lang.Object obj) {
330
270
331
271
if (!getParent ().equals (other .getParent ())) return false ;
332
272
if (!getServiceIdsList ().equals (other .getServiceIdsList ())) return false ;
333
- if (!unknownFields .equals (other .unknownFields )) return false ;
273
+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
334
274
return true ;
335
275
}
336
276
@@ -347,7 +287,7 @@ public int hashCode() {
347
287
hash = (37 * hash ) + SERVICE_IDS_FIELD_NUMBER ;
348
288
hash = (53 * hash ) + getServiceIdsList ().hashCode ();
349
289
}
350
- hash = (29 * hash ) + unknownFields .hashCode ();
290
+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
351
291
memoizedHashCode = hash ;
352
292
return hash ;
353
293
}
@@ -477,17 +417,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
477
417
}
478
418
479
419
// Construct using com.google.api.serviceusage.v1.BatchEnableServicesRequest.newBuilder()
480
- private Builder () {
481
- maybeForceBuilderInitialization ();
482
- }
420
+ private Builder () {}
483
421
484
422
private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
485
423
super (parent );
486
- maybeForceBuilderInitialization ();
487
- }
488
-
489
- private void maybeForceBuilderInitialization () {
490
- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
491
424
}
492
425
493
426
@ java .lang .Override
@@ -595,7 +528,7 @@ public Builder mergeFrom(com.google.api.serviceusage.v1.BatchEnableServicesReque
595
528
}
596
529
onChanged ();
597
530
}
598
- this .mergeUnknownFields (other .unknownFields );
531
+ this .mergeUnknownFields (other .getUnknownFields () );
599
532
onChanged ();
600
533
return this ;
601
534
}
@@ -610,18 +543,44 @@ public Builder mergeFrom(
610
543
com .google .protobuf .CodedInputStream input ,
611
544
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
612
545
throws java .io .IOException {
613
- com .google .api .serviceusage .v1 .BatchEnableServicesRequest parsedMessage = null ;
546
+ if (extensionRegistry == null ) {
547
+ throw new java .lang .NullPointerException ();
548
+ }
614
549
try {
615
- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
550
+ boolean done = false ;
551
+ while (!done ) {
552
+ int tag = input .readTag ();
553
+ switch (tag ) {
554
+ case 0 :
555
+ done = true ;
556
+ break ;
557
+ case 10 :
558
+ {
559
+ parent_ = input .readStringRequireUtf8 ();
560
+
561
+ break ;
562
+ } // case 10
563
+ case 18 :
564
+ {
565
+ java .lang .String s = input .readStringRequireUtf8 ();
566
+ ensureServiceIdsIsMutable ();
567
+ serviceIds_ .add (s );
568
+ break ;
569
+ } // case 18
570
+ default :
571
+ {
572
+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
573
+ done = true ; // was an endgroup tag
574
+ }
575
+ break ;
576
+ } // default:
577
+ } // switch (tag)
578
+ } // while (!done)
616
579
} catch (com .google .protobuf .InvalidProtocolBufferException e ) {
617
- parsedMessage =
618
- (com .google .api .serviceusage .v1 .BatchEnableServicesRequest ) e .getUnfinishedMessage ();
619
580
throw e .unwrapIOException ();
620
581
} finally {
621
- if (parsedMessage != null ) {
622
- mergeFrom (parsedMessage );
623
- }
624
- }
582
+ onChanged ();
583
+ } // finally
625
584
return this ;
626
585
}
627
586
@@ -1011,7 +970,18 @@ public BatchEnableServicesRequest parsePartialFrom(
1011
970
com .google .protobuf .CodedInputStream input ,
1012
971
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
1013
972
throws com .google .protobuf .InvalidProtocolBufferException {
1014
- return new BatchEnableServicesRequest (input , extensionRegistry );
973
+ Builder builder = newBuilder ();
974
+ try {
975
+ builder .mergeFrom (input , extensionRegistry );
976
+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
977
+ throw e .setUnfinishedMessage (builder .buildPartial ());
978
+ } catch (com .google .protobuf .UninitializedMessageException e ) {
979
+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
980
+ } catch (java .io .IOException e ) {
981
+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
982
+ .setUnfinishedMessage (builder .buildPartial ());
983
+ }
984
+ return builder .buildPartial ();
1015
985
}
1016
986
};
1017
987
0 commit comments