@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 (hasEnabled()) { hash = (37 * hash) + ENABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEnabled()); } 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.PassthroughModeControlCommand)) { return super.equals(obj); } com.openxc.BinaryMessages.PassthroughModeControlCommand other = (com.openxc.BinaryMessages.PassthroughModeControlCommand) obj; boolean result = true; result = result && (hasBus() == other.hasBus()); if (hasBus()) { result = result && (getBus() == other.getBus()); } result = result && (hasEnabled() == other.hasEnabled()); if (hasEnabled()) { result = result && (getEnabled() == other.getEnabled()); } result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(com.openxc.BinaryMessages.PassthroughModeControlCommand other) { if (other == com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance()) return this; if (other.hasBus()) { setBus(other.getBus()); } if (other.hasEnabled()) { setEnabled(other.getEnabled()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }