@@ -52,74 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
52
52
return this .unknownFields ;
53
53
}
54
54
55
- private AccountDefenderAssessment (
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
- int mutable_bitField0_ = 0 ;
64
- com .google .protobuf .UnknownFieldSet .Builder unknownFields =
65
- com .google .protobuf .UnknownFieldSet .newBuilder ();
66
- try {
67
- boolean done = false ;
68
- while (!done ) {
69
- int tag = input .readTag ();
70
- switch (tag ) {
71
- case 0 :
72
- done = true ;
73
- break ;
74
- case 8 :
75
- {
76
- int rawValue = input .readEnum ();
77
- if (!((mutable_bitField0_ & 0x00000001 ) != 0 )) {
78
- labels_ = new java .util .ArrayList <java .lang .Integer >();
79
- mutable_bitField0_ |= 0x00000001 ;
80
- }
81
- labels_ .add (rawValue );
82
- break ;
83
- }
84
- case 10 :
85
- {
86
- int length = input .readRawVarint32 ();
87
- int oldLimit = input .pushLimit (length );
88
- while (input .getBytesUntilLimit () > 0 ) {
89
- int rawValue = input .readEnum ();
90
- if (!((mutable_bitField0_ & 0x00000001 ) != 0 )) {
91
- labels_ = new java .util .ArrayList <java .lang .Integer >();
92
- mutable_bitField0_ |= 0x00000001 ;
93
- }
94
- labels_ .add (rawValue );
95
- }
96
- input .popLimit (oldLimit );
97
- break ;
98
- }
99
- default :
100
- {
101
- if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
102
- done = true ;
103
- }
104
- break ;
105
- }
106
- }
107
- }
108
- } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
109
- throw e .setUnfinishedMessage (this );
110
- } catch (com .google .protobuf .UninitializedMessageException e ) {
111
- throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (this );
112
- } catch (java .io .IOException e ) {
113
- throw new com .google .protobuf .InvalidProtocolBufferException (e ).setUnfinishedMessage (this );
114
- } finally {
115
- if (((mutable_bitField0_ & 0x00000001 ) != 0 )) {
116
- labels_ = java .util .Collections .unmodifiableList (labels_ );
117
- }
118
- this .unknownFields = unknownFields .build ();
119
- makeExtensionsImmutable ();
120
- }
121
- }
122
-
123
55
public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
124
56
return com .google .recaptchaenterprise .v1 .RecaptchaEnterpriseProto
125
57
.internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_descriptor ;
@@ -490,7 +422,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
490
422
for (int i = 0 ; i < labels_ .size (); i ++) {
491
423
output .writeEnumNoTag (labels_ .get (i ));
492
424
}
493
- unknownFields .writeTo (output );
425
+ getUnknownFields () .writeTo (output );
494
426
}
495
427
496
428
@ java .lang .Override
@@ -511,7 +443,7 @@ public int getSerializedSize() {
511
443
}
512
444
labelsMemoizedSerializedSize = dataSize ;
513
445
}
514
- size += unknownFields .getSerializedSize ();
446
+ size += getUnknownFields () .getSerializedSize ();
515
447
memoizedSize = size ;
516
448
return size ;
517
449
}
@@ -528,7 +460,7 @@ public boolean equals(final java.lang.Object obj) {
528
460
(com .google .recaptchaenterprise .v1 .AccountDefenderAssessment ) obj ;
529
461
530
462
if (!labels_ .equals (other .labels_ )) return false ;
531
- if (!unknownFields .equals (other .unknownFields )) return false ;
463
+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
532
464
return true ;
533
465
}
534
466
@@ -543,7 +475,7 @@ public int hashCode() {
543
475
hash = (37 * hash ) + LABELS_FIELD_NUMBER ;
544
476
hash = (53 * hash ) + labels_ .hashCode ();
545
477
}
546
- hash = (29 * hash ) + unknownFields .hashCode ();
478
+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
547
479
memoizedHashCode = hash ;
548
480
return hash ;
549
481
}
@@ -673,17 +605,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
673
605
}
674
606
675
607
// Construct using com.google.recaptchaenterprise.v1.AccountDefenderAssessment.newBuilder()
676
- private Builder () {
677
- maybeForceBuilderInitialization ();
678
- }
608
+ private Builder () {}
679
609
680
610
private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
681
611
super (parent );
682
- maybeForceBuilderInitialization ();
683
- }
684
-
685
- private void maybeForceBuilderInitialization () {
686
- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
687
612
}
688
613
689
614
@ java .lang .Override
@@ -784,7 +709,7 @@ public Builder mergeFrom(com.google.recaptchaenterprise.v1.AccountDefenderAssess
784
709
}
785
710
onChanged ();
786
711
}
787
- this .mergeUnknownFields (other .unknownFields );
712
+ this .mergeUnknownFields (other .getUnknownFields () );
788
713
onChanged ();
789
714
return this ;
790
715
}
@@ -799,18 +724,50 @@ public Builder mergeFrom(
799
724
com .google .protobuf .CodedInputStream input ,
800
725
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
801
726
throws java .io .IOException {
802
- com .google .recaptchaenterprise .v1 .AccountDefenderAssessment parsedMessage = null ;
727
+ if (extensionRegistry == null ) {
728
+ throw new java .lang .NullPointerException ();
729
+ }
803
730
try {
804
- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
731
+ boolean done = false ;
732
+ while (!done ) {
733
+ int tag = input .readTag ();
734
+ switch (tag ) {
735
+ case 0 :
736
+ done = true ;
737
+ break ;
738
+ case 8 :
739
+ {
740
+ int tmpRaw = input .readEnum ();
741
+ ensureLabelsIsMutable ();
742
+ labels_ .add (tmpRaw );
743
+ break ;
744
+ } // case 8
745
+ case 10 :
746
+ {
747
+ int length = input .readRawVarint32 ();
748
+ int oldLimit = input .pushLimit (length );
749
+ while (input .getBytesUntilLimit () > 0 ) {
750
+ int tmpRaw = input .readEnum ();
751
+ ensureLabelsIsMutable ();
752
+ labels_ .add (tmpRaw );
753
+ }
754
+ input .popLimit (oldLimit );
755
+ break ;
756
+ } // case 10
757
+ default :
758
+ {
759
+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
760
+ done = true ; // was an endgroup tag
761
+ }
762
+ break ;
763
+ } // default:
764
+ } // switch (tag)
765
+ } // while (!done)
805
766
} catch (com .google .protobuf .InvalidProtocolBufferException e ) {
806
- parsedMessage =
807
- (com .google .recaptchaenterprise .v1 .AccountDefenderAssessment ) e .getUnfinishedMessage ();
808
767
throw e .unwrapIOException ();
809
768
} finally {
810
- if (parsedMessage != null ) {
811
- mergeFrom (parsedMessage );
812
- }
813
- }
769
+ onChanged ();
770
+ } // finally
814
771
return this ;
815
772
}
816
773
@@ -1105,7 +1062,18 @@ public AccountDefenderAssessment parsePartialFrom(
1105
1062
com .google .protobuf .CodedInputStream input ,
1106
1063
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
1107
1064
throws com .google .protobuf .InvalidProtocolBufferException {
1108
- return new AccountDefenderAssessment (input , extensionRegistry );
1065
+ Builder builder = newBuilder ();
1066
+ try {
1067
+ builder .mergeFrom (input , extensionRegistry );
1068
+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
1069
+ throw e .setUnfinishedMessage (builder .buildPartial ());
1070
+ } catch (com .google .protobuf .UninitializedMessageException e ) {
1071
+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
1072
+ } catch (java .io .IOException e ) {
1073
+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
1074
+ .setUnfinishedMessage (builder .buildPartial ());
1075
+ }
1076
+ return builder .buildPartial ();
1109
1077
}
1110
1078
};
1111
1079
0 commit comments