Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit f1c292a

Browse files
chore(bazel): update protobuf to v3.21.7 (#409)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 477955264 Source-Link: https://togithub.com/googleapis/googleapis/commit/a724450af76d0001f23602684c49cd6a4b3a5654 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/4abcbcaec855e74a0b22a4988cf9e0eb61a83094 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGFiY2JjYWVjODU1ZTc0YTBiMjJhNDk4OGNmOWUwZWI2MWE4MzA5NCJ9
1 parent bcfc466 commit f1c292a

28 files changed

+3142
-4642
lines changed

proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/AdBreak.java

+45-75
Original file line numberDiff line numberDiff line change
@@ -50,60 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5050
return this.unknownFields;
5151
}
5252

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-
10753
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
10854
return com.google.cloud.video.transcoder.v1.ResourcesProto
10955
.internal_static_google_cloud_video_transcoder_v1_AdBreak_descriptor;
@@ -187,7 +133,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
187133
if (startTimeOffset_ != null) {
188134
output.writeMessage(1, getStartTimeOffset());
189135
}
190-
unknownFields.writeTo(output);
136+
getUnknownFields().writeTo(output);
191137
}
192138

193139
@java.lang.Override
@@ -199,7 +145,7 @@ public int getSerializedSize() {
199145
if (startTimeOffset_ != null) {
200146
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTimeOffset());
201147
}
202-
size += unknownFields.getSerializedSize();
148+
size += getUnknownFields().getSerializedSize();
203149
memoizedSize = size;
204150
return size;
205151
}
@@ -219,7 +165,7 @@ public boolean equals(final java.lang.Object obj) {
219165
if (hasStartTimeOffset()) {
220166
if (!getStartTimeOffset().equals(other.getStartTimeOffset())) return false;
221167
}
222-
if (!unknownFields.equals(other.unknownFields)) return false;
168+
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
223169
return true;
224170
}
225171

@@ -234,7 +180,7 @@ public int hashCode() {
234180
hash = (37 * hash) + START_TIME_OFFSET_FIELD_NUMBER;
235181
hash = (53 * hash) + getStartTimeOffset().hashCode();
236182
}
237-
hash = (29 * hash) + unknownFields.hashCode();
183+
hash = (29 * hash) + getUnknownFields().hashCode();
238184
memoizedHashCode = hash;
239185
return hash;
240186
}
@@ -363,17 +309,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
363309
}
364310

365311
// Construct using com.google.cloud.video.transcoder.v1.AdBreak.newBuilder()
366-
private Builder() {
367-
maybeForceBuilderInitialization();
368-
}
312+
private Builder() {}
369313

370314
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
371315
super(parent);
372-
maybeForceBuilderInitialization();
373-
}
374-
375-
private void maybeForceBuilderInitialization() {
376-
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
377316
}
378317

379318
@java.lang.Override
@@ -469,7 +408,7 @@ public Builder mergeFrom(com.google.cloud.video.transcoder.v1.AdBreak other) {
469408
if (other.hasStartTimeOffset()) {
470409
mergeStartTimeOffset(other.getStartTimeOffset());
471410
}
472-
this.mergeUnknownFields(other.unknownFields);
411+
this.mergeUnknownFields(other.getUnknownFields());
473412
onChanged();
474413
return this;
475414
}
@@ -484,17 +423,37 @@ public Builder mergeFrom(
484423
com.google.protobuf.CodedInputStream input,
485424
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
486425
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+
}
488429
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)
490452
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
491-
parsedMessage = (com.google.cloud.video.transcoder.v1.AdBreak) e.getUnfinishedMessage();
492453
throw e.unwrapIOException();
493454
} finally {
494-
if (parsedMessage != null) {
495-
mergeFrom(parsedMessage);
496-
}
497-
}
455+
onChanged();
456+
} // finally
498457
return this;
499458
}
500459

@@ -724,7 +683,18 @@ public AdBreak parsePartialFrom(
724683
com.google.protobuf.CodedInputStream input,
725684
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
726685
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();
728698
}
729699
};
730700

0 commit comments

Comments
 (0)