@@ -52,62 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5252 return this .unknownFields ;
5353 }
5454
55- private AwsAuthorization (
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 10 :
75- {
76- if (!((mutable_bitField0_ & 0x00000001 ) != 0 )) {
77- adminUsers_ =
78- new java .util .ArrayList <com .google .cloud .gkemulticloud .v1 .AwsClusterUser >();
79- mutable_bitField0_ |= 0x00000001 ;
80- }
81- adminUsers_ .add (
82- input .readMessage (
83- com .google .cloud .gkemulticloud .v1 .AwsClusterUser .parser (),
84- extensionRegistry ));
85- break ;
86- }
87- default :
88- {
89- if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
90- done = true ;
91- }
92- break ;
93- }
94- }
95- }
96- } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
97- throw e .setUnfinishedMessage (this );
98- } catch (com .google .protobuf .UninitializedMessageException e ) {
99- throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (this );
100- } catch (java .io .IOException e ) {
101- throw new com .google .protobuf .InvalidProtocolBufferException (e ).setUnfinishedMessage (this );
102- } finally {
103- if (((mutable_bitField0_ & 0x00000001 ) != 0 )) {
104- adminUsers_ = java .util .Collections .unmodifiableList (adminUsers_ );
105- }
106- this .unknownFields = unknownFields .build ();
107- makeExtensionsImmutable ();
108- }
109- }
110-
11155 public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
11256 return com .google .cloud .gkemulticloud .v1 .AwsResourcesProto
11357 .internal_static_google_cloud_gkemulticloud_v1_AwsAuthorization_descriptor ;
@@ -240,7 +184,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
240184 for (int i = 0 ; i < adminUsers_ .size (); i ++) {
241185 output .writeMessage (1 , adminUsers_ .get (i ));
242186 }
243- unknownFields .writeTo (output );
187+ getUnknownFields () .writeTo (output );
244188 }
245189
246190 @ java .lang .Override
@@ -252,7 +196,7 @@ public int getSerializedSize() {
252196 for (int i = 0 ; i < adminUsers_ .size (); i ++) {
253197 size += com .google .protobuf .CodedOutputStream .computeMessageSize (1 , adminUsers_ .get (i ));
254198 }
255- size += unknownFields .getSerializedSize ();
199+ size += getUnknownFields () .getSerializedSize ();
256200 memoizedSize = size ;
257201 return size ;
258202 }
@@ -269,7 +213,7 @@ public boolean equals(final java.lang.Object obj) {
269213 (com .google .cloud .gkemulticloud .v1 .AwsAuthorization ) obj ;
270214
271215 if (!getAdminUsersList ().equals (other .getAdminUsersList ())) return false ;
272- if (!unknownFields .equals (other .unknownFields )) return false ;
216+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
273217 return true ;
274218 }
275219
@@ -284,7 +228,7 @@ public int hashCode() {
284228 hash = (37 * hash ) + ADMIN_USERS_FIELD_NUMBER ;
285229 hash = (53 * hash ) + getAdminUsersList ().hashCode ();
286230 }
287- hash = (29 * hash ) + unknownFields .hashCode ();
231+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
288232 memoizedHashCode = hash ;
289233 return hash ;
290234 }
@@ -413,30 +357,22 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
413357 }
414358
415359 // Construct using com.google.cloud.gkemulticloud.v1.AwsAuthorization.newBuilder()
416- private Builder () {
417- maybeForceBuilderInitialization ();
418- }
360+ private Builder () {}
419361
420362 private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
421363 super (parent );
422- maybeForceBuilderInitialization ();
423- }
424-
425- private void maybeForceBuilderInitialization () {
426- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {
427- getAdminUsersFieldBuilder ();
428- }
429364 }
430365
431366 @ java .lang .Override
432367 public Builder clear () {
433368 super .clear ();
434369 if (adminUsersBuilder_ == null ) {
435370 adminUsers_ = java .util .Collections .emptyList ();
436- bitField0_ = (bitField0_ & ~0x00000001 );
437371 } else {
372+ adminUsers_ = null ;
438373 adminUsersBuilder_ .clear ();
439374 }
375+ bitField0_ = (bitField0_ & ~0x00000001 );
440376 return this ;
441377 }
442378
@@ -551,7 +487,7 @@ public Builder mergeFrom(com.google.cloud.gkemulticloud.v1.AwsAuthorization othe
551487 }
552488 }
553489 }
554- this .mergeUnknownFields (other .unknownFields );
490+ this .mergeUnknownFields (other .getUnknownFields () );
555491 onChanged ();
556492 return this ;
557493 }
@@ -566,18 +502,45 @@ public Builder mergeFrom(
566502 com .google .protobuf .CodedInputStream input ,
567503 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
568504 throws java .io .IOException {
569- com .google .cloud .gkemulticloud .v1 .AwsAuthorization parsedMessage = null ;
505+ if (extensionRegistry == null ) {
506+ throw new java .lang .NullPointerException ();
507+ }
570508 try {
571- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
509+ boolean done = false ;
510+ while (!done ) {
511+ int tag = input .readTag ();
512+ switch (tag ) {
513+ case 0 :
514+ done = true ;
515+ break ;
516+ case 10 :
517+ {
518+ com .google .cloud .gkemulticloud .v1 .AwsClusterUser m =
519+ input .readMessage (
520+ com .google .cloud .gkemulticloud .v1 .AwsClusterUser .parser (),
521+ extensionRegistry );
522+ if (adminUsersBuilder_ == null ) {
523+ ensureAdminUsersIsMutable ();
524+ adminUsers_ .add (m );
525+ } else {
526+ adminUsersBuilder_ .addMessage (m );
527+ }
528+ break ;
529+ } // case 10
530+ default :
531+ {
532+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
533+ done = true ; // was an endgroup tag
534+ }
535+ break ;
536+ } // default:
537+ } // switch (tag)
538+ } // while (!done)
572539 } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
573- parsedMessage =
574- (com .google .cloud .gkemulticloud .v1 .AwsAuthorization ) e .getUnfinishedMessage ();
575540 throw e .unwrapIOException ();
576541 } finally {
577- if (parsedMessage != null ) {
578- mergeFrom (parsedMessage );
579- }
580- }
542+ onChanged ();
543+ } // finally
581544 return this ;
582545 }
583546
@@ -1079,7 +1042,18 @@ public AwsAuthorization parsePartialFrom(
10791042 com .google .protobuf .CodedInputStream input ,
10801043 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
10811044 throws com .google .protobuf .InvalidProtocolBufferException {
1082- return new AwsAuthorization (input , extensionRegistry );
1045+ Builder builder = newBuilder ();
1046+ try {
1047+ builder .mergeFrom (input , extensionRegistry );
1048+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
1049+ throw e .setUnfinishedMessage (builder .buildPartial ());
1050+ } catch (com .google .protobuf .UninitializedMessageException e ) {
1051+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
1052+ } catch (java .io .IOException e ) {
1053+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
1054+ .setUnfinishedMessage (builder .buildPartial ());
1055+ }
1056+ return builder .buildPartial ();
10831057 }
10841058 };
10851059
0 commit comments