@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.videointelligence.v1beta1.BoundingBox)) { return super.equals(obj); } com.google.cloud.videointelligence.v1beta1.BoundingBox other = (com.google.cloud.videointelligence.v1beta1.BoundingBox) obj; boolean result = true; result = result && (getLeft() == other.getLeft()); result = result && (getRight() == other.getRight()); result = result && (getBottom() == other.getBottom()); result = result && (getTop() == other.getTop()); result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public com.google.cloud.videointelligence.v1beta1.BoundingBox getDefaultInstanceForType() { return com.google.cloud.videointelligence.v1beta1.BoundingBox.getDefaultInstance(); }
@java.lang.Override public com.google.cloud.videointelligence.v1beta1.BoundingBox buildPartial() { com.google.cloud.videointelligence.v1beta1.BoundingBox result = new com.google.cloud.videointelligence.v1beta1.BoundingBox(this); result.left_ = left_; result.right_ = right_; result.bottom_ = bottom_; result.top_ = top_; onBuilt(); return result; }
@java.lang.Override public com.google.cloud.videointelligence.v1beta1.BoundingBox build() { com.google.cloud.videointelligence.v1beta1.BoundingBox result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasBoundingBox()) { hash = (37 * hash) + BOUNDING_BOX_FIELD_NUMBER; hash = (53 * hash) + getBoundingBox().hashCode(); } hash = (37 * hash) + TIME_OFFSET_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTimeOffset()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.videointelligence.v1beta1.FaceLocation)) { return super.equals(obj); } com.google.cloud.videointelligence.v1beta1.FaceLocation other = (com.google.cloud.videointelligence.v1beta1.FaceLocation) obj; boolean result = true; result = result && (hasBoundingBox() == other.hasBoundingBox()); if (hasBoundingBox()) { result = result && getBoundingBox().equals(other.getBoundingBox()); } result = result && (getTimeOffset() == other.getTimeOffset()); result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + LEFT_FIELD_NUMBER; hash = (53 * hash) + getLeft(); hash = (37 * hash) + RIGHT_FIELD_NUMBER; hash = (53 * hash) + getRight(); hash = (37 * hash) + BOTTOM_FIELD_NUMBER; hash = (53 * hash) + getBottom(); hash = (37 * hash) + TOP_FIELD_NUMBER; hash = (53 * hash) + getTop(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
/** * * * <pre> * Bounding box in a frame. * </pre> * * <code>.google.cloud.videointelligence.v1beta1.BoundingBox bounding_box = 1;</code> */ public com.google.cloud.videointelligence.v1beta1.BoundingBox getBoundingBox() { return boundingBox_ == null ? com.google.cloud.videointelligence.v1beta1.BoundingBox.getDefaultInstance() : boundingBox_; } /**
public Builder mergeFrom(com.google.cloud.videointelligence.v1beta1.BoundingBox other) { if (other == com.google.cloud.videointelligence.v1beta1.BoundingBox.getDefaultInstance()) return this; if (other.getLeft() != 0) { setLeft(other.getLeft()); } if (other.getRight() != 0) { setRight(other.getRight()); } if (other.getBottom() != 0) { setBottom(other.getBottom()); } if (other.getTop() != 0) { setTop(other.getTop()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * Bounding box in a frame. * </pre> * * <code>.google.cloud.videointelligence.v1beta1.BoundingBox bounding_box = 1;</code> */ public com.google.cloud.videointelligence.v1beta1.BoundingBox getBoundingBox() { if (boundingBoxBuilder_ == null) { return boundingBox_ == null ? com.google.cloud.videointelligence.v1beta1.BoundingBox.getDefaultInstance() : boundingBox_; } else { return boundingBoxBuilder_.getMessage(); } } /**
/** * * * <pre> * Bounding box in a frame. * </pre> * * <code>.google.cloud.videointelligence.v1beta1.BoundingBox bounding_box = 1;</code> */ public com.google.cloud.videointelligence.v1beta1.BoundingBoxOrBuilder getBoundingBoxOrBuilder() { if (boundingBoxBuilder_ != null) { return boundingBoxBuilder_.getMessageOrBuilder(); } else { return boundingBox_ == null ? com.google.cloud.videointelligence.v1beta1.BoundingBox.getDefaultInstance() : boundingBox_; } } /**