@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.videointelligence.v1beta1.VideoSegment)) { return super.equals(obj); } com.google.cloud.videointelligence.v1beta1.VideoSegment other = (com.google.cloud.videointelligence.v1beta1.VideoSegment) obj; boolean result = true; result = result && (getStartTimeOffset() == other.getStartTimeOffset()); result = result && (getEndTimeOffset() == other.getEndTimeOffset()); 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) + START_TIME_OFFSET_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getStartTimeOffset()); hash = (37 * hash) + END_TIME_OFFSET_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEndTimeOffset()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(com.google.cloud.videointelligence.v1beta1.VideoSegment other) { if (other == com.google.cloud.videointelligence.v1beta1.VideoSegment.getDefaultInstance()) return this; if (other.getStartTimeOffset() != 0L) { setStartTimeOffset(other.getStartTimeOffset()); } if (other.getEndTimeOffset() != 0L) { setEndTimeOffset(other.getEndTimeOffset()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }