@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + HOURS_FIELD_NUMBER; hash = (53 * hash) + getHours(); hash = (37 * hash) + MINUTES_FIELD_NUMBER; hash = (53 * hash) + getMinutes(); hash = (37 * hash) + SECONDS_FIELD_NUMBER; hash = (53 * hash) + getSeconds(); hash = (37 * hash) + NANOS_FIELD_NUMBER; hash = (53 * hash) + getNanos(); 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.type.TimeOfDay)) { return super.equals(obj); } com.google.type.TimeOfDay other = (com.google.type.TimeOfDay) obj; boolean result = true; result = result && (getHours() == other.getHours()); result = result && (getMinutes() == other.getMinutes()); result = result && (getSeconds() == other.getSeconds()); result = result && (getNanos() == other.getNanos()); return result; }
public Builder mergeFrom(com.google.type.TimeOfDay other) { if (other == com.google.type.TimeOfDay.getDefaultInstance()) return this; if (other.getHours() != 0) { setHours(other.getHours()); } if (other.getMinutes() != 0) { setMinutes(other.getMinutes()); } if (other.getSeconds() != 0) { setSeconds(other.getSeconds()); } if (other.getNanos() != 0) { setNanos(other.getNanos()); } onChanged(); return this; }