@@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
52
52
return this .unknownFields ;
53
53
}
54
54
55
- private DeleteEventsRequest (
56
- com .google .protobuf .CodedInputStream input ,
57
- com .google .protobuf .ExtensionRegistryLite extensionRegistry )
58
- throws com .google .protobuf .InvalidProtocolBufferException {
59
- this ();
60
- if (extensionRegistry == null ) {
61
- throw new java .lang .NullPointerException ();
62
- }
63
- com .google .protobuf .UnknownFieldSet .Builder unknownFields =
64
- com .google .protobuf .UnknownFieldSet .newBuilder ();
65
- try {
66
- boolean done = false ;
67
- while (!done ) {
68
- int tag = input .readTag ();
69
- switch (tag ) {
70
- case 0 :
71
- done = true ;
72
- break ;
73
- case 10 :
74
- {
75
- java .lang .String s = input .readStringRequireUtf8 ();
76
-
77
- projectName_ = s ;
78
- break ;
79
- }
80
- default :
81
- {
82
- if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
83
- done = true ;
84
- }
85
- break ;
86
- }
87
- }
88
- }
89
- } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
90
- throw e .setUnfinishedMessage (this );
91
- } catch (com .google .protobuf .UninitializedMessageException e ) {
92
- throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (this );
93
- } catch (java .io .IOException e ) {
94
- throw new com .google .protobuf .InvalidProtocolBufferException (e ).setUnfinishedMessage (this );
95
- } finally {
96
- this .unknownFields = unknownFields .build ();
97
- makeExtensionsImmutable ();
98
- }
99
- }
100
-
101
55
public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
102
56
return com .google .devtools .clouderrorreporting .v1beta1 .ErrorStatsServiceProto
103
57
.internal_static_google_devtools_clouderrorreporting_v1beta1_DeleteEventsRequest_descriptor ;
@@ -191,7 +145,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
191
145
if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (projectName_ )) {
192
146
com .google .protobuf .GeneratedMessageV3 .writeString (output , 1 , projectName_ );
193
147
}
194
- unknownFields .writeTo (output );
148
+ getUnknownFields () .writeTo (output );
195
149
}
196
150
197
151
@ java .lang .Override
@@ -203,7 +157,7 @@ public int getSerializedSize() {
203
157
if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (projectName_ )) {
204
158
size += com .google .protobuf .GeneratedMessageV3 .computeStringSize (1 , projectName_ );
205
159
}
206
- size += unknownFields .getSerializedSize ();
160
+ size += getUnknownFields () .getSerializedSize ();
207
161
memoizedSize = size ;
208
162
return size ;
209
163
}
@@ -220,7 +174,7 @@ public boolean equals(final java.lang.Object obj) {
220
174
(com .google .devtools .clouderrorreporting .v1beta1 .DeleteEventsRequest ) obj ;
221
175
222
176
if (!getProjectName ().equals (other .getProjectName ())) return false ;
223
- if (!unknownFields .equals (other .unknownFields )) return false ;
177
+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
224
178
return true ;
225
179
}
226
180
@@ -233,7 +187,7 @@ public int hashCode() {
233
187
hash = (19 * hash ) + getDescriptor ().hashCode ();
234
188
hash = (37 * hash ) + PROJECT_NAME_FIELD_NUMBER ;
235
189
hash = (53 * hash ) + getProjectName ().hashCode ();
236
- hash = (29 * hash ) + unknownFields .hashCode ();
190
+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
237
191
memoizedHashCode = hash ;
238
192
return hash ;
239
193
}
@@ -365,17 +319,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
365
319
366
320
// Construct using
367
321
// com.google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest.newBuilder()
368
- private Builder () {
369
- maybeForceBuilderInitialization ();
370
- }
322
+ private Builder () {}
371
323
372
324
private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
373
325
super (parent );
374
- maybeForceBuilderInitialization ();
375
- }
376
-
377
- private void maybeForceBuilderInitialization () {
378
- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
379
326
}
380
327
381
328
@ java .lang .Override
@@ -470,7 +417,7 @@ public Builder mergeFrom(
470
417
projectName_ = other .projectName_ ;
471
418
onChanged ();
472
419
}
473
- this .mergeUnknownFields (other .unknownFields );
420
+ this .mergeUnknownFields (other .getUnknownFields () );
474
421
onChanged ();
475
422
return this ;
476
423
}
@@ -485,19 +432,37 @@ public Builder mergeFrom(
485
432
com .google .protobuf .CodedInputStream input ,
486
433
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
487
434
throws java .io .IOException {
488
- com .google .devtools .clouderrorreporting .v1beta1 .DeleteEventsRequest parsedMessage = null ;
435
+ if (extensionRegistry == null ) {
436
+ throw new java .lang .NullPointerException ();
437
+ }
489
438
try {
490
- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
439
+ boolean done = false ;
440
+ while (!done ) {
441
+ int tag = input .readTag ();
442
+ switch (tag ) {
443
+ case 0 :
444
+ done = true ;
445
+ break ;
446
+ case 10 :
447
+ {
448
+ projectName_ = input .readStringRequireUtf8 ();
449
+
450
+ break ;
451
+ } // case 10
452
+ default :
453
+ {
454
+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
455
+ done = true ; // was an endgroup tag
456
+ }
457
+ break ;
458
+ } // default:
459
+ } // switch (tag)
460
+ } // while (!done)
491
461
} catch (com .google .protobuf .InvalidProtocolBufferException e ) {
492
- parsedMessage =
493
- (com .google .devtools .clouderrorreporting .v1beta1 .DeleteEventsRequest )
494
- e .getUnfinishedMessage ();
495
462
throw e .unwrapIOException ();
496
463
} finally {
497
- if (parsedMessage != null ) {
498
- mergeFrom (parsedMessage );
499
- }
500
- }
464
+ onChanged ();
465
+ } // finally
501
466
return this ;
502
467
}
503
468
@@ -671,7 +636,18 @@ public DeleteEventsRequest parsePartialFrom(
671
636
com .google .protobuf .CodedInputStream input ,
672
637
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
673
638
throws com .google .protobuf .InvalidProtocolBufferException {
674
- return new DeleteEventsRequest (input , extensionRegistry );
639
+ Builder builder = newBuilder ();
640
+ try {
641
+ builder .mergeFrom (input , extensionRegistry );
642
+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
643
+ throw e .setUnfinishedMessage (builder .buildPartial ());
644
+ } catch (com .google .protobuf .UninitializedMessageException e ) {
645
+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
646
+ } catch (java .io .IOException e ) {
647
+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
648
+ .setUnfinishedMessage (builder .buildPartial ());
649
+ }
650
+ return builder .buildPartial ();
675
651
}
676
652
};
677
653
0 commit comments