@@ -53,71 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5353 return this .unknownFields ;
5454 }
5555
56- private AudioFormat (
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- int mutable_bitField0_ = 0 ;
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- codec_ = s ;
80- break ;
81- }
82- case 16 :
83- {
84- channelCount_ = input .readInt32 ();
85- break ;
86- }
87- case 26 :
88- {
89- java .lang .String s = input .readStringRequireUtf8 ();
90- if (!((mutable_bitField0_ & 0x00000001 ) != 0 )) {
91- channelLayout_ = new com .google .protobuf .LazyStringArrayList ();
92- mutable_bitField0_ |= 0x00000001 ;
93- }
94- channelLayout_ .add (s );
95- break ;
96- }
97- default :
98- {
99- if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
100- done = true ;
101- }
102- break ;
103- }
104- }
105- }
106- } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
107- throw e .setUnfinishedMessage (this );
108- } catch (com .google .protobuf .UninitializedMessageException e ) {
109- throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (this );
110- } catch (java .io .IOException e ) {
111- throw new com .google .protobuf .InvalidProtocolBufferException (e ).setUnfinishedMessage (this );
112- } finally {
113- if (((mutable_bitField0_ & 0x00000001 ) != 0 )) {
114- channelLayout_ = channelLayout_ .getUnmodifiableView ();
115- }
116- this .unknownFields = unknownFields .build ();
117- makeExtensionsImmutable ();
118- }
119- }
120-
12156 public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
12257 return com .google .cloud .video .livestream .v1 .ResourcesProto
12358 .internal_static_google_cloud_video_livestream_v1_AudioFormat_descriptor ;
@@ -284,7 +219,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
284219 for (int i = 0 ; i < channelLayout_ .size (); i ++) {
285220 com .google .protobuf .GeneratedMessageV3 .writeString (output , 3 , channelLayout_ .getRaw (i ));
286221 }
287- unknownFields .writeTo (output );
222+ getUnknownFields () .writeTo (output );
288223 }
289224
290225 @ java .lang .Override
@@ -307,7 +242,7 @@ public int getSerializedSize() {
307242 size += dataSize ;
308243 size += 1 * getChannelLayoutList ().size ();
309244 }
310- size += unknownFields .getSerializedSize ();
245+ size += getUnknownFields () .getSerializedSize ();
311246 memoizedSize = size ;
312247 return size ;
313248 }
@@ -326,7 +261,7 @@ public boolean equals(final java.lang.Object obj) {
326261 if (!getCodec ().equals (other .getCodec ())) return false ;
327262 if (getChannelCount () != other .getChannelCount ()) return false ;
328263 if (!getChannelLayoutList ().equals (other .getChannelLayoutList ())) return false ;
329- if (!unknownFields .equals (other .unknownFields )) return false ;
264+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
330265 return true ;
331266 }
332267
@@ -345,7 +280,7 @@ public int hashCode() {
345280 hash = (37 * hash ) + CHANNEL_LAYOUT_FIELD_NUMBER ;
346281 hash = (53 * hash ) + getChannelLayoutList ().hashCode ();
347282 }
348- hash = (29 * hash ) + unknownFields .hashCode ();
283+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
349284 memoizedHashCode = hash ;
350285 return hash ;
351286 }
@@ -474,17 +409,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
474409 }
475410
476411 // Construct using com.google.cloud.video.livestream.v1.AudioFormat.newBuilder()
477- private Builder () {
478- maybeForceBuilderInitialization ();
479- }
412+ private Builder () {}
480413
481414 private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
482415 super (parent );
483- maybeForceBuilderInitialization ();
484- }
485-
486- private void maybeForceBuilderInitialization () {
487- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
488416 }
489417
490418 @ java .lang .Override
@@ -598,7 +526,7 @@ public Builder mergeFrom(com.google.cloud.video.livestream.v1.AudioFormat other)
598526 }
599527 onChanged ();
600528 }
601- this .mergeUnknownFields (other .unknownFields );
529+ this .mergeUnknownFields (other .getUnknownFields () );
602530 onChanged ();
603531 return this ;
604532 }
@@ -613,17 +541,50 @@ public Builder mergeFrom(
613541 com .google .protobuf .CodedInputStream input ,
614542 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
615543 throws java .io .IOException {
616- com .google .cloud .video .livestream .v1 .AudioFormat parsedMessage = null ;
544+ if (extensionRegistry == null ) {
545+ throw new java .lang .NullPointerException ();
546+ }
617547 try {
618- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
548+ boolean done = false ;
549+ while (!done ) {
550+ int tag = input .readTag ();
551+ switch (tag ) {
552+ case 0 :
553+ done = true ;
554+ break ;
555+ case 10 :
556+ {
557+ codec_ = input .readStringRequireUtf8 ();
558+
559+ break ;
560+ } // case 10
561+ case 16 :
562+ {
563+ channelCount_ = input .readInt32 ();
564+
565+ break ;
566+ } // case 16
567+ case 26 :
568+ {
569+ java .lang .String s = input .readStringRequireUtf8 ();
570+ ensureChannelLayoutIsMutable ();
571+ channelLayout_ .add (s );
572+ break ;
573+ } // case 26
574+ default :
575+ {
576+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
577+ done = true ; // was an endgroup tag
578+ }
579+ break ;
580+ } // default:
581+ } // switch (tag)
582+ } // while (!done)
619583 } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
620- parsedMessage = (com .google .cloud .video .livestream .v1 .AudioFormat ) e .getUnfinishedMessage ();
621584 throw e .unwrapIOException ();
622585 } finally {
623- if (parsedMessage != null ) {
624- mergeFrom (parsedMessage );
625- }
626- }
586+ onChanged ();
587+ } // finally
627588 return this ;
628589 }
629590
@@ -987,7 +948,18 @@ public AudioFormat parsePartialFrom(
987948 com .google .protobuf .CodedInputStream input ,
988949 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
989950 throws com .google .protobuf .InvalidProtocolBufferException {
990- return new AudioFormat (input , extensionRegistry );
951+ Builder builder = newBuilder ();
952+ try {
953+ builder .mergeFrom (input , extensionRegistry );
954+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
955+ throw e .setUnfinishedMessage (builder .buildPartial ());
956+ } catch (com .google .protobuf .UninitializedMessageException e ) {
957+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
958+ } catch (java .io .IOException e ) {
959+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
960+ .setUnfinishedMessage (builder .buildPartial ());
961+ }
962+ return builder .buildPartial ();
991963 }
992964 };
993965
0 commit comments