@@ -50,77 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
50
50
return this .unknownFields ;
51
51
}
52
52
53
- private BetweenFilter (
54
- com .google .protobuf .CodedInputStream input ,
55
- com .google .protobuf .ExtensionRegistryLite extensionRegistry )
56
- throws com .google .protobuf .InvalidProtocolBufferException {
57
- this ();
58
- if (extensionRegistry == null ) {
59
- throw new java .lang .NullPointerException ();
60
- }
61
- com .google .protobuf .UnknownFieldSet .Builder unknownFields =
62
- com .google .protobuf .UnknownFieldSet .newBuilder ();
63
- try {
64
- boolean done = false ;
65
- while (!done ) {
66
- int tag = input .readTag ();
67
- switch (tag ) {
68
- case 0 :
69
- done = true ;
70
- break ;
71
- case 10 :
72
- {
73
- com .google .analytics .data .v1alpha .NumericValue .Builder subBuilder = null ;
74
- if (fromValue_ != null ) {
75
- subBuilder = fromValue_ .toBuilder ();
76
- }
77
- fromValue_ =
78
- input .readMessage (
79
- com .google .analytics .data .v1alpha .NumericValue .parser (), extensionRegistry );
80
- if (subBuilder != null ) {
81
- subBuilder .mergeFrom (fromValue_ );
82
- fromValue_ = subBuilder .buildPartial ();
83
- }
84
-
85
- break ;
86
- }
87
- case 18 :
88
- {
89
- com .google .analytics .data .v1alpha .NumericValue .Builder subBuilder = null ;
90
- if (toValue_ != null ) {
91
- subBuilder = toValue_ .toBuilder ();
92
- }
93
- toValue_ =
94
- input .readMessage (
95
- com .google .analytics .data .v1alpha .NumericValue .parser (), extensionRegistry );
96
- if (subBuilder != null ) {
97
- subBuilder .mergeFrom (toValue_ );
98
- toValue_ = subBuilder .buildPartial ();
99
- }
100
-
101
- break ;
102
- }
103
- default :
104
- {
105
- if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
106
- done = true ;
107
- }
108
- break ;
109
- }
110
- }
111
- }
112
- } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
113
- throw e .setUnfinishedMessage (this );
114
- } catch (com .google .protobuf .UninitializedMessageException e ) {
115
- throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (this );
116
- } catch (java .io .IOException e ) {
117
- throw new com .google .protobuf .InvalidProtocolBufferException (e ).setUnfinishedMessage (this );
118
- } finally {
119
- this .unknownFields = unknownFields .build ();
120
- makeExtensionsImmutable ();
121
- }
122
- }
123
-
124
53
public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
125
54
return com .google .analytics .data .v1alpha .ReportingApiProto
126
55
.internal_static_google_analytics_data_v1alpha_BetweenFilter_descriptor ;
@@ -252,7 +181,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
252
181
if (toValue_ != null ) {
253
182
output .writeMessage (2 , getToValue ());
254
183
}
255
- unknownFields .writeTo (output );
184
+ getUnknownFields () .writeTo (output );
256
185
}
257
186
258
187
@ java .lang .Override
@@ -267,7 +196,7 @@ public int getSerializedSize() {
267
196
if (toValue_ != null ) {
268
197
size += com .google .protobuf .CodedOutputStream .computeMessageSize (2 , getToValue ());
269
198
}
270
- size += unknownFields .getSerializedSize ();
199
+ size += getUnknownFields () .getSerializedSize ();
271
200
memoizedSize = size ;
272
201
return size ;
273
202
}
@@ -291,7 +220,7 @@ public boolean equals(final java.lang.Object obj) {
291
220
if (hasToValue ()) {
292
221
if (!getToValue ().equals (other .getToValue ())) return false ;
293
222
}
294
- if (!unknownFields .equals (other .unknownFields )) return false ;
223
+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
295
224
return true ;
296
225
}
297
226
@@ -310,7 +239,7 @@ public int hashCode() {
310
239
hash = (37 * hash ) + TO_VALUE_FIELD_NUMBER ;
311
240
hash = (53 * hash ) + getToValue ().hashCode ();
312
241
}
313
- hash = (29 * hash ) + unknownFields .hashCode ();
242
+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
314
243
memoizedHashCode = hash ;
315
244
return hash ;
316
245
}
@@ -439,17 +368,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
439
368
}
440
369
441
370
// Construct using com.google.analytics.data.v1alpha.BetweenFilter.newBuilder()
442
- private Builder () {
443
- maybeForceBuilderInitialization ();
444
- }
371
+ private Builder () {}
445
372
446
373
private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
447
374
super (parent );
448
- maybeForceBuilderInitialization ();
449
- }
450
-
451
- private void maybeForceBuilderInitialization () {
452
- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
453
375
}
454
376
455
377
@ java .lang .Override
@@ -560,7 +482,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.BetweenFilter other)
560
482
if (other .hasToValue ()) {
561
483
mergeToValue (other .getToValue ());
562
484
}
563
- this .mergeUnknownFields (other .unknownFields );
485
+ this .mergeUnknownFields (other .getUnknownFields () );
564
486
onChanged ();
565
487
return this ;
566
488
}
@@ -575,17 +497,43 @@ public Builder mergeFrom(
575
497
com .google .protobuf .CodedInputStream input ,
576
498
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
577
499
throws java .io .IOException {
578
- com .google .analytics .data .v1alpha .BetweenFilter parsedMessage = null ;
500
+ if (extensionRegistry == null ) {
501
+ throw new java .lang .NullPointerException ();
502
+ }
579
503
try {
580
- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
504
+ boolean done = false ;
505
+ while (!done ) {
506
+ int tag = input .readTag ();
507
+ switch (tag ) {
508
+ case 0 :
509
+ done = true ;
510
+ break ;
511
+ case 10 :
512
+ {
513
+ input .readMessage (getFromValueFieldBuilder ().getBuilder (), extensionRegistry );
514
+
515
+ break ;
516
+ } // case 10
517
+ case 18 :
518
+ {
519
+ input .readMessage (getToValueFieldBuilder ().getBuilder (), extensionRegistry );
520
+
521
+ break ;
522
+ } // case 18
523
+ default :
524
+ {
525
+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
526
+ done = true ; // was an endgroup tag
527
+ }
528
+ break ;
529
+ } // default:
530
+ } // switch (tag)
531
+ } // while (!done)
581
532
} catch (com .google .protobuf .InvalidProtocolBufferException e ) {
582
- parsedMessage = (com .google .analytics .data .v1alpha .BetweenFilter ) e .getUnfinishedMessage ();
583
533
throw e .unwrapIOException ();
584
534
} finally {
585
- if (parsedMessage != null ) {
586
- mergeFrom (parsedMessage );
587
- }
588
- }
535
+ onChanged ();
536
+ } // finally
589
537
return this ;
590
538
}
591
539
@@ -993,7 +941,18 @@ public BetweenFilter parsePartialFrom(
993
941
com .google .protobuf .CodedInputStream input ,
994
942
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
995
943
throws com .google .protobuf .InvalidProtocolBufferException {
996
- return new BetweenFilter (input , extensionRegistry );
944
+ Builder builder = newBuilder ();
945
+ try {
946
+ builder .mergeFrom (input , extensionRegistry );
947
+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
948
+ throw e .setUnfinishedMessage (builder .buildPartial ());
949
+ } catch (com .google .protobuf .UninitializedMessageException e ) {
950
+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
951
+ } catch (java .io .IOException e ) {
952
+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
953
+ .setUnfinishedMessage (builder .buildPartial ());
954
+ }
955
+ return builder .buildPartial ();
997
956
}
998
957
};
999
958
0 commit comments