@@ -50,77 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
50
50
return this .unknownFields ;
51
51
}
52
52
53
- private AccessBetweenFilter (
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 .admin .v1alpha .NumericValue .Builder subBuilder = null ;
74
- if (fromValue_ != null ) {
75
- subBuilder = fromValue_ .toBuilder ();
76
- }
77
- fromValue_ =
78
- input .readMessage (
79
- com .google .analytics .admin .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 .admin .v1alpha .NumericValue .Builder subBuilder = null ;
90
- if (toValue_ != null ) {
91
- subBuilder = toValue_ .toBuilder ();
92
- }
93
- toValue_ =
94
- input .readMessage (
95
- com .google .analytics .admin .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 .admin .v1alpha .AccessReportProto
126
55
.internal_static_google_analytics_admin_v1alpha_AccessBetweenFilter_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
}
@@ -440,17 +369,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
440
369
}
441
370
442
371
// Construct using com.google.analytics.admin.v1alpha.AccessBetweenFilter.newBuilder()
443
- private Builder () {
444
- maybeForceBuilderInitialization ();
445
- }
372
+ private Builder () {}
446
373
447
374
private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
448
375
super (parent );
449
- maybeForceBuilderInitialization ();
450
- }
451
-
452
- private void maybeForceBuilderInitialization () {
453
- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
454
376
}
455
377
456
378
@ java .lang .Override
@@ -561,7 +483,7 @@ public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessBetweenFilter
561
483
if (other .hasToValue ()) {
562
484
mergeToValue (other .getToValue ());
563
485
}
564
- this .mergeUnknownFields (other .unknownFields );
486
+ this .mergeUnknownFields (other .getUnknownFields () );
565
487
onChanged ();
566
488
return this ;
567
489
}
@@ -576,18 +498,43 @@ public Builder mergeFrom(
576
498
com .google .protobuf .CodedInputStream input ,
577
499
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
578
500
throws java .io .IOException {
579
- com .google .analytics .admin .v1alpha .AccessBetweenFilter parsedMessage = null ;
501
+ if (extensionRegistry == null ) {
502
+ throw new java .lang .NullPointerException ();
503
+ }
580
504
try {
581
- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
505
+ boolean done = false ;
506
+ while (!done ) {
507
+ int tag = input .readTag ();
508
+ switch (tag ) {
509
+ case 0 :
510
+ done = true ;
511
+ break ;
512
+ case 10 :
513
+ {
514
+ input .readMessage (getFromValueFieldBuilder ().getBuilder (), extensionRegistry );
515
+
516
+ break ;
517
+ } // case 10
518
+ case 18 :
519
+ {
520
+ input .readMessage (getToValueFieldBuilder ().getBuilder (), extensionRegistry );
521
+
522
+ break ;
523
+ } // case 18
524
+ default :
525
+ {
526
+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
527
+ done = true ; // was an endgroup tag
528
+ }
529
+ break ;
530
+ } // default:
531
+ } // switch (tag)
532
+ } // while (!done)
582
533
} catch (com .google .protobuf .InvalidProtocolBufferException e ) {
583
- parsedMessage =
584
- (com .google .analytics .admin .v1alpha .AccessBetweenFilter ) e .getUnfinishedMessage ();
585
534
throw e .unwrapIOException ();
586
535
} finally {
587
- if (parsedMessage != null ) {
588
- mergeFrom (parsedMessage );
589
- }
590
- }
536
+ onChanged ();
537
+ } // finally
591
538
return this ;
592
539
}
593
540
@@ -995,7 +942,18 @@ public AccessBetweenFilter parsePartialFrom(
995
942
com .google .protobuf .CodedInputStream input ,
996
943
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
997
944
throws com .google .protobuf .InvalidProtocolBufferException {
998
- return new AccessBetweenFilter (input , extensionRegistry );
945
+ Builder builder = newBuilder ();
946
+ try {
947
+ builder .mergeFrom (input , extensionRegistry );
948
+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
949
+ throw e .setUnfinishedMessage (builder .buildPartial ());
950
+ } catch (com .google .protobuf .UninitializedMessageException e ) {
951
+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
952
+ } catch (java .io .IOException e ) {
953
+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
954
+ .setUnfinishedMessage (builder .buildPartial ());
955
+ }
956
+ return builder .buildPartial ();
999
957
}
1000
958
};
1001
959
0 commit comments