Skip to content

Commit

Permalink
feat: field ObjectTrackingAnnotation.segment moved into oneof, added …
Browse files Browse the repository at this point in the history
…track_id (googleapis#897)

* chore(bazel): update version of Protobuf to v3.20.1

PiperOrigin-RevId: 444328399

Source-Link: googleapis/googleapis@c7ca416

Source-Link: https://github.com/googleapis/googleapis-gen/commit/d61705453a62b3ecda78aa30c192840ebc5a8a90
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDYxNzA1NDUzYTYyYjNlY2RhNzhhYTMwYzE5Mjg0MGViYzVhOGE5MCJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* feat!: field ObjectTrackingAnnotation.segment moved into oneof, added track_id

PiperOrigin-RevId: 445061085

Source-Link: googleapis/googleapis@0506e19

Source-Link: https://github.com/googleapis/googleapis-gen/commit/5796d5155df9a378c0fd8d97c06f7d7170765670
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNTc5NmQ1MTU1ZGY5YTM3OGMwZmQ4ZDk3YzA2ZjdkNzE3MDc2NTY3MCJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Apr 29, 2022
1 parent e8ae7ce commit c05bb53
Show file tree
Hide file tree
Showing 168 changed files with 1,199 additions and 516 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ private AnnotateVideoProgress(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ private AnnotateVideoRequest(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ private AnnotateVideoResponse(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ private DetectedAttribute(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down Expand Up @@ -261,7 +263,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (confidence_ != 0F) {
if (java.lang.Float.floatToRawIntBits(confidence_) != 0) {
output.writeFloat(2, confidence_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) {
Expand All @@ -279,7 +281,7 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (confidence_ != 0F) {
if (java.lang.Float.floatToRawIntBits(confidence_) != 0) {
size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ private DetectedLandmark(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down Expand Up @@ -272,7 +274,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (point_ != null) {
output.writeMessage(2, getPoint());
}
if (confidence_ != 0F) {
if (java.lang.Float.floatToRawIntBits(confidence_) != 0) {
output.writeFloat(3, confidence_);
}
unknownFields.writeTo(output);
Expand All @@ -290,7 +292,7 @@ public int getSerializedSize() {
if (point_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPoint());
}
if (confidence_ != 0F) {
if (java.lang.Float.floatToRawIntBits(confidence_) != 0) {
size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, confidence_);
}
size += unknownFields.getSerializedSize();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ private Entity(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ private ExplicitContentAnnotation(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ private ExplicitContentDetectionConfig(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ private ExplicitContentFrame(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ private FaceAnnotation(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ private FaceDetectionAnnotation(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ private FaceDetectionConfig(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ private FaceFrame(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ private FaceSegment(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ private LabelAnnotation(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ private LabelDetectionConfig(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down Expand Up @@ -320,10 +322,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, model_);
}
if (frameConfidenceThreshold_ != 0F) {
if (java.lang.Float.floatToRawIntBits(frameConfidenceThreshold_) != 0) {
output.writeFloat(4, frameConfidenceThreshold_);
}
if (videoConfidenceThreshold_ != 0F) {
if (java.lang.Float.floatToRawIntBits(videoConfidenceThreshold_) != 0) {
output.writeFloat(5, videoConfidenceThreshold_);
}
unknownFields.writeTo(output);
Expand All @@ -346,10 +348,10 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_);
}
if (frameConfidenceThreshold_ != 0F) {
if (java.lang.Float.floatToRawIntBits(frameConfidenceThreshold_) != 0) {
size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, frameConfidenceThreshold_);
}
if (videoConfidenceThreshold_ != 0F) {
if (java.lang.Float.floatToRawIntBits(videoConfidenceThreshold_) != 0) {
size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, videoConfidenceThreshold_);
}
size += unknownFields.getSerializedSize();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ private LabelFrame(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down Expand Up @@ -206,7 +208,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (timeOffset_ != null) {
output.writeMessage(1, getTimeOffset());
}
if (confidence_ != 0F) {
if (java.lang.Float.floatToRawIntBits(confidence_) != 0) {
output.writeFloat(2, confidence_);
}
unknownFields.writeTo(output);
Expand All @@ -221,7 +223,7 @@ public int getSerializedSize() {
if (timeOffset_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTimeOffset());
}
if (confidence_ != 0F) {
if (java.lang.Float.floatToRawIntBits(confidence_) != 0) {
size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_);
}
size += unknownFields.getSerializedSize();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ private LabelSegment(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down Expand Up @@ -207,7 +209,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (segment_ != null) {
output.writeMessage(1, getSegment());
}
if (confidence_ != 0F) {
if (java.lang.Float.floatToRawIntBits(confidence_) != 0) {
output.writeFloat(2, confidence_);
}
unknownFields.writeTo(output);
Expand All @@ -222,7 +224,7 @@ public int getSerializedSize() {
if (segment_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSegment());
}
if (confidence_ != 0F) {
if (java.lang.Float.floatToRawIntBits(confidence_) != 0) {
size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_);
}
size += unknownFields.getSerializedSize();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ private LogoRecognitionAnnotation(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ private NormalizedBoundingBox(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down Expand Up @@ -210,16 +212,16 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (left_ != 0F) {
if (java.lang.Float.floatToRawIntBits(left_) != 0) {
output.writeFloat(1, left_);
}
if (top_ != 0F) {
if (java.lang.Float.floatToRawIntBits(top_) != 0) {
output.writeFloat(2, top_);
}
if (right_ != 0F) {
if (java.lang.Float.floatToRawIntBits(right_) != 0) {
output.writeFloat(3, right_);
}
if (bottom_ != 0F) {
if (java.lang.Float.floatToRawIntBits(bottom_) != 0) {
output.writeFloat(4, bottom_);
}
unknownFields.writeTo(output);
Expand All @@ -231,16 +233,16 @@ public int getSerializedSize() {
if (size != -1) return size;

size = 0;
if (left_ != 0F) {
if (java.lang.Float.floatToRawIntBits(left_) != 0) {
size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, left_);
}
if (top_ != 0F) {
if (java.lang.Float.floatToRawIntBits(top_) != 0) {
size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, top_);
}
if (right_ != 0F) {
if (java.lang.Float.floatToRawIntBits(right_) != 0) {
size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, right_);
}
if (bottom_ != 0F) {
if (java.lang.Float.floatToRawIntBits(bottom_) != 0) {
size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, bottom_);
}
size += unknownFields.getSerializedSize();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ private NormalizedBoundingPoly(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ private NormalizedVertex(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down Expand Up @@ -164,10 +166,10 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (x_ != 0F) {
if (java.lang.Float.floatToRawIntBits(x_) != 0) {
output.writeFloat(1, x_);
}
if (y_ != 0F) {
if (java.lang.Float.floatToRawIntBits(y_) != 0) {
output.writeFloat(2, y_);
}
unknownFields.writeTo(output);
Expand All @@ -179,10 +181,10 @@ public int getSerializedSize() {
if (size != -1) return size;

size = 0;
if (x_ != 0F) {
if (java.lang.Float.floatToRawIntBits(x_) != 0) {
size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, x_);
}
if (y_ != 0F) {
if (java.lang.Float.floatToRawIntBits(y_) != 0) {
size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, y_);
}
size += unknownFields.getSerializedSize();
Expand Down
Loading

0 comments on commit c05bb53

Please sign in to comment.