@@ -53,59 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5353 return this .unknownFields ;
5454 }
5555
56- private AccessApprovalServiceAccount (
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- name_ = s ;
79- break ;
80- }
81- case 18 :
82- {
83- java .lang .String s = input .readStringRequireUtf8 ();
84-
85- accountEmail_ = 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 .cloud .accessapproval .v1 .AccessApprovalProto
11158 .internal_static_google_cloud_accessapproval_v1_AccessApprovalServiceAccount_descriptor ;
@@ -245,7 +192,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
245192 if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (accountEmail_ )) {
246193 com .google .protobuf .GeneratedMessageV3 .writeString (output , 2 , accountEmail_ );
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 (accountEmail_ )) {
261208 size += com .google .protobuf .GeneratedMessageV3 .computeStringSize (2 , accountEmail_ );
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 (!getName ().equals (other .getName ())) return false ;
280227 if (!getAccountEmail ().equals (other .getAccountEmail ())) 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 ) + getName ().hashCode ();
294241 hash = (37 * hash ) + ACCOUNT_EMAIL_FIELD_NUMBER ;
295242 hash = (53 * hash ) + getAccountEmail ().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.cloud.accessapproval.v1.AccessApprovalServiceAccount.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
@@ -533,7 +473,7 @@ public Builder mergeFrom(
533473 accountEmail_ = other .accountEmail_ ;
534474 onChanged ();
535475 }
536- this .mergeUnknownFields (other .unknownFields );
476+ this .mergeUnknownFields (other .getUnknownFields () );
537477 onChanged ();
538478 return this ;
539479 }
@@ -548,19 +488,43 @@ public Builder mergeFrom(
548488 com .google .protobuf .CodedInputStream input ,
549489 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
550490 throws java .io .IOException {
551- com .google .cloud .accessapproval .v1 .AccessApprovalServiceAccount parsedMessage = null ;
491+ if (extensionRegistry == null ) {
492+ throw new java .lang .NullPointerException ();
493+ }
552494 try {
553- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
495+ boolean done = false ;
496+ while (!done ) {
497+ int tag = input .readTag ();
498+ switch (tag ) {
499+ case 0 :
500+ done = true ;
501+ break ;
502+ case 10 :
503+ {
504+ name_ = input .readStringRequireUtf8 ();
505+
506+ break ;
507+ } // case 10
508+ case 18 :
509+ {
510+ accountEmail_ = input .readStringRequireUtf8 ();
511+
512+ break ;
513+ } // case 18
514+ default :
515+ {
516+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
517+ done = true ; // was an endgroup tag
518+ }
519+ break ;
520+ } // default:
521+ } // switch (tag)
522+ } // while (!done)
554523 } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
555- parsedMessage =
556- (com .google .cloud .accessapproval .v1 .AccessApprovalServiceAccount )
557- e .getUnfinishedMessage ();
558524 throw e .unwrapIOException ();
559525 } finally {
560- if (parsedMessage != null ) {
561- mergeFrom (parsedMessage );
562- }
563- }
526+ onChanged ();
527+ } // finally
564528 return this ;
565529 }
566530
@@ -825,7 +789,18 @@ public AccessApprovalServiceAccount parsePartialFrom(
825789 com .google .protobuf .CodedInputStream input ,
826790 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
827791 throws com .google .protobuf .InvalidProtocolBufferException {
828- return new AccessApprovalServiceAccount (input , extensionRegistry );
792+ Builder builder = newBuilder ();
793+ try {
794+ builder .mergeFrom (input , extensionRegistry );
795+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
796+ throw e .setUnfinishedMessage (builder .buildPartial ());
797+ } catch (com .google .protobuf .UninitializedMessageException e ) {
798+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
799+ } catch (java .io .IOException e ) {
800+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
801+ .setUnfinishedMessage (builder .buildPartial ());
802+ }
803+ return builder .buildPartial ();
829804 }
830805 };
831806
0 commit comments