@@ -53,71 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
53
53
return this .unknownFields ;
54
54
}
55
55
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
-
121
56
public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
122
57
return com .google .cloud .video .livestream .v1 .ResourcesProto
123
58
.internal_static_google_cloud_video_livestream_v1_AudioFormat_descriptor ;
@@ -284,7 +219,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
284
219
for (int i = 0 ; i < channelLayout_ .size (); i ++) {
285
220
com .google .protobuf .GeneratedMessageV3 .writeString (output , 3 , channelLayout_ .getRaw (i ));
286
221
}
287
- unknownFields .writeTo (output );
222
+ getUnknownFields () .writeTo (output );
288
223
}
289
224
290
225
@ java .lang .Override
@@ -307,7 +242,7 @@ public int getSerializedSize() {
307
242
size += dataSize ;
308
243
size += 1 * getChannelLayoutList ().size ();
309
244
}
310
- size += unknownFields .getSerializedSize ();
245
+ size += getUnknownFields () .getSerializedSize ();
311
246
memoizedSize = size ;
312
247
return size ;
313
248
}
@@ -326,7 +261,7 @@ public boolean equals(final java.lang.Object obj) {
326
261
if (!getCodec ().equals (other .getCodec ())) return false ;
327
262
if (getChannelCount () != other .getChannelCount ()) return false ;
328
263
if (!getChannelLayoutList ().equals (other .getChannelLayoutList ())) return false ;
329
- if (!unknownFields .equals (other .unknownFields )) return false ;
264
+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
330
265
return true ;
331
266
}
332
267
@@ -345,7 +280,7 @@ public int hashCode() {
345
280
hash = (37 * hash ) + CHANNEL_LAYOUT_FIELD_NUMBER ;
346
281
hash = (53 * hash ) + getChannelLayoutList ().hashCode ();
347
282
}
348
- hash = (29 * hash ) + unknownFields .hashCode ();
283
+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
349
284
memoizedHashCode = hash ;
350
285
return hash ;
351
286
}
@@ -474,17 +409,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
474
409
}
475
410
476
411
// Construct using com.google.cloud.video.livestream.v1.AudioFormat.newBuilder()
477
- private Builder () {
478
- maybeForceBuilderInitialization ();
479
- }
412
+ private Builder () {}
480
413
481
414
private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
482
415
super (parent );
483
- maybeForceBuilderInitialization ();
484
- }
485
-
486
- private void maybeForceBuilderInitialization () {
487
- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
488
416
}
489
417
490
418
@ java .lang .Override
@@ -598,7 +526,7 @@ public Builder mergeFrom(com.google.cloud.video.livestream.v1.AudioFormat other)
598
526
}
599
527
onChanged ();
600
528
}
601
- this .mergeUnknownFields (other .unknownFields );
529
+ this .mergeUnknownFields (other .getUnknownFields () );
602
530
onChanged ();
603
531
return this ;
604
532
}
@@ -613,17 +541,50 @@ public Builder mergeFrom(
613
541
com .google .protobuf .CodedInputStream input ,
614
542
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
615
543
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
+ }
617
547
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)
619
583
} catch (com .google .protobuf .InvalidProtocolBufferException e ) {
620
- parsedMessage = (com .google .cloud .video .livestream .v1 .AudioFormat ) e .getUnfinishedMessage ();
621
584
throw e .unwrapIOException ();
622
585
} finally {
623
- if (parsedMessage != null ) {
624
- mergeFrom (parsedMessage );
625
- }
626
- }
586
+ onChanged ();
587
+ } // finally
627
588
return this ;
628
589
}
629
590
@@ -987,7 +948,18 @@ public AudioFormat parsePartialFrom(
987
948
com .google .protobuf .CodedInputStream input ,
988
949
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
989
950
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 ();
991
963
}
992
964
};
993
965
0 commit comments