hash = (53 * hash) + getDiagnosticResponse().hashCode(); if (hasControlCommand()) { hash = (37 * hash) + CONTROL_COMMAND_FIELD_NUMBER; hash = (53 * hash) + getControlCommand().hashCode();
.equals(other.getDiagnosticResponse()); result = result && (hasControlCommand() == other.hasControlCommand()); if (hasControlCommand()) { result = result && getControlCommand() .equals(other.getControlCommand());
public Builder mergeFrom(com.openxc.BinaryMessages.VehicleMessage other) { if (other == com.openxc.BinaryMessages.VehicleMessage.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasCanMessage()) { mergeCanMessage(other.getCanMessage()); } if (other.hasSimpleMessage()) { mergeSimpleMessage(other.getSimpleMessage()); } if (other.hasDiagnosticResponse()) { mergeDiagnosticResponse(other.getDiagnosticResponse()); } if (other.hasControlCommand()) { mergeControlCommand(other.getControlCommand()); } if (other.hasCommandResponse()) { mergeCommandResponse(other.getCommandResponse()); } if (other.hasTimestamp()) { setTimestamp(other.getTimestamp()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
private static VehicleMessage deserialize( BinaryMessages.VehicleMessage binaryMessage) throws UnrecognizedMessageTypeException { if(binaryMessage.hasSimpleMessage()) { return deserializeNamedMessage(binaryMessage); } else if(binaryMessage.hasCanMessage()) { return deserializeCanMessage(binaryMessage); } else if(binaryMessage.hasCommandResponse()) { return deserializeCommandResponse(binaryMessage); } else if(binaryMessage.hasControlCommand()) { return deserializeCommand(binaryMessage); } else if(binaryMessage.hasDiagnosticResponse()) { return deserializeDiagnosticResponse(binaryMessage); } else { throw new UnrecognizedMessageTypeException( "Binary message type not recognized"); } } }