@@ -54,59 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5454return this .unknownFields ;
5555 }
5656
57- private AwsAccessRole (
58- com .google .protobuf .CodedInputStream input ,
59- com .google .protobuf .ExtensionRegistryLite extensionRegistry )
60- throws com .google .protobuf .InvalidProtocolBufferException {
61- this ();
62- if (extensionRegistry ==null ) {
63- throw new java .lang .NullPointerException ();
64- }
65- com .google .protobuf .UnknownFieldSet .Builder unknownFields =
66- com .google .protobuf .UnknownFieldSet .newBuilder ();
67- try {
68- boolean done =false ;
69- while (!done ) {
70- int tag =input .readTag ();
71- switch (tag ) {
72- case 0 :
73- done =true ;
74- break ;
75- case 10 :
76- {
77- java .lang .String s =input .readStringRequireUtf8 ();
78-
79- iamRoleId_ =s ;
80- break ;
81- }
82- case 18 :
83- {
84- java .lang .String s =input .readStringRequireUtf8 ();
85-
86- identity_ =s ;
87- break ;
88- }
89- default :
90- {
91- if (!parseUnknownField (input ,unknownFields ,extensionRegistry ,tag )) {
92- done =true ;
93- }
94- break ;
95- }
96- }
97- }
98- }catch (com .google .protobuf .InvalidProtocolBufferException e ) {
99- throw e .setUnfinishedMessage (this );
100- }catch (com .google .protobuf .UninitializedMessageException e ) {
101- throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (this );
102- }catch (java .io .IOException e ) {
103- throw new com .google .protobuf .InvalidProtocolBufferException (e ).setUnfinishedMessage (this );
104- }finally {
105- this .unknownFields =unknownFields .build ();
106- makeExtensionsImmutable ();
107- }
108- }
109-
11057public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
11158return com .google .cloud .bigquery .connection .v1 .ConnectionOuterClass
11259 .internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_descriptor ;
@@ -244,7 +191,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
244191if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (identity_ )) {
245192com .google .protobuf .GeneratedMessageV3 .writeString (output ,2 ,identity_ );
246193 }
247- unknownFields .writeTo (output );
194+ getUnknownFields () .writeTo (output );
248195 }
249196
250197@ java .lang .Override
@@ -259,7 +206,7 @@ public int getSerializedSize() {
259206if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (identity_ )) {
260207size +=com .google .protobuf .GeneratedMessageV3 .computeStringSize (2 ,identity_ );
261208 }
262- size +=unknownFields .getSerializedSize ();
209+ size +=getUnknownFields () .getSerializedSize ();
263210memoizedSize =size ;
264211return size ;
265212 }
@@ -277,7 +224,7 @@ public boolean equals(final java.lang.Object obj) {
277224
278225if (!getIamRoleId ().equals (other .getIamRoleId ()))return false ;
279226if (!getIdentity ().equals (other .getIdentity ()))return false ;
280- if (!unknownFields .equals (other .unknownFields ))return false ;
227+ if (!getUnknownFields () .equals (other .getUnknownFields () ))return false ;
281228return true ;
282229 }
283230
@@ -292,7 +239,7 @@ public int hashCode() {
292239hash = (53 *hash ) +getIamRoleId ().hashCode ();
293240hash = (37 *hash ) +IDENTITY_FIELD_NUMBER ;
294241hash = (53 *hash ) +getIdentity ().hashCode ();
295- hash = (29 *hash ) +unknownFields .hashCode ();
242+ hash = (29 *hash ) +getUnknownFields () .hashCode ();
296243memoizedHashCode =hash ;
297244return hash ;
298245 }
@@ -423,17 +370,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
423370 }
424371
425372// Construct using com.google.cloud.bigquery.connection.v1.AwsAccessRole.newBuilder()
426- private Builder () {
427- maybeForceBuilderInitialization ();
428- }
373+ private Builder () {}
429374
430375private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
431376super (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.cloud.bigquery.connection.v1.AwsAccessRole o
530470identity_ =other .identity_ ;
531471onChanged ();
532472 }
533- this .mergeUnknownFields (other .unknownFields );
473+ this .mergeUnknownFields (other .getUnknownFields () );
534474onChanged ();
535475return this ;
536476 }
@@ -545,18 +485,43 @@ public Builder mergeFrom(
545485com .google .protobuf .CodedInputStream input ,
546486com .google .protobuf .ExtensionRegistryLite extensionRegistry )
547487throws java .io .IOException {
548- com .google .cloud .bigquery .connection .v1 .AwsAccessRole parsedMessage =null ;
488+ if (extensionRegistry ==null ) {
489+ throw new java .lang .NullPointerException ();
490+ }
549491try {
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+ iamRoleId_ =input .readStringRequireUtf8 ();
502+
503+ break ;
504+ }// case 10
505+ case 18 :
506+ {
507+ identity_ =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 .cloud .bigquery .connection .v1 .AwsAccessRole )e .getUnfinishedMessage ();
554521throw e .unwrapIOException ();
555522 }finally {
556- if (parsedMessage !=null ) {
557- mergeFrom (parsedMessage );
558- }
559- }
523+ onChanged ();
524+ }// finally
560525return this ;
561526 }
562527
@@ -814,7 +779,18 @@ public AwsAccessRole parsePartialFrom(
814779com .google .protobuf .CodedInputStream input ,
815780com .google .protobuf .ExtensionRegistryLite extensionRegistry )
816781throws com .google .protobuf .InvalidProtocolBufferException {
817- return new AwsAccessRole (input ,extensionRegistry );
782+ Builder builder =newBuilder ();
783+ try {
784+ builder .mergeFrom (input ,extensionRegistry );
785+ }catch (com .google .protobuf .InvalidProtocolBufferException e ) {
786+ throw e .setUnfinishedMessage (builder .buildPartial ());
787+ }catch (com .google .protobuf .UninitializedMessageException e ) {
788+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
789+ }catch (java .io .IOException e ) {
790+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
791+ .setUnfinishedMessage (builder .buildPartial ());
792+ }
793+ return builder .buildPartial ();
818794 }
819795 };
820796