@@ -50,45 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5050return this .unknownFields ;
5151 }
5252
53- private AvroFileFormat (
54- com .google .protobuf .CodedInputStream input ,
55- com .google .protobuf .ExtensionRegistryLite extensionRegistry )
56- throws com .google .protobuf .InvalidProtocolBufferException {
57- this ();
58- if (extensionRegistry ==null ) {
59- throw new java .lang .NullPointerException ();
60- }
61- com .google .protobuf .UnknownFieldSet .Builder unknownFields =
62- com .google .protobuf .UnknownFieldSet .newBuilder ();
63- try {
64- boolean done =false ;
65- while (!done ) {
66- int tag =input .readTag ();
67- switch (tag ) {
68- case 0 :
69- done =true ;
70- break ;
71- default :
72- {
73- if (!parseUnknownField (input ,unknownFields ,extensionRegistry ,tag )) {
74- done =true ;
75- }
76- break ;
77- }
78- }
79- }
80- }catch (com .google .protobuf .InvalidProtocolBufferException e ) {
81- throw e .setUnfinishedMessage (this );
82- }catch (com .google .protobuf .UninitializedMessageException e ) {
83- throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (this );
84- }catch (java .io .IOException e ) {
85- throw new com .google .protobuf .InvalidProtocolBufferException (e ).setUnfinishedMessage (this );
86- }finally {
87- this .unknownFields =unknownFields .build ();
88- makeExtensionsImmutable ();
89- }
90- }
91-
9253public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
9354return com .google .cloud .datastream .v1 .DatastreamResourcesProto
9455 .internal_static_google_cloud_datastream_v1_AvroFileFormat_descriptor ;
@@ -118,7 +79,7 @@ public final boolean isInitialized() {
11879
11980@ java .lang .Override
12081public void writeTo (com .google .protobuf .CodedOutputStream output )throws java .io .IOException {
121- unknownFields .writeTo (output );
82+ getUnknownFields () .writeTo (output );
12283 }
12384
12485@ java .lang .Override
@@ -127,7 +88,7 @@ public int getSerializedSize() {
12788if (size != -1 )return size ;
12889
12990size =0 ;
130- size +=unknownFields .getSerializedSize ();
91+ size +=getUnknownFields () .getSerializedSize ();
13192memoizedSize =size ;
13293return size ;
13394 }
@@ -143,7 +104,7 @@ public boolean equals(final java.lang.Object obj) {
143104com .google .cloud .datastream .v1 .AvroFileFormat other =
144105 (com .google .cloud .datastream .v1 .AvroFileFormat )obj ;
145106
146- if (!unknownFields .equals (other .unknownFields ))return false ;
107+ if (!getUnknownFields () .equals (other .getUnknownFields () ))return false ;
147108return true ;
148109 }
149110
@@ -154,7 +115,7 @@ public int hashCode() {
154115 }
155116int hash =41 ;
156117hash = (19 *hash ) +getDescriptor ().hashCode ();
157- hash = (29 *hash ) +unknownFields .hashCode ();
118+ hash = (29 *hash ) +getUnknownFields () .hashCode ();
158119memoizedHashCode =hash ;
159120return hash ;
160121 }
@@ -283,17 +244,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
283244 }
284245
285246// Construct using com.google.cloud.datastream.v1.AvroFileFormat.newBuilder()
286- private Builder () {
287- maybeForceBuilderInitialization ();
288- }
247+ private Builder () {}
289248
290249private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
291250super (parent );
292- maybeForceBuilderInitialization ();
293- }
294-
295- private void maybeForceBuilderInitialization () {
296- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
297251 }
298252
299253@ java .lang .Override
@@ -375,7 +329,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
375329
376330public Builder mergeFrom (com .google .cloud .datastream .v1 .AvroFileFormat other ) {
377331if (other ==com .google .cloud .datastream .v1 .AvroFileFormat .getDefaultInstance ())return this ;
378- this .mergeUnknownFields (other .unknownFields );
332+ this .mergeUnknownFields (other .getUnknownFields () );
379333onChanged ();
380334return this ;
381335 }
@@ -390,17 +344,31 @@ public Builder mergeFrom(
390344com .google .protobuf .CodedInputStream input ,
391345com .google .protobuf .ExtensionRegistryLite extensionRegistry )
392346throws java .io .IOException {
393- com .google .cloud .datastream .v1 .AvroFileFormat parsedMessage =null ;
347+ if (extensionRegistry ==null ) {
348+ throw new java .lang .NullPointerException ();
349+ }
394350try {
395- parsedMessage =PARSER .parsePartialFrom (input ,extensionRegistry );
351+ boolean done =false ;
352+ while (!done ) {
353+ int tag =input .readTag ();
354+ switch (tag ) {
355+ case 0 :
356+ done =true ;
357+ break ;
358+ default :
359+ {
360+ if (!super .parseUnknownField (input ,extensionRegistry ,tag )) {
361+ done =true ;// was an endgroup tag
362+ }
363+ break ;
364+ }// default:
365+ }// switch (tag)
366+ }// while (!done)
396367 }catch (com .google .protobuf .InvalidProtocolBufferException e ) {
397- parsedMessage = (com .google .cloud .datastream .v1 .AvroFileFormat )e .getUnfinishedMessage ();
398368throw e .unwrapIOException ();
399369 }finally {
400- if (parsedMessage !=null ) {
401- mergeFrom (parsedMessage );
402- }
403- }
370+ onChanged ();
371+ }// finally
404372return this ;
405373 }
406374
@@ -436,7 +404,18 @@ public AvroFileFormat parsePartialFrom(
436404com .google .protobuf .CodedInputStream input ,
437405com .google .protobuf .ExtensionRegistryLite extensionRegistry )
438406throws com .google .protobuf .InvalidProtocolBufferException {
439- return new AvroFileFormat (input ,extensionRegistry );
407+ Builder builder =newBuilder ();
408+ try {
409+ builder .mergeFrom (input ,extensionRegistry );
410+ }catch (com .google .protobuf .InvalidProtocolBufferException e ) {
411+ throw e .setUnfinishedMessage (builder .buildPartial ());
412+ }catch (com .google .protobuf .UninitializedMessageException e ) {
413+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
414+ }catch (java .io .IOException e ) {
415+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
416+ .setUnfinishedMessage (builder .buildPartial ());
417+ }
418+ return builder .buildPartial ();
440419 }
441420 };
442421