@@ -50,77 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5050 return this .unknownFields ;
5151 }
5252
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-
12453 public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
12554 return com .google .analytics .admin .v1alpha .AccessReportProto
12655 .internal_static_google_analytics_admin_v1alpha_AccessBetweenFilter_descriptor ;
@@ -252,7 +181,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
252181 if (toValue_ != null ) {
253182 output .writeMessage (2 , getToValue ());
254183 }
255- unknownFields .writeTo (output );
184+ getUnknownFields () .writeTo (output );
256185 }
257186
258187 @ java .lang .Override
@@ -267,7 +196,7 @@ public int getSerializedSize() {
267196 if (toValue_ != null ) {
268197 size += com .google .protobuf .CodedOutputStream .computeMessageSize (2 , getToValue ());
269198 }
270- size += unknownFields .getSerializedSize ();
199+ size += getUnknownFields () .getSerializedSize ();
271200 memoizedSize = size ;
272201 return size ;
273202 }
@@ -291,7 +220,7 @@ public boolean equals(final java.lang.Object obj) {
291220 if (hasToValue ()) {
292221 if (!getToValue ().equals (other .getToValue ())) return false ;
293222 }
294- if (!unknownFields .equals (other .unknownFields )) return false ;
223+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
295224 return true ;
296225 }
297226
@@ -310,7 +239,7 @@ public int hashCode() {
310239 hash = (37 * hash ) + TO_VALUE_FIELD_NUMBER ;
311240 hash = (53 * hash ) + getToValue ().hashCode ();
312241 }
313- hash = (29 * hash ) + unknownFields .hashCode ();
242+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
314243 memoizedHashCode = hash ;
315244 return hash ;
316245 }
@@ -440,17 +369,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
440369 }
441370
442371 // Construct using com.google.analytics.admin.v1alpha.AccessBetweenFilter.newBuilder()
443- private Builder () {
444- maybeForceBuilderInitialization ();
445- }
372+ private Builder () {}
446373
447374 private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
448375 super (parent );
449- maybeForceBuilderInitialization ();
450- }
451-
452- private void maybeForceBuilderInitialization () {
453- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
454376 }
455377
456378 @ java .lang .Override
@@ -561,7 +483,7 @@ public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessBetweenFilter
561483 if (other .hasToValue ()) {
562484 mergeToValue (other .getToValue ());
563485 }
564- this .mergeUnknownFields (other .unknownFields );
486+ this .mergeUnknownFields (other .getUnknownFields () );
565487 onChanged ();
566488 return this ;
567489 }
@@ -576,18 +498,43 @@ public Builder mergeFrom(
576498 com .google .protobuf .CodedInputStream input ,
577499 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
578500 throws java .io .IOException {
579- com .google .analytics .admin .v1alpha .AccessBetweenFilter parsedMessage = null ;
501+ if (extensionRegistry == null ) {
502+ throw new java .lang .NullPointerException ();
503+ }
580504 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)
582533 } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
583- parsedMessage =
584- (com .google .analytics .admin .v1alpha .AccessBetweenFilter ) e .getUnfinishedMessage ();
585534 throw e .unwrapIOException ();
586535 } finally {
587- if (parsedMessage != null ) {
588- mergeFrom (parsedMessage );
589- }
590- }
536+ onChanged ();
537+ } // finally
591538 return this ;
592539 }
593540
@@ -995,7 +942,18 @@ public AccessBetweenFilter parsePartialFrom(
995942 com .google .protobuf .CodedInputStream input ,
996943 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
997944 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 ();
999957 }
1000958 };
1001959
0 commit comments