@@ -46,92 +46,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
4646 return this .unknownFields ;
4747 }
4848
49- private GenerateAccessTokenRequest (
50- com .google .protobuf .CodedInputStream input ,
51- com .google .protobuf .ExtensionRegistryLite extensionRegistry )
52- throws com .google .protobuf .InvalidProtocolBufferException {
53- this ();
54- if (extensionRegistry == null ) {
55- throw new java .lang .NullPointerException ();
56- }
57- int mutable_bitField0_ = 0 ;
58- com .google .protobuf .UnknownFieldSet .Builder unknownFields =
59- com .google .protobuf .UnknownFieldSet .newBuilder ();
60- try {
61- boolean done = false ;
62- while (!done ) {
63- int tag = input .readTag ();
64- switch (tag ) {
65- case 0 :
66- done = true ;
67- break ;
68- case 10 :
69- {
70- java .lang .String s = input .readStringRequireUtf8 ();
71-
72- name_ = s ;
73- break ;
74- }
75- case 18 :
76- {
77- java .lang .String s = input .readStringRequireUtf8 ();
78- if (!((mutable_bitField0_ & 0x00000001 ) != 0 )) {
79- delegates_ = new com .google .protobuf .LazyStringArrayList ();
80- mutable_bitField0_ |= 0x00000001 ;
81- }
82- delegates_ .add (s );
83- break ;
84- }
85- case 34 :
86- {
87- java .lang .String s = input .readStringRequireUtf8 ();
88- if (!((mutable_bitField0_ & 0x00000002 ) != 0 )) {
89- scope_ = new com .google .protobuf .LazyStringArrayList ();
90- mutable_bitField0_ |= 0x00000002 ;
91- }
92- scope_ .add (s );
93- break ;
94- }
95- case 58 :
96- {
97- com .google .protobuf .Duration .Builder subBuilder = null ;
98- if (lifetime_ != null ) {
99- subBuilder = lifetime_ .toBuilder ();
100- }
101- lifetime_ =
102- input .readMessage (com .google .protobuf .Duration .parser (), extensionRegistry );
103- if (subBuilder != null ) {
104- subBuilder .mergeFrom (lifetime_ );
105- lifetime_ = subBuilder .buildPartial ();
106- }
107-
108- break ;
109- }
110- default :
111- {
112- if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
113- done = true ;
114- }
115- break ;
116- }
117- }
118- }
119- } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
120- throw e .setUnfinishedMessage (this );
121- } catch (java .io .IOException e ) {
122- throw new com .google .protobuf .InvalidProtocolBufferException (e ).setUnfinishedMessage (this );
123- } finally {
124- if (((mutable_bitField0_ & 0x00000001 ) != 0 )) {
125- delegates_ = delegates_ .getUnmodifiableView ();
126- }
127- if (((mutable_bitField0_ & 0x00000002 ) != 0 )) {
128- scope_ = scope_ .getUnmodifiableView ();
129- }
130- this .unknownFields = unknownFields .build ();
131- makeExtensionsImmutable ();
132- }
133- }
134-
13549 public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
13650 return com .google .cloud .iam .credentials .v1 .IAMCredentialsCommonProto
13751 .internal_static_google_iam_credentials_v1_GenerateAccessTokenRequest_descriptor ;
@@ -453,7 +367,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
453367 if (lifetime_ != null ) {
454368 output .writeMessage (7 , getLifetime ());
455369 }
456- unknownFields .writeTo (output );
370+ getUnknownFields () .writeTo (output );
457371 }
458372
459373 @ java .lang .Override
@@ -484,7 +398,7 @@ public int getSerializedSize() {
484398 if (lifetime_ != null ) {
485399 size += com .google .protobuf .CodedOutputStream .computeMessageSize (7 , getLifetime ());
486400 }
487- size += unknownFields .getSerializedSize ();
401+ size += getUnknownFields () .getSerializedSize ();
488402 memoizedSize = size ;
489403 return size ;
490404 }
@@ -507,7 +421,7 @@ public boolean equals(final java.lang.Object obj) {
507421 if (hasLifetime ()) {
508422 if (!getLifetime ().equals (other .getLifetime ())) return false ;
509423 }
510- if (!unknownFields .equals (other .unknownFields )) return false ;
424+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
511425 return true ;
512426 }
513427
@@ -532,7 +446,7 @@ public int hashCode() {
532446 hash = (37 * hash ) + LIFETIME_FIELD_NUMBER ;
533447 hash = (53 * hash ) + getLifetime ().hashCode ();
534448 }
535- hash = (29 * hash ) + unknownFields .hashCode ();
449+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
536450 memoizedHashCode = hash ;
537451 return hash ;
538452 }
@@ -654,17 +568,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
654568 }
655569
656570 // Construct using com.google.cloud.iam.credentials.v1.GenerateAccessTokenRequest.newBuilder()
657- private Builder () {
658- maybeForceBuilderInitialization ();
659- }
571+ private Builder () {}
660572
661573 private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
662574 super (parent );
663- maybeForceBuilderInitialization ();
664- }
665-
666- private void maybeForceBuilderInitialization () {
667- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
668575 }
669576
670577 @ java .lang .Override
@@ -805,7 +712,7 @@ public Builder mergeFrom(com.google.cloud.iam.credentials.v1.GenerateAccessToken
805712 if (other .hasLifetime ()) {
806713 mergeLifetime (other .getLifetime ());
807714 }
808- this .mergeUnknownFields (other .unknownFields );
715+ this .mergeUnknownFields (other .getUnknownFields () );
809716 onChanged ();
810717 return this ;
811718 }
@@ -820,19 +727,57 @@ public Builder mergeFrom(
820727 com .google .protobuf .CodedInputStream input ,
821728 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
822729 throws java .io .IOException {
823- com .google .cloud .iam .credentials .v1 .GenerateAccessTokenRequest parsedMessage = null ;
730+ if (extensionRegistry == null ) {
731+ throw new java .lang .NullPointerException ();
732+ }
824733 try {
825- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
734+ boolean done = false ;
735+ while (!done ) {
736+ int tag = input .readTag ();
737+ switch (tag ) {
738+ case 0 :
739+ done = true ;
740+ break ;
741+ case 10 :
742+ {
743+ name_ = input .readStringRequireUtf8 ();
744+
745+ break ;
746+ } // case 10
747+ case 18 :
748+ {
749+ java .lang .String s = input .readStringRequireUtf8 ();
750+ ensureDelegatesIsMutable ();
751+ delegates_ .add (s );
752+ break ;
753+ } // case 18
754+ case 34 :
755+ {
756+ java .lang .String s = input .readStringRequireUtf8 ();
757+ ensureScopeIsMutable ();
758+ scope_ .add (s );
759+ break ;
760+ } // case 34
761+ case 58 :
762+ {
763+ input .readMessage (getLifetimeFieldBuilder ().getBuilder (), extensionRegistry );
764+
765+ break ;
766+ } // case 58
767+ default :
768+ {
769+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
770+ done = true ; // was an endgroup tag
771+ }
772+ break ;
773+ } // default:
774+ } // switch (tag)
775+ } // while (!done)
826776 } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
827- parsedMessage =
828- (com .google .cloud .iam .credentials .v1 .GenerateAccessTokenRequest )
829- e .getUnfinishedMessage ();
830777 throw e .unwrapIOException ();
831778 } finally {
832- if (parsedMessage != null ) {
833- mergeFrom (parsedMessage );
834- }
835- }
779+ onChanged ();
780+ } // finally
836781 return this ;
837782 }
838783
@@ -1644,7 +1589,18 @@ public GenerateAccessTokenRequest parsePartialFrom(
16441589 com .google .protobuf .CodedInputStream input ,
16451590 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
16461591 throws com .google .protobuf .InvalidProtocolBufferException {
1647- return new GenerateAccessTokenRequest (input , extensionRegistry );
1592+ Builder builder = newBuilder ();
1593+ try {
1594+ builder .mergeFrom (input , extensionRegistry );
1595+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
1596+ throw e .setUnfinishedMessage (builder .buildPartial ());
1597+ } catch (com .google .protobuf .UninitializedMessageException e ) {
1598+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
1599+ } catch (java .io .IOException e ) {
1600+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
1601+ .setUnfinishedMessage (builder .buildPartial ());
1602+ }
1603+ return builder .buildPartial ();
16481604 }
16491605 };
16501606
0 commit comments