@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasBus()) { hash = (37 * hash) + BUS_FIELD_NUMBER; hash = (53 * hash) + getBus(); } if (hasBypass()) { hash = (37 * hash) + BYPASS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getBypass()); } 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.openxc.BinaryMessages.AcceptanceFilterBypassCommand)) { return super.equals(obj); } com.openxc.BinaryMessages.AcceptanceFilterBypassCommand other = (com.openxc.BinaryMessages.AcceptanceFilterBypassCommand) obj; boolean result = true; result = result && (hasBus() == other.hasBus()); if (hasBus()) { result = result && (getBus() == other.getBus()); } result = result && (hasBypass() == other.hasBypass()); if (hasBypass()) { result = result && (getBypass() == other.getBypass()); } result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(com.openxc.BinaryMessages.AcceptanceFilterBypassCommand other) { if (other == com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance()) return this; if (other.hasBus()) { setBus(other.getBus()); } if (other.hasBypass()) { setBypass(other.getBypass()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }