@@ -50,60 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
50
50
return this .unknownFields ;
51
51
}
52
52
53
- private AdBreak (
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
- case 10 :
72
- {
73
- com .google .protobuf .Duration .Builder subBuilder = null ;
74
- if (startTimeOffset_ != null ) {
75
- subBuilder = startTimeOffset_ .toBuilder ();
76
- }
77
- startTimeOffset_ =
78
- input .readMessage (com .google .protobuf .Duration .parser (), extensionRegistry );
79
- if (subBuilder != null ) {
80
- subBuilder .mergeFrom (startTimeOffset_ );
81
- startTimeOffset_ = subBuilder .buildPartial ();
82
- }
83
-
84
- break ;
85
- }
86
- default :
87
- {
88
- if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
89
- done = true ;
90
- }
91
- break ;
92
- }
93
- }
94
- }
95
- } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
96
- throw e .setUnfinishedMessage (this );
97
- } catch (com .google .protobuf .UninitializedMessageException e ) {
98
- throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (this );
99
- } catch (java .io .IOException e ) {
100
- throw new com .google .protobuf .InvalidProtocolBufferException (e ).setUnfinishedMessage (this );
101
- } finally {
102
- this .unknownFields = unknownFields .build ();
103
- makeExtensionsImmutable ();
104
- }
105
- }
106
-
107
53
public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
108
54
return com .google .cloud .video .transcoder .v1 .ResourcesProto
109
55
.internal_static_google_cloud_video_transcoder_v1_AdBreak_descriptor ;
@@ -187,7 +133,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
187
133
if (startTimeOffset_ != null ) {
188
134
output .writeMessage (1 , getStartTimeOffset ());
189
135
}
190
- unknownFields .writeTo (output );
136
+ getUnknownFields () .writeTo (output );
191
137
}
192
138
193
139
@ java .lang .Override
@@ -199,7 +145,7 @@ public int getSerializedSize() {
199
145
if (startTimeOffset_ != null ) {
200
146
size += com .google .protobuf .CodedOutputStream .computeMessageSize (1 , getStartTimeOffset ());
201
147
}
202
- size += unknownFields .getSerializedSize ();
148
+ size += getUnknownFields () .getSerializedSize ();
203
149
memoizedSize = size ;
204
150
return size ;
205
151
}
@@ -219,7 +165,7 @@ public boolean equals(final java.lang.Object obj) {
219
165
if (hasStartTimeOffset ()) {
220
166
if (!getStartTimeOffset ().equals (other .getStartTimeOffset ())) return false ;
221
167
}
222
- if (!unknownFields .equals (other .unknownFields )) return false ;
168
+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
223
169
return true ;
224
170
}
225
171
@@ -234,7 +180,7 @@ public int hashCode() {
234
180
hash = (37 * hash ) + START_TIME_OFFSET_FIELD_NUMBER ;
235
181
hash = (53 * hash ) + getStartTimeOffset ().hashCode ();
236
182
}
237
- hash = (29 * hash ) + unknownFields .hashCode ();
183
+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
238
184
memoizedHashCode = hash ;
239
185
return hash ;
240
186
}
@@ -363,17 +309,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
363
309
}
364
310
365
311
// Construct using com.google.cloud.video.transcoder.v1.AdBreak.newBuilder()
366
- private Builder () {
367
- maybeForceBuilderInitialization ();
368
- }
312
+ private Builder () {}
369
313
370
314
private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
371
315
super (parent );
372
- maybeForceBuilderInitialization ();
373
- }
374
-
375
- private void maybeForceBuilderInitialization () {
376
- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
377
316
}
378
317
379
318
@ java .lang .Override
@@ -469,7 +408,7 @@ public Builder mergeFrom(com.google.cloud.video.transcoder.v1.AdBreak other) {
469
408
if (other .hasStartTimeOffset ()) {
470
409
mergeStartTimeOffset (other .getStartTimeOffset ());
471
410
}
472
- this .mergeUnknownFields (other .unknownFields );
411
+ this .mergeUnknownFields (other .getUnknownFields () );
473
412
onChanged ();
474
413
return this ;
475
414
}
@@ -484,17 +423,37 @@ public Builder mergeFrom(
484
423
com .google .protobuf .CodedInputStream input ,
485
424
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
486
425
throws java .io .IOException {
487
- com .google .cloud .video .transcoder .v1 .AdBreak parsedMessage = null ;
426
+ if (extensionRegistry == null ) {
427
+ throw new java .lang .NullPointerException ();
428
+ }
488
429
try {
489
- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
430
+ boolean done = false ;
431
+ while (!done ) {
432
+ int tag = input .readTag ();
433
+ switch (tag ) {
434
+ case 0 :
435
+ done = true ;
436
+ break ;
437
+ case 10 :
438
+ {
439
+ input .readMessage (getStartTimeOffsetFieldBuilder ().getBuilder (), extensionRegistry );
440
+
441
+ break ;
442
+ } // case 10
443
+ default :
444
+ {
445
+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
446
+ done = true ; // was an endgroup tag
447
+ }
448
+ break ;
449
+ } // default:
450
+ } // switch (tag)
451
+ } // while (!done)
490
452
} catch (com .google .protobuf .InvalidProtocolBufferException e ) {
491
- parsedMessage = (com .google .cloud .video .transcoder .v1 .AdBreak ) e .getUnfinishedMessage ();
492
453
throw e .unwrapIOException ();
493
454
} finally {
494
- if (parsedMessage != null ) {
495
- mergeFrom (parsedMessage );
496
- }
497
- }
455
+ onChanged ();
456
+ } // finally
498
457
return this ;
499
458
}
500
459
@@ -724,7 +683,18 @@ public AdBreak parsePartialFrom(
724
683
com .google .protobuf .CodedInputStream input ,
725
684
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
726
685
throws com .google .protobuf .InvalidProtocolBufferException {
727
- return new AdBreak (input , extensionRegistry );
686
+ Builder builder = newBuilder ();
687
+ try {
688
+ builder .mergeFrom (input , extensionRegistry );
689
+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
690
+ throw e .setUnfinishedMessage (builder .buildPartial ());
691
+ } catch (com .google .protobuf .UninitializedMessageException e ) {
692
+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
693
+ } catch (java .io .IOException e ) {
694
+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
695
+ .setUnfinishedMessage (builder .buildPartial ());
696
+ }
697
+ return builder .buildPartial ();
728
698
}
729
699
};
730
700
0 commit comments