@@ -53,59 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5353 return this .unknownFields ;
5454 }
5555
56- private ReportPhishingRequest (
57- com .google .protobuf .CodedInputStream input ,
58- com .google .protobuf .ExtensionRegistryLite extensionRegistry )
59- throws com .google .protobuf .InvalidProtocolBufferException {
60- this ();
61- if (extensionRegistry == null ) {
62- throw new java .lang .NullPointerException ();
63- }
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 10 :
75- {
76- java .lang .String s = input .readStringRequireUtf8 ();
77-
78- parent_ = s ;
79- break ;
80- }
81- case 18 :
82- {
83- java .lang .String s = input .readStringRequireUtf8 ();
84-
85- uri_ = s ;
86- break ;
87- }
88- default :
89- {
90- if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
91- done = true ;
92- }
93- break ;
94- }
95- }
96- }
97- } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
98- throw e .setUnfinishedMessage (this );
99- } catch (com .google .protobuf .UninitializedMessageException e ) {
100- throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (this );
101- } catch (java .io .IOException e ) {
102- throw new com .google .protobuf .InvalidProtocolBufferException (e ).setUnfinishedMessage (this );
103- } finally {
104- this .unknownFields = unknownFields .build ();
105- makeExtensionsImmutable ();
106- }
107- }
108-
10956 public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
11057 return com .google .phishingprotection .v1beta1 .PhishingProtectionProto
11158 .internal_static_google_cloud_phishingprotection_v1beta1_ReportPhishingRequest_descriptor ;
@@ -245,7 +192,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
245192 if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (uri_ )) {
246193 com .google .protobuf .GeneratedMessageV3 .writeString (output , 2 , uri_ );
247194 }
248- unknownFields .writeTo (output );
195+ getUnknownFields () .writeTo (output );
249196 }
250197
251198 @ java .lang .Override
@@ -260,7 +207,7 @@ public int getSerializedSize() {
260207 if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (uri_ )) {
261208 size += com .google .protobuf .GeneratedMessageV3 .computeStringSize (2 , uri_ );
262209 }
263- size += unknownFields .getSerializedSize ();
210+ size += getUnknownFields () .getSerializedSize ();
264211 memoizedSize = size ;
265212 return size ;
266213 }
@@ -278,7 +225,7 @@ public boolean equals(final java.lang.Object obj) {
278225
279226 if (!getParent ().equals (other .getParent ())) return false ;
280227 if (!getUri ().equals (other .getUri ())) return false ;
281- if (!unknownFields .equals (other .unknownFields )) return false ;
228+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
282229 return true ;
283230 }
284231
@@ -293,7 +240,7 @@ public int hashCode() {
293240 hash = (53 * hash ) + getParent ().hashCode ();
294241 hash = (37 * hash ) + URI_FIELD_NUMBER ;
295242 hash = (53 * hash ) + getUri ().hashCode ();
296- hash = (29 * hash ) + unknownFields .hashCode ();
243+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
297244 memoizedHashCode = hash ;
298245 return hash ;
299246 }
@@ -423,17 +370,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
423370 }
424371
425372 // Construct using com.google.phishingprotection.v1beta1.ReportPhishingRequest.newBuilder()
426- private Builder () {
427- maybeForceBuilderInitialization ();
428- }
373+ private Builder () {}
429374
430375 private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
431376 super (parent );
432- maybeForceBuilderInitialization ();
433- }
434-
435- private void maybeForceBuilderInitialization () {
436- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
437377 }
438378
439379 @ java .lang .Override
@@ -530,7 +470,7 @@ public Builder mergeFrom(com.google.phishingprotection.v1beta1.ReportPhishingReq
530470 uri_ = other .uri_ ;
531471 onChanged ();
532472 }
533- this .mergeUnknownFields (other .unknownFields );
473+ this .mergeUnknownFields (other .getUnknownFields () );
534474 onChanged ();
535475 return this ;
536476 }
@@ -545,18 +485,43 @@ public Builder mergeFrom(
545485 com .google .protobuf .CodedInputStream input ,
546486 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
547487 throws java .io .IOException {
548- com .google .phishingprotection .v1beta1 .ReportPhishingRequest parsedMessage = null ;
488+ if (extensionRegistry == null ) {
489+ throw new java .lang .NullPointerException ();
490+ }
549491 try {
550- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
492+ boolean done = false ;
493+ while (!done ) {
494+ int tag = input .readTag ();
495+ switch (tag ) {
496+ case 0 :
497+ done = true ;
498+ break ;
499+ case 10 :
500+ {
501+ parent_ = input .readStringRequireUtf8 ();
502+
503+ break ;
504+ } // case 10
505+ case 18 :
506+ {
507+ uri_ = input .readStringRequireUtf8 ();
508+
509+ break ;
510+ } // case 18
511+ default :
512+ {
513+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
514+ done = true ; // was an endgroup tag
515+ }
516+ break ;
517+ } // default:
518+ } // switch (tag)
519+ } // while (!done)
551520 } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
552- parsedMessage =
553- (com .google .phishingprotection .v1beta1 .ReportPhishingRequest ) e .getUnfinishedMessage ();
554521 throw e .unwrapIOException ();
555522 } finally {
556- if (parsedMessage != null ) {
557- mergeFrom (parsedMessage );
558- }
559- }
523+ onChanged ();
524+ } // finally
560525 return this ;
561526 }
562527
@@ -819,7 +784,18 @@ public ReportPhishingRequest parsePartialFrom(
819784 com .google .protobuf .CodedInputStream input ,
820785 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
821786 throws com .google .protobuf .InvalidProtocolBufferException {
822- return new ReportPhishingRequest (input , extensionRegistry );
787+ Builder builder = newBuilder ();
788+ try {
789+ builder .mergeFrom (input , extensionRegistry );
790+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
791+ throw e .setUnfinishedMessage (builder .buildPartial ());
792+ } catch (com .google .protobuf .UninitializedMessageException e ) {
793+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
794+ } catch (java .io .IOException e ) {
795+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
796+ .setUnfinishedMessage (builder .buildPartial ());
797+ }
798+ return builder .buildPartial ();
823799 }
824800 };
825801
0 commit comments